No project description provided
Project description
Microboxlabs Auth Manager SDK for Python 3
This SDK provides a set of tools to interact and manage authentication with Microboxlabs services using Python 3.
Installation
Using pip:
You can install the SDK from PyPI using pip
:
pip install microboxlabs-auth-manager-sdk
Using Poetry:
If you're using Poetry for your project, you can add it as a dependency:
poetry add microboxlabs-auth-manager-sdk
Usage
To use the SDK in your Python projects:
from microboxlabs_auth_manager import AuthToken
# Initialization with your client details
auth = AuthToken(client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
audience="https://api.microboxlabs.com/v1",
grant_type="client_credentials")
# Get a new access token
access_token = auth.get_token()
Development
For development purposes, you'll want to clone the repository and set up using Poetry:
# Clone the repository
git clone https://github.com/your_username/microboxlabs-auth-manager-sdk.git
cd microboxlabs-auth-manager-sdk
# Install the SDK dependencies for development
poetry install
Running Tests
Ensure you have the development dependencies installed:
# Run tests using unittest (or your preferred testing tool)
poetry run python -m unittest discover tests
# OR if you're using pytest
poetry run pytest
Features
- Seamless authentication with Microboxlabs services.
- Token management: acquire, refresh, and validate tokens.
Documentation
Refer to the official documentation for detailed usage and API references.
Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you'd like to change.
License
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
Close
Hashes for microboxlabs_auth_manager-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeb0fb4603c03a09b6c3eaf3b463f21653a6a7b6224f03026967badc7c54ab3a |
|
MD5 | b697a33c02c16cb3564fb24d78ebf82b |
|
BLAKE2b-256 | 2d7499b15ce2b9e8e50c630064b46281c4726704da98ed07d04a4d3b602a36ab |
Close
Hashes for microboxlabs_auth_manager-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54c6e3ee9576b87af307d3beefa95fda8ba015782097004c54eb4f6d3cf5d5c2 |
|
MD5 | d8b946c4bbc7327689cd749cac6e64b1 |
|
BLAKE2b-256 | be8206dfe77b95ea749c25f4c947dea553e6de02e319b4114cf7581eb77441b5 |