alchemite-apiclient


Namealchemite-apiclient JSON
Version 0.84.0 PyPI version JSON
download
home_pageNone
SummaryA python API client for using Alchemite Analytics
upload_time2024-10-09 14:42:20
maintainerNone
docs_urlNone
authorIntellegens
requires_python>=3.8
licenseNone
keywords alchemite alchemite api machine learning artificial intelligence
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # alchemite-apiclient

This is a client for interacting with Alchemite Analytics, an applied machine learning platform to accelerate industrial
R&D and optimise manufacturing by extracting information from sparce or noisy datasets.
To obtain a licence for this product, please [contact Intellegens](https://intellegens.com/contact-us/) for more information.

API version: 0.84.0

## Requirements.

Python >=3.8

## Installation & Usage
### pip install
Either you can install this from the public pip repository using:

```sh
pip install alchemite-apiclient
```

Alternatively, you can install it from a zip archive using:

```sh
pip install ./api_client_python-version.zip
```
(you may need to run `pip` with root permission: `sudo pip install ./api_client_python-version.zip`)

Then import the package:
```python
import alchemite_apiclient
```

## Getting Started

Please follow the [installation procedure](#installation--usage).

Examples can be found in the source distribution, downloadable from https://pypi.org/project/alchemite-apiclient/#files

Then place your `credentials.json` file in the "example" directory and run
```bash
python example_connect.py
```
This should connect to the API server and, if successful, print something like this to the terminal (the numbers you see may be different):
```
------ API version -----
{'alchemite_version': '20200414',
 'api_application_version': '0.15.3',
 'api_definition_version': '0.14.3'}
```
If instead you encounter an error at this stage please contact Intellegens for further guidance.

Next, look through and try running example/example_basic.py.  This will upload a small dataset, train a basic model with the default hyperparameters and predict the missing values from a dataset.

Examples of other functionality possible through the Alchemite API are given by:
- example/example_hyperopt.py train an optimal model using hyperparameter optimization and impute the training dataset
- example/example_chunk.py upload a larger dataset in chunks
- example/example_delete.py delete models and datasets
- example/example_optimize.py search the model's parameter space for parameters predicted to meet certain targets
- example/example_outliers.py find outliers in the model's training dataset
- example/example_preload.py preload a model into memory to make predictions for larger models faster

## Credentials

The credentials.json file requires the following elements:
- `host`: The base uri of the Alchemite api you are attempting to use. (Ordinarily `https://alchemiteapi.intellegens.ai/v0`)
- `client_id`: The client id to use for authentication. (Ordinarily `PythonClient`)
- `grant_type`: One of `password`, `client_credentials`, `authorization_code`.

Grant types each have additional elements:
#### Authorization Code:
This will open a browser to prompt for user credentials for using the API. This is the recommended way of authenticating.
- `offline` (optional): If true, the client will attempt to acquire an offline token to persist user authentication between sessions. This token is stored in a `.alchemite_token` file in the working directory.

#### Password:
This will use credentials collected from the commandline to authenticate with the API.
- `username` (optional): The username to log in with. If omitted the user will be prompted to enter it
- `password` (optional): The password to log in with. If omitted the user will be prompted to enter it
- `offline` (optional): If true, the client will attempt to acquire an offline token to persist user authentication between sessions. This token is stored in a `.alchemite_token` file in the working directory.

#### Client Credentials:
Attempts to authenticate using a client secret.
- `client_secret`: The client secret to use for authentication.

### Offline tokens
Offline tokens persist indefinitely, but will expire if unused for more than 30 days.
In the event that the token is lost or stolen, it can be revoked from your profile page in the Applications tab.

Reference documentation corresponding to each API endpoint can be found in the docs directory of the source distribution.

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "alchemite-apiclient",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "Alchemite, Alchemite API, Machine Learning, Artificial Intelligence",
    "author": "Intellegens",
    "author_email": "Intellegens <support@intellegens.com>",
    "download_url": "https://files.pythonhosted.org/packages/5e/af/3c46ad76ae899d984378a8c741a46b13d687c564138ce8bbd8696850b875/alchemite_apiclient-0.84.0.tar.gz",
    "platform": null,
    "description": "# alchemite-apiclient\n\nThis is a client for interacting with Alchemite Analytics, an applied machine learning platform to accelerate industrial\nR&D and optimise manufacturing by extracting information from sparce or noisy datasets.\nTo obtain a licence for this product, please [contact Intellegens](https://intellegens.com/contact-us/) for more information.\n\nAPI version: 0.84.0\n\n## Requirements.\n\nPython >=3.8\n\n## Installation & Usage\n### pip install\nEither you can install this from the public pip repository using:\n\n```sh\npip install alchemite-apiclient\n```\n\nAlternatively, you can install it from a zip archive using:\n\n```sh\npip install ./api_client_python-version.zip\n```\n(you may need to run `pip` with root permission: `sudo pip install ./api_client_python-version.zip`)\n\nThen import the package:\n```python\nimport alchemite_apiclient\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage).\n\nExamples can be found in the source distribution, downloadable from https://pypi.org/project/alchemite-apiclient/#files\n\nThen place your `credentials.json` file in the \"example\" directory and run\n```bash\npython example_connect.py\n```\nThis should connect to the API server and, if successful, print something like this to the terminal (the numbers you see may be different):\n```\n------ API version -----\n{'alchemite_version': '20200414',\n 'api_application_version': '0.15.3',\n 'api_definition_version': '0.14.3'}\n```\nIf instead you encounter an error at this stage please contact Intellegens for further guidance.\n\nNext, look through and try running example/example_basic.py.  This will upload a small dataset, train a basic model with the default hyperparameters and predict the missing values from a dataset.\n\nExamples of other functionality possible through the Alchemite API are given by:\n- example/example_hyperopt.py train an optimal model using hyperparameter optimization and impute the training dataset\n- example/example_chunk.py upload a larger dataset in chunks\n- example/example_delete.py delete models and datasets\n- example/example_optimize.py search the model's parameter space for parameters predicted to meet certain targets\n- example/example_outliers.py find outliers in the model's training dataset\n- example/example_preload.py preload a model into memory to make predictions for larger models faster\n\n## Credentials\n\nThe credentials.json file requires the following elements:\n- `host`: The base uri of the Alchemite api you are attempting to use. (Ordinarily `https://alchemiteapi.intellegens.ai/v0`)\n- `client_id`: The client id to use for authentication. (Ordinarily `PythonClient`)\n- `grant_type`: One of `password`, `client_credentials`, `authorization_code`.\n\nGrant types each have additional elements:\n#### Authorization Code:\nThis will open a browser to prompt for user credentials for using the API. This is the recommended way of authenticating.\n- `offline` (optional): If true, the client will attempt to acquire an offline token to persist user authentication between sessions. This token is stored in a `.alchemite_token` file in the working directory.\n\n#### Password:\nThis will use credentials collected from the commandline to authenticate with the API.\n- `username` (optional): The username to log in with. If omitted the user will be prompted to enter it\n- `password` (optional): The password to log in with. If omitted the user will be prompted to enter it\n- `offline` (optional): If true, the client will attempt to acquire an offline token to persist user authentication between sessions. This token is stored in a `.alchemite_token` file in the working directory.\n\n#### Client Credentials:\nAttempts to authenticate using a client secret.\n- `client_secret`: The client secret to use for authentication.\n\n### Offline tokens\nOffline tokens persist indefinitely, but will expire if unused for more than 30 days.\nIn the event that the token is lost or stolen, it can be revoked from your profile page in the Applications tab.\n\nReference documentation corresponding to each API endpoint can be found in the docs directory of the source distribution.\n\nThis Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A python API client for using Alchemite Analytics",
    "version": "0.84.0",
    "project_urls": {
        "Docs": "https://docs.intellegens.com",
        "Homepage": "https://intellegens.com"
    },
    "split_keywords": [
        "alchemite",
        " alchemite api",
        " machine learning",
        " artificial intelligence"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "af2ff615c0af7a8543e4718e7d0ff9367c4cf4a4fe1d2d091dc12c1af6894722",
                "md5": "dfc4f010a8040bb92dbf7124557afbfa",
                "sha256": "e1cbc1e11e54778eddf168c1aaaa851d50f2967e715c812e36cef928a4644673"
            },
            "downloads": -1,
            "filename": "alchemite_apiclient-0.84.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dfc4f010a8040bb92dbf7124557afbfa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1024731,
            "upload_time": "2024-10-09T14:42:18",
            "upload_time_iso_8601": "2024-10-09T14:42:18.342269Z",
            "url": "https://files.pythonhosted.org/packages/af/2f/f615c0af7a8543e4718e7d0ff9367c4cf4a4fe1d2d091dc12c1af6894722/alchemite_apiclient-0.84.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5eaf3c46ad76ae899d984378a8c741a46b13d687c564138ce8bbd8696850b875",
                "md5": "e039e59eb094b1cea4f84d4e7db6f968",
                "sha256": "9b254214eb52d1b380345a0d5405bb045bfe2f79b96d5049d96cffa4b54caf77"
            },
            "downloads": -1,
            "filename": "alchemite_apiclient-0.84.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e039e59eb094b1cea4f84d4e7db6f968",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 492113,
            "upload_time": "2024-10-09T14:42:20",
            "upload_time_iso_8601": "2024-10-09T14:42:20.338852Z",
            "url": "https://files.pythonhosted.org/packages/5e/af/3c46ad76ae899d984378a8c741a46b13d687c564138ce8bbd8696850b875/alchemite_apiclient-0.84.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-09 14:42:20",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "alchemite-apiclient"
}
        
Elapsed time: 0.75141s