py-spiffe is a Python library designed to provide support for SPIFFE. The library is
structured into two main packages:
The spiffe package is the core of the py-spiffe library. It provides
functionality for managing SPIFFE identities, including a Workload API client and automatic handling of X.509 and
JWT SVIDs. This package simplifies working with SPIFFE identities by automating SVID fetching and renewal.
spiffe-tls (experimental)
The spiffe-tls package, still in its experimental stages, is designed to enhance Python applications with TLS
utilities that simplify the integration of SPIFFE authentication. Its primary objective is to ease the process of
incorporating SPIFFE identities into TLS contexts. To achieve this, it offers a set of utility functions that allow for
the creation of TLS listeners and connections, leveraging the pyOpenSSL library.
You can install the spiffe and spiffe-tls packages directly from PyPI:
pip install spiffe
pip install spiffe-tlsContributions to both spiffe and the spiffe-tls packages are welcome! Please see
our CONTRIBUTING.md for guidelines on how to contribute to the project.