Skip to main content

Autonomize Core contains the unified authentication source to access platform.

Project description

Autonomize Core

Python Version PyPI Version Code Formatter Code Linter Code Checker Code Coverage

Overview

Autonomize Core houses the core functionality about authentication of our in-house platform.

Features

  • Authentication: The SDK allows you to authenticate tokens for Modelhub.
  • High scalability: Built to handle large-scale data retrieval and generation, enabling robust, production-ready applications.

Installation

  1. Create a virtual environment, we recommend Miniconda for environment management:
    conda create -n autocore python=3.12
    conda activate autocore
    
  2. Install the package:
    pip install autonomize-core
    

To install with optional dependencies like Qdrant, Huggingface, OpenAI, Modelhub, etc., refer to the Installation Guide.

Usage

Sync Usage

import os
from autonomize.core.credential import ModelhubCredential

cred = ModelhubCredential(
    auth_url=MODELHUB_AUTH_ENDPOINT,
    client_id=MODELHUB_AUTH_CLIENT_ID,
    client_secret=MODELHUB_AUTH_CLIENT_SECRET,
)

r = cred.get_token()

Async Usage

Simply use sync methods with a prefix and use await for each call. Example: cred.get_token becomes await cred.aget_token and everything else remains the same.

import os
from autonomize.core.credential import ModelhubCredential

cred = ModelhubCredential(
    auth_url=MODELHUB_AUTH_ENDPOINT,
    client_id=MODELHUB_AUTH_CLIENT_ID,
    client_secret=MODELHUB_AUTH_CLIENT_SECRET,
)

r = await cred.aget_token()

Contribution

To contribute in our Autonomize Core SDK, please refer to our Contribution Guidelines.

License

Copyright (C) Autonomize AI - All Rights Reserved

The contents of this repository cannot be copied and/or distributed without the explicit permission from Autonomize.ai

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

autonomize_core-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

autonomize_core-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file autonomize_core-0.1.0.tar.gz.

File metadata

  • Download URL: autonomize_core-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.5.0

File hashes

Hashes for autonomize_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab9e0048a3f08b1cc642147065e32649109cafbc50ac3c71ac27a220d18671e9
MD5 8637d3bfbe234d1603ad702db7331ea1
BLAKE2b-256 3a0d871ee0b95e907be4e505ac93985579ba20a83070a085223ab7c9fa66c45d

See more details on using hashes here.

File details

Details for the file autonomize_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: autonomize_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.5.0

File hashes

Hashes for autonomize_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb400c7b5a91dbbcea1e88e5ac08c2063ad4693565969ec8ba2ca960b1a5629d
MD5 8373333e273cfb6c9a1c36a5163173db
BLAKE2b-256 bc13146902df25ec52e1dbbc986f88917f14f4c920ce0c42a9156536f447f349

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