labelbox


Namelabelbox JSON
Version 6.1.0 PyPI version JSON
download
home_pageNone
SummaryLabelbox Python API
upload_time2024-11-13 00:59:32
maintainerNone
docs_urlNone
authorNone
requires_python<3.13,>=3.9
licenseNone
keywords ai edu labelbox labeling llm machinelearning ml
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Labelbox

Core mono-module for Labelbox's Python SDK.

## Table of Contents

- [Setup](#setup)
- [Repository Organization](#repository-organization)
- [Testing](#testing)

## Setup

```bash
rye sync --all-features # to install labelbox[data] dependencies
```

## Repository Organization

The SDK source (excluding tests and support tools) is organized into the
following packages/modules:
* `data/` package contains code that maps annotations (labels or pre-labels) to 
  Python objects, as well as serialization and deserialization tools for converting 
  between NDJson and Annotation Types.
* `orm/` package contains code that supports the general mapping of Labelbox
  data to Python objects. This includes base classes, attribute (field and
  relationship) classes, generic GraphQL queries etc.
* `schema/` package contains definitions of classes which represent data type
  (e.g. Project, Label etc.). It relies on `orm/` classes for easy and succinct
  object definitions. It also contains custom functionalities and custom GraphQL
  templates where necessary.
* `client.py` contains the `Client` class that's the client-side stub for
  communicating with Labelbox servers.
* `exceptions.py` contains declarations for all Labelbox errors.
* `pagination.py` contains support for paginated relationship and collection
  fetching.
* `utils.py` contains utility functions.

## Testing

### Unit Testing

```bash
rye run unit
```

### Integration Testing

```bash
LABELBOX_TEST_API_KEY="YOUR_API_TEST_KEY" LABELBOX_TEST_ENVIRON="prod" rye run integration
```
For more info on how to get a `LABELBOX_TEST_API_KEY` [Labelbox API key docs](https://labelbox.helpdocs.io/docs/api/getting-started). 

**Integration tests by default will run against your account that you provide an API Key from and modify its data. If you want to run integration tests, without it impacting your existing account, create an additional account using a secondary e-mail on [Labelbox](https://labelbox.com). Free accounts are sufficent for integration testing purposes.**

You can also use a `.env` file if you prefer instead of needing to type out the environmental overrides every single time you want to run commands. Please add a `--env-file` parameter to the test command (EG `rye --env-file=.env run integration`).

### (Optional) Data Testing

For testing the impact of the extra installs included with `labelbox[data]`, run the following:

```bash
LABELBOX_TEST_API_KEY="YOUR_API_TEST_KEY" LABELBOX_TEST_ENVIRON="prod" rye run data
```

By default `rye sync` does not install the extra packages needed in `labelbox[data]`. You'll need to run `rye sync --all-features`. Do not checkin `requirements.lock` or `requirements-dev.lock` after doing this.

### Linting / Formatting

Before making a commit, to automatically adhere to our formatting standards, it is recommended to install and activate [pre-commit](https://pre-commit.com/)
```shell
pip install pre-commit
pre-commit install
```
After the above, running `git commit ...` will attempt to fix formatting,
and make necessary changes to files. You will then need to stage those files again.

You may also manually format your code by running the following:
```bash
rye run lint
```

### Documentation

To generate documentation for all modules (`ReadTheDocs`), run the following command.

```bash
rye run docs
```
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "labelbox",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.9",
    "maintainer_email": null,
    "keywords": "ai, edu, labelbox, labeling, llm, machinelearning, ml",
    "author": null,
    "author_email": "Labelbox <engineering@labelbox.com>",
    "download_url": "https://files.pythonhosted.org/packages/6e/44/acd0d5357772f1e61d0dbc2c5121ac47e4fd33861428aed96843454a456a/labelbox-6.1.0.tar.gz",
    "platform": null,
    "description": "# Labelbox\n\nCore mono-module for Labelbox's Python SDK.\n\n## Table of Contents\n\n- [Setup](#setup)\n- [Repository Organization](#repository-organization)\n- [Testing](#testing)\n\n## Setup\n\n```bash\nrye sync --all-features # to install labelbox[data] dependencies\n```\n\n## Repository Organization\n\nThe SDK source (excluding tests and support tools) is organized into the\nfollowing packages/modules:\n* `data/` package contains code that maps annotations (labels or pre-labels) to \n  Python objects, as well as serialization and deserialization tools for converting \n  between NDJson and Annotation Types.\n* `orm/` package contains code that supports the general mapping of Labelbox\n  data to Python objects. This includes base classes, attribute (field and\n  relationship) classes, generic GraphQL queries etc.\n* `schema/` package contains definitions of classes which represent data type\n  (e.g. Project, Label etc.). It relies on `orm/` classes for easy and succinct\n  object definitions. It also contains custom functionalities and custom GraphQL\n  templates where necessary.\n* `client.py` contains the `Client` class that's the client-side stub for\n  communicating with Labelbox servers.\n* `exceptions.py` contains declarations for all Labelbox errors.\n* `pagination.py` contains support for paginated relationship and collection\n  fetching.\n* `utils.py` contains utility functions.\n\n## Testing\n\n### Unit Testing\n\n```bash\nrye run unit\n```\n\n### Integration Testing\n\n```bash\nLABELBOX_TEST_API_KEY=\"YOUR_API_TEST_KEY\" LABELBOX_TEST_ENVIRON=\"prod\" rye run integration\n```\nFor more info on how to get a `LABELBOX_TEST_API_KEY` [Labelbox API key docs](https://labelbox.helpdocs.io/docs/api/getting-started). \n\n**Integration tests by default will run against your account that you provide an API Key from and modify its data. If you want to run integration tests, without it impacting your existing account, create an additional account using a secondary e-mail on [Labelbox](https://labelbox.com). Free accounts are sufficent for integration testing purposes.**\n\nYou can also use a `.env` file if you prefer instead of needing to type out the environmental overrides every single time you want to run commands. Please add a `--env-file` parameter to the test command (EG `rye --env-file=.env run integration`).\n\n### (Optional) Data Testing\n\nFor testing the impact of the extra installs included with `labelbox[data]`, run the following:\n\n```bash\nLABELBOX_TEST_API_KEY=\"YOUR_API_TEST_KEY\" LABELBOX_TEST_ENVIRON=\"prod\" rye run data\n```\n\nBy default `rye sync` does not install the extra packages needed in `labelbox[data]`. You'll need to run `rye sync --all-features`. Do not checkin `requirements.lock` or `requirements-dev.lock` after doing this.\n\n### Linting / Formatting\n\nBefore making a commit, to automatically adhere to our formatting standards, it is recommended to install and activate [pre-commit](https://pre-commit.com/)\n```shell\npip install pre-commit\npre-commit install\n```\nAfter the above, running `git commit ...` will attempt to fix formatting,\nand make necessary changes to files. You will then need to stage those files again.\n\nYou may also manually format your code by running the following:\n```bash\nrye run lint\n```\n\n### Documentation\n\nTo generate documentation for all modules (`ReadTheDocs`), run the following command.\n\n```bash\nrye run docs\n```",
    "bugtrack_url": null,
    "license": null,
    "summary": "Labelbox Python API",
    "version": "6.1.0",
    "project_urls": {
        "Changelog": "https://github.com/Labelbox/labelbox-python/blob/develop/libs/labelbox/CHANGELOG.md",
        "Documentation": "https://labelbox-python.readthedocs.io/en/latest/",
        "Homepage": "https://labelbox.com/",
        "Issues": "https://github.com/Labelbox/labelbox-python/issues",
        "Repository": "https://github.com/Labelbox/labelbox-python"
    },
    "split_keywords": [
        "ai",
        " edu",
        " labelbox",
        " labeling",
        " llm",
        " machinelearning",
        " ml"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "392bce693ce52f80642ec3b519a5279a476b32114dbeadf3c5431f425956d4ab",
                "md5": "db6eff9322e5588c2e4dd76b3fff50e8",
                "sha256": "f7516451b3bedc4715e20ce6e77ab21c44563710f845fac82eccd59ec3c7e2fb"
            },
            "downloads": -1,
            "filename": "labelbox-6.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "db6eff9322e5588c2e4dd76b3fff50e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.9",
            "size": 222172,
            "upload_time": "2024-11-13T00:59:29",
            "upload_time_iso_8601": "2024-11-13T00:59:29.939703Z",
            "url": "https://files.pythonhosted.org/packages/39/2b/ce693ce52f80642ec3b519a5279a476b32114dbeadf3c5431f425956d4ab/labelbox-6.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6e44acd0d5357772f1e61d0dbc2c5121ac47e4fd33861428aed96843454a456a",
                "md5": "f13c3b6e35b545c3b5dad9f2be719878",
                "sha256": "94e0e847cc0b6cda85649d5b15b401e0f4a21b9cb6852d119180469de2630c03"
            },
            "downloads": -1,
            "filename": "labelbox-6.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f13c3b6e35b545c3b5dad9f2be719878",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.9",
            "size": 5049986,
            "upload_time": "2024-11-13T00:59:32",
            "upload_time_iso_8601": "2024-11-13T00:59:32.452974Z",
            "url": "https://files.pythonhosted.org/packages/6e/44/acd0d5357772f1e61d0dbc2c5121ac47e4fd33861428aed96843454a456a/labelbox-6.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-13 00:59:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Labelbox",
    "github_project": "labelbox-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "labelbox"
}
        
Elapsed time: 0.75561s