Warrant Python Library
Use Warrant in Python projects.
Installation
pip install warrant-python
Usage
import warrant
warrant.api_key = "api_test_f5dsKVeYnVSLHGje44zAygqgqXiLJBICbFzCiAg1E="
warrant.User.create()
warrant.Tenant.create(id="dunder_mifflin")
Configuring the API Endpoint
The API endpoint the SDK makes requests to is configurable via the warrant.api_endpoint attribute:
import warrant
# Set api endpoint to http://localhost:8000
warrant.api_endpoint = 'http://localhost:8000'
We’ve used a random API key in these code examples. Replace it with your actual publishable API keys to test this code through your own Warrant account.
For more information on how to use the Warrant API, please refer to the Warrant API reference.
Note that we may release new minor and patch versions of this library with small but backwards-incompatible fixes to the type declarations. These changes will not affect Warrant itself.
Warrant Documentation
Metadata
Release files for warrant-python 3.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| warrant-python-3.1.0.tar.gz | 13.9 kB | Without provenance | Details for warrant-python-3.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| warrant_python-3.1.0-py3-none-any.whl | Python 3 | none | any | Details for warrant_python-3.1.0-py3-none-any.whl |
Total release size: 28.9 kB
Release files / warrant-python-3.1.0.tar.gz
| Download URL | warrant-python-3.1.0.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8caae1c5812949669961acda91502e0180259b802492602efdddfb0dc4f392cc
|
|
BLAKE2b-256 checksum How to use checksums |
d4d97a269fc06a07e64d23f7823b58e7e8fcf5e3bd3b9e7c954689b75c96787a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / warrant_python-3.1.0-py3-none-any.whl
| Download URL | warrant_python-3.1.0-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7e437aa9bc789faafee899a1999cd8e5e04c842a381238346f9f7dfb2292722
|
|
BLAKE2b-256 checksum How to use checksums |
51a623a1c2f0948e50d9228ff8704e4e6878d2c20c5677ede5f75a3caf72799f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for warrant-python 3.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.