aibloks


Nameaibloks JSON
Version 0.9.0 PyPI version JSON
download
home_pagehttps://www.aibloks.com
SummaryClient library for the Ai Bloks REST API
upload_time2023-08-24 06:44:24
maintainer
docs_urlNone
author
requires_python>=3.10, <4
license
keywords ai data development
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Ai Bloks Python API Library

[![PyPI version](https://img.shields.io/pypi/v/anthropic.svg)](https://pypi.org/project/anthropic/)

The Ai Bloks Python library provides access to the [Ai Bloks REST API](https://app.aibloks.com/api/docs/) from any Python 3.10+ application. 

## Installation

```sh
pip install aibloks
```

## Usage

```python
from aibloks import AiBloksClient, AiBloksException, Library

username         = os.environ.get("USERNAME")
api_key          = os.environ.get("API_KEY")
endpoint_url     = os.environ.get("ENDPOINT_URL")
s3_access_key    = os.environ.get("S3_ACCESS_KEY")
s3_access_secret = os.environ.get("S3_ACCESS_SECRET")

try:
    # Create an instance of the AiBloksClient
    aib_client = AiBloksClient(username, api_key, endpoint_url)
 
    # Create a new library
    my_library = aib_client.create_library("my_library")

    # Import files from an AWS S3 Bucket into the library
    my_library.import_documents(service="aws_s3", 
                                bucket_name="aibloks-sample-docs", 
                                access_key=s3_access_key, 
                                access_secret=s3_access_secret )

except AiBloksException as e:
    print(e)
```

## Handling errors

When the library is unable to connect to the API (e.g., due to network connection problems or a timeout), a exception of type AiBloksException is raised. 

## Requirements

Python 3.10 or higher.

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.aibloks.com",
    "name": "aibloks",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10, <4",
    "maintainer_email": "",
    "keywords": "ai,data,development",
    "author": "",
    "author_email": "support@aibloks.com",
    "download_url": "https://files.pythonhosted.org/packages/df/68/c3b210420da3a4ea90c01359b700d43df975956532d6e6a989f4342c8e75/aibloks-0.9.0.tar.gz",
    "platform": null,
    "description": "# Ai Bloks Python API Library\n\n[![PyPI version](https://img.shields.io/pypi/v/anthropic.svg)](https://pypi.org/project/anthropic/)\n\nThe Ai Bloks Python library provides access to the [Ai Bloks REST API](https://app.aibloks.com/api/docs/) from any Python 3.10+ application. \n\n## Installation\n\n```sh\npip install aibloks\n```\n\n## Usage\n\n```python\nfrom aibloks import AiBloksClient, AiBloksException, Library\n\nusername         = os.environ.get(\"USERNAME\")\napi_key          = os.environ.get(\"API_KEY\")\nendpoint_url     = os.environ.get(\"ENDPOINT_URL\")\ns3_access_key    = os.environ.get(\"S3_ACCESS_KEY\")\ns3_access_secret = os.environ.get(\"S3_ACCESS_SECRET\")\n\ntry:\n    # Create an instance of the AiBloksClient\n    aib_client = AiBloksClient(username, api_key, endpoint_url)\n \n    # Create a new library\n    my_library = aib_client.create_library(\"my_library\")\n\n    # Import files from an AWS S3 Bucket into the library\n    my_library.import_documents(service=\"aws_s3\", \n                                bucket_name=\"aibloks-sample-docs\", \n                                access_key=s3_access_key, \n                                access_secret=s3_access_secret )\n\nexcept AiBloksException as e:\n    print(e)\n```\n\n## Handling errors\n\nWhen the library is unable to connect to the API (e.g., due to network connection problems or a timeout), a exception of type AiBloksException is raised. \n\n## Requirements\n\nPython 3.10 or higher.\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Client library for the Ai Bloks REST API",
    "version": "0.9.0",
    "project_urls": {
        "Homepage": "https://www.aibloks.com",
        "Repository": "https://github.com/aibloks/aibloks-python-sdk"
    },
    "split_keywords": [
        "ai",
        "data",
        "development"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "06ce31f4644e0659ed809b53450ea62c6b55c1a51bd9f95b15585c3b6b27e3eb",
                "md5": "97bfbff00bdb1137b78f5e4cd4b35f31",
                "sha256": "ab61632703abc114c350908f4de84012895769a5af521f29e0b0cfb876082779"
            },
            "downloads": -1,
            "filename": "aibloks-0.9.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "97bfbff00bdb1137b78f5e4cd4b35f31",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10, <4",
            "size": 6871,
            "upload_time": "2023-08-24T06:44:22",
            "upload_time_iso_8601": "2023-08-24T06:44:22.501001Z",
            "url": "https://files.pythonhosted.org/packages/06/ce/31f4644e0659ed809b53450ea62c6b55c1a51bd9f95b15585c3b6b27e3eb/aibloks-0.9.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df68c3b210420da3a4ea90c01359b700d43df975956532d6e6a989f4342c8e75",
                "md5": "c16ff8da4a2b4da9cc6f32b2283f221b",
                "sha256": "29607d38fb823d89f3036e20ac39c59ec42d4683f9cbd14b6273243c7e54f125"
            },
            "downloads": -1,
            "filename": "aibloks-0.9.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c16ff8da4a2b4da9cc6f32b2283f221b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10, <4",
            "size": 5392,
            "upload_time": "2023-08-24T06:44:24",
            "upload_time_iso_8601": "2023-08-24T06:44:24.155179Z",
            "url": "https://files.pythonhosted.org/packages/df/68/c3b210420da3a4ea90c01359b700d43df975956532d6e6a989f4342c8e75/aibloks-0.9.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-24 06:44:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aibloks",
    "github_project": "aibloks-python-sdk",
    "github_not_found": true,
    "lcname": "aibloks"
}
        
Elapsed time: 0.15331s