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/55/a7/0de238ffa0032d6616629d643c77209b1a6b6db736e2f30ba83502c64fe4/box21_api-0.0.10.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.10",
"project_urls": {
"Homepage": "https://github.com/ramonhollands/box21_api"
},
"split_keywords": [
"nbdev",
"jupyter",
"notebook",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e3cf81da20a66ed24d71a01726a827d65595a8e80121b62b15cfbdb784672c12",
"md5": "32cc41e37d2880f94222afdf3147415f",
"sha256": "a6f9cbabe6a38704b9522df6227afbf46c9aed03676ea85c5f75794488963409"
},
"downloads": -1,
"filename": "box21_api-0.0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "32cc41e37d2880f94222afdf3147415f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 12395,
"upload_time": "2024-10-06T20:49:26",
"upload_time_iso_8601": "2024-10-06T20:49:26.467913Z",
"url": "https://files.pythonhosted.org/packages/e3/cf/81da20a66ed24d71a01726a827d65595a8e80121b62b15cfbdb784672c12/box21_api-0.0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "55a70de238ffa0032d6616629d643c77209b1a6b6db736e2f30ba83502c64fe4",
"md5": "ba3a77e422f444aa7616b8b72899bc89",
"sha256": "96c40037e164199bd18c4c6a207562bd532e565832ce78ae15ffab300e260bf3"
},
"downloads": -1,
"filename": "box21_api-0.0.10.tar.gz",
"has_sig": false,
"md5_digest": "ba3a77e422f444aa7616b8b72899bc89",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3283342,
"upload_time": "2024-10-06T20:49:29",
"upload_time_iso_8601": "2024-10-06T20:49:29.480997Z",
"url": "https://files.pythonhosted.org/packages/55/a7/0de238ffa0032d6616629d643c77209b1a6b6db736e2f30ba83502c64fe4/box21_api-0.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-06 20:49:29",
"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"
}