deepinspection


Namedeepinspection JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-04-29 13:50:47
maintainerNone
docs_urlNone
authorNextML
requires_python<3.11,>=3.9
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # deepinspection python

Python client library for deepinspection. Designed to simplify and exemplify interaction with the External API.

See the [Optram example](examples/optram) for a complete example including converting to a custom format for internal use.

## Install

Use your preferred package manager:

```bash
poetry add deepinspection
```

or

```bash
pip install deepinspection
```

## Usage

```python
import deepinspection


client = deepinspection.track.client(
    customer_id="customer-id",
    # subdomain="subdomain",  # optional, defaults to customer_id
    client_id="XYZ",
    client_secret="XYZ",
)

# list exports
exports = client.exports.fastenings.list()

# get export data
export = exports[0]

for fastening in client.exports.fastenings.get_data(export["id"]):
    pass
```

_The customer id should match with the website url `https://customer-id.track.deepinspection.io/`._

exports

```json
[
  {
    "updated": "2024-02-01T23:20:20.605136+00:00",
    "id": "461731a1-96c8-4ed6-99e4-9fe424eb9c40",
    "measurement_name": "20231001_124327_2011T",
    "measured": "2023-10-01T12:43:27.605136+00:00",
    "type": "fastenings",
    "downloaded": null,
    "created": "2024-02-01T23:20:20.605136+00:00",
    "user_id": "a338595f-6eba-481b-9f0f-112290a1078b"
  },
...
```

export_data

```json
{"id": "56fb582a-0280-43fa-81f3-2a444e7e4273", "position_geographical": {"track_section": "111",
...
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "deepinspection",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.11,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "NextML",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/71/08/ce0f18cd1ec4415654d32e2999a02d8d3bc8799971a93a9cb3d94ab61c23/deepinspection-0.1.1.tar.gz",
    "platform": null,
    "description": "# deepinspection python\n\nPython client library for deepinspection. Designed to simplify and exemplify interaction with the External API.\n\nSee the [Optram example](examples/optram) for a complete example including converting to a custom format for internal use.\n\n## Install\n\nUse your preferred package manager:\n\n```bash\npoetry add deepinspection\n```\n\nor\n\n```bash\npip install deepinspection\n```\n\n## Usage\n\n```python\nimport deepinspection\n\n\nclient = deepinspection.track.client(\n    customer_id=\"customer-id\",\n    # subdomain=\"subdomain\",  # optional, defaults to customer_id\n    client_id=\"XYZ\",\n    client_secret=\"XYZ\",\n)\n\n# list exports\nexports = client.exports.fastenings.list()\n\n# get export data\nexport = exports[0]\n\nfor fastening in client.exports.fastenings.get_data(export[\"id\"]):\n    pass\n```\n\n_The customer id should match with the website url `https://customer-id.track.deepinspection.io/`._\n\nexports\n\n```json\n[\n  {\n    \"updated\": \"2024-02-01T23:20:20.605136+00:00\",\n    \"id\": \"461731a1-96c8-4ed6-99e4-9fe424eb9c40\",\n    \"measurement_name\": \"20231001_124327_2011T\",\n    \"measured\": \"2023-10-01T12:43:27.605136+00:00\",\n    \"type\": \"fastenings\",\n    \"downloaded\": null,\n    \"created\": \"2024-02-01T23:20:20.605136+00:00\",\n    \"user_id\": \"a338595f-6eba-481b-9f0f-112290a1078b\"\n  },\n...\n```\n\nexport_data\n\n```json\n{\"id\": \"56fb582a-0280-43fa-81f3-2a444e7e4273\", \"position_geographical\": {\"track_section\": \"111\",\n...\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "0.1.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a45bc8cf84228c08d4353b852e20114036422c02419adcdda9f8039c3dda34b",
                "md5": "36ab7cc69124028e3d3efb4c7fc93a1f",
                "sha256": "aa1a97d84a4cc67584b17fb8c26fce3cfd9caa0f80c3ff6cfbc66e8b91e86356"
            },
            "downloads": -1,
            "filename": "deepinspection-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "36ab7cc69124028e3d3efb4c7fc93a1f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.11,>=3.9",
            "size": 3163,
            "upload_time": "2024-04-29T13:50:46",
            "upload_time_iso_8601": "2024-04-29T13:50:46.517976Z",
            "url": "https://files.pythonhosted.org/packages/3a/45/bc8cf84228c08d4353b852e20114036422c02419adcdda9f8039c3dda34b/deepinspection-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7108ce0f18cd1ec4415654d32e2999a02d8d3bc8799971a93a9cb3d94ab61c23",
                "md5": "b0114278432637a93f043b2c9a2ddd43",
                "sha256": "cabb373b4acf026090523fce1e6dd5899a8e43ef30ec2ecc1a50af33232335c3"
            },
            "downloads": -1,
            "filename": "deepinspection-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b0114278432637a93f043b2c9a2ddd43",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.11,>=3.9",
            "size": 2434,
            "upload_time": "2024-04-29T13:50:47",
            "upload_time_iso_8601": "2024-04-29T13:50:47.606412Z",
            "url": "https://files.pythonhosted.org/packages/71/08/ce0f18cd1ec4415654d32e2999a02d8d3bc8799971a93a9cb3d94ab61c23/deepinspection-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-29 13:50:47",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "deepinspection"
}
        
Elapsed time: 0.22323s