Python SDK for Warrant
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file warrant-python-3.1.0.tar.gz
.
File metadata
- Download URL: warrant-python-3.1.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8caae1c5812949669961acda91502e0180259b802492602efdddfb0dc4f392cc |
|
MD5 | 538abf4faa4e3cb7ad6a7ccf87fce7cc |
|
BLAKE2b-256 | d4d97a269fc06a07e64d23f7823b58e7e8fcf5e3bd3b9e7c954689b75c96787a |
File details
Details for the file warrant_python-3.1.0-py3-none-any.whl
.
File metadata
- Download URL: warrant_python-3.1.0-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7e437aa9bc789faafee899a1999cd8e5e04c842a381238346f9f7dfb2292722 |
|
MD5 | 3877c26a870099f6bcfbfe2576806812 |
|
BLAKE2b-256 | 51a623a1c2f0948e50d9228ff8704e4e6878d2c20c5677ede5f75a3caf72799f |