Skip to main content

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

Using Poetry:

If you're using Poetry for your project, you can add it as a dependency:

poetry add microboxlabs-auth-manager

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/microboxlabs/auth-manager.git
cd auth-manager

# 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

MIT

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

microboxlabs_auth_manager-0.1.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microboxlabs_auth_manager-0.1.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file microboxlabs_auth_manager-0.1.2.tar.gz.

File metadata

  • Download URL: microboxlabs_auth_manager-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.2 Darwin/22.5.0

File hashes

Hashes for microboxlabs_auth_manager-0.1.2.tar.gz
Algorithm Hash digest
SHA256 057fbb0e8a7378ef5928a2915ea166825c0e97359949c41be5e56a6d1f43bdb4
MD5 5d609ca74eb86fa1e68ce5ad8b8d0f1c
BLAKE2b-256 d25452330cddb6bed9a580c94ed4c8c5c2ce39c5a15f3f40fd2dbe8bffaffa0a

See more details on using hashes here.

File details

Details for the file microboxlabs_auth_manager-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for microboxlabs_auth_manager-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49eaaaf69fd2a660c923eccde29a8c22d53acff2a26d782ce8ab27d51d554794
MD5 3222d307e1cecd9c518ce62edebba692
BLAKE2b-256 8bca27a27f72615258f4c83ab40fc4f4a213911eccc378fccda0544bf31df61d

See more details on using hashes here.

Supported by

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