Skip to main content

Warrant Python Library

Use Warrant in Python projects.

PyPI Slack

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)

Source distribution for warrant-python 3.1.0
File Size Uploaded
warrant-python-3.1.0.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for warrant-python 3.1.0
File Interpreter ABI Platform
warrant_python-3.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files

3.0.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.2.2

1 release file

0.2.1

4 release files

0.2.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page