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-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/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.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

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