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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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