Skip to main content

Python SDK for Warrant

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

warrant-python-3.1.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

warrant_python-3.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

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

Hashes for warrant-python-3.1.0.tar.gz
Algorithm Hash digest
SHA256 8caae1c5812949669961acda91502e0180259b802492602efdddfb0dc4f392cc
MD5 538abf4faa4e3cb7ad6a7ccf87fce7cc
BLAKE2b-256 d4d97a269fc06a07e64d23f7823b58e7e8fcf5e3bd3b9e7c954689b75c96787a

See more details on using hashes here.

File details

Details for the file warrant_python-3.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for warrant_python-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d7e437aa9bc789faafee899a1999cd8e5e04c842a381238346f9f7dfb2292722
MD5 3877c26a870099f6bcfbfe2576806812
BLAKE2b-256 51a623a1c2f0948e50d9228ff8704e4e6878d2c20c5677ede5f75a3caf72799f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page