# 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.87.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/7a/aa/742287832306e3f439a33a18ed589ecaa0f8a450b265ad2ee6abf7d1b433/alchemite_apiclient-0.87.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.87.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.87.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": "8295e89b11827993cf811719c29e7601b9d188a8584873a015593032e0699f4e",
"md5": "219c070909e40f7e89c4260b93db31f1",
"sha256": "e134f63f4099707517ac559abb055e3e8e33ece8924062c3c14a8e292135db49"
},
"downloads": -1,
"filename": "alchemite_apiclient-0.87.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "219c070909e40f7e89c4260b93db31f1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 1043816,
"upload_time": "2024-12-04T15:10:56",
"upload_time_iso_8601": "2024-12-04T15:10:56.181712Z",
"url": "https://files.pythonhosted.org/packages/82/95/e89b11827993cf811719c29e7601b9d188a8584873a015593032e0699f4e/alchemite_apiclient-0.87.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7aaa742287832306e3f439a33a18ed589ecaa0f8a450b265ad2ee6abf7d1b433",
"md5": "b65adc1cf843cbdf0c69a7d07ab84598",
"sha256": "4f80ad337542bcfc6c53eb1fb42a11bb1449d85257ca950491ab55231da84ce8"
},
"downloads": -1,
"filename": "alchemite_apiclient-0.87.0.tar.gz",
"has_sig": false,
"md5_digest": "b65adc1cf843cbdf0c69a7d07ab84598",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 500451,
"upload_time": "2024-12-04T15:10:58",
"upload_time_iso_8601": "2024-12-04T15:10:58.253099Z",
"url": "https://files.pythonhosted.org/packages/7a/aa/742287832306e3f439a33a18ed589ecaa0f8a450b265ad2ee6abf7d1b433/alchemite_apiclient-0.87.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-04 15:10:58",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "alchemite-apiclient"
}