box21-api


Namebox21-api JSON
Version 0.0.16 PyPI version JSON
download
home_pagehttps://github.com/ramonhollands/box21_api
SummaryApi for Box21.ai
upload_time2024-12-11 12:08:28
maintainerNone
docs_urlNone
authorRamon
requires_python>=3.7
licenseApache Software License 2.0
keywords nbdev jupyter notebook python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            box21_api
================

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

A python package for interacting with your Box21 via the api

## Install

``` sh
pip install box21_api
```

## How to use

``` python
from box21_api.box21_api import Box21Api
```

``` python
box21_api = Box21Api(API_USERNAME, API_PASSWORD, 'https://box21.ai', 443, API_PROJECT_ID)
```

``` python
labels = box21_api.get_labels()
print('Number of labels retrieved', len(labels))
print('First label', labels[0])
```

    Number of labels retrieved 2
    First label Label(('Bounding box', 'Chital', 1))

``` python
annotations = box21_api.get_label_annotations(labels[0])
print('Number of annotations retrieved', len(annotations))
print('First annotation', annotations[0])
```

    Number of annotations retrieved 2
    First annotation BoundingBox(Chital, (0.1641, 0.5291, 0.2766, 0.3381))

``` python
first_annotation = annotations[0]
pil_image = box21_api.download_asset(first_annotation.asset_id)
pil_image
```

![](index_files/figure-gfm/cell-6-output-1.png)

See more examples on: https://ramonhollands.github.io/box21_api/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ramonhollands/box21_api",
    "name": "box21-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "nbdev jupyter notebook python",
    "author": "Ramon",
    "author_email": "ramonhollands@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6b/8f/fa09e43baa9386d996bbbcd1a1a2ff2fe42fd3a526a7de04913492b9663b/box21_api-0.0.16.tar.gz",
    "platform": null,
    "description": "box21_api\n================\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\nA python package for interacting with your Box21 via the api\n\n## Install\n\n``` sh\npip install box21_api\n```\n\n## How to use\n\n``` python\nfrom box21_api.box21_api import Box21Api\n```\n\n``` python\nbox21_api = Box21Api(API_USERNAME, API_PASSWORD, 'https://box21.ai', 443, API_PROJECT_ID)\n```\n\n``` python\nlabels = box21_api.get_labels()\nprint('Number of labels retrieved', len(labels))\nprint('First label', labels[0])\n```\n\n    Number of labels retrieved 2\n    First label Label(('Bounding box', 'Chital', 1))\n\n``` python\nannotations = box21_api.get_label_annotations(labels[0])\nprint('Number of annotations retrieved', len(annotations))\nprint('First annotation', annotations[0])\n```\n\n    Number of annotations retrieved 2\n    First annotation BoundingBox(Chital, (0.1641, 0.5291, 0.2766, 0.3381))\n\n``` python\nfirst_annotation = annotations[0]\npil_image = box21_api.download_asset(first_annotation.asset_id)\npil_image\n```\n\n![](index_files/figure-gfm/cell-6-output-1.png)\n\nSee more examples on: https://ramonhollands.github.io/box21_api/\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Api for Box21.ai",
    "version": "0.0.16",
    "project_urls": {
        "Homepage": "https://github.com/ramonhollands/box21_api"
    },
    "split_keywords": [
        "nbdev",
        "jupyter",
        "notebook",
        "python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "32ffceb86f796a7e4fa82534bd32ab38ffea45424feab7067ffbe771ac6fd36a",
                "md5": "0675afda8a6bafa96c77f02823466375",
                "sha256": "43802a7f86be5e6671dab26df1fcbb2206e58adc3591fdb4ab0863ce4c1dd8c9"
            },
            "downloads": -1,
            "filename": "box21_api-0.0.16-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0675afda8a6bafa96c77f02823466375",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 15215,
            "upload_time": "2024-12-11T12:08:25",
            "upload_time_iso_8601": "2024-12-11T12:08:25.829601Z",
            "url": "https://files.pythonhosted.org/packages/32/ff/ceb86f796a7e4fa82534bd32ab38ffea45424feab7067ffbe771ac6fd36a/box21_api-0.0.16-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b8ffa09e43baa9386d996bbbcd1a1a2ff2fe42fd3a526a7de04913492b9663b",
                "md5": "6d4370c3f5e8bf69dd552d653acaa2f3",
                "sha256": "30cf0b584fa90442e0b813fa35a1fd259d0bcbc208eefd95767f4bac39fba3e8"
            },
            "downloads": -1,
            "filename": "box21_api-0.0.16.tar.gz",
            "has_sig": false,
            "md5_digest": "6d4370c3f5e8bf69dd552d653acaa2f3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3191577,
            "upload_time": "2024-12-11T12:08:28",
            "upload_time_iso_8601": "2024-12-11T12:08:28.129421Z",
            "url": "https://files.pythonhosted.org/packages/6b/8f/fa09e43baa9386d996bbbcd1a1a2ff2fe42fd3a526a7de04913492b9663b/box21_api-0.0.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-11 12:08:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ramonhollands",
    "github_project": "box21_api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "box21-api"
}
        
Elapsed time: 0.38533s