alchemite-apiclient


Namealchemite-apiclient JSON
Version 0.76.0.post1 PyPI version JSON
download
home_pageNone
SummaryA python API client for using Alchemite Analytics
upload_time2024-06-19 15:52:33
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.76.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/6c/78/9258b024d59b03118b99327ec156e64c6f13bd042433f072aeed2351eb97/alchemite_apiclient-0.76.0.post1.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.76.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.76.0.post1",
    "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": "e071209608351323cb3cb3c9a913b91506e494b4176ca18615d9d04f1dcd4199",
                "md5": "c9ea09145487f8b5397045307d46a2fa",
                "sha256": "aff3d4d2f5d56add46861ccb9dcc78ae3753fa770f09a4441b0fa982c4ce597e"
            },
            "downloads": -1,
            "filename": "alchemite_apiclient-0.76.0.post1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c9ea09145487f8b5397045307d46a2fa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 954176,
            "upload_time": "2024-06-19T15:52:29",
            "upload_time_iso_8601": "2024-06-19T15:52:29.389833Z",
            "url": "https://files.pythonhosted.org/packages/e0/71/209608351323cb3cb3c9a913b91506e494b4176ca18615d9d04f1dcd4199/alchemite_apiclient-0.76.0.post1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6c789258b024d59b03118b99327ec156e64c6f13bd042433f072aeed2351eb97",
                "md5": "4ec2f8c3f4426adc9095cecd52959f26",
                "sha256": "29f68e5b3399ed83d3ace1b4b8567923b3607188432f52ec72a270332c636780"
            },
            "downloads": -1,
            "filename": "alchemite_apiclient-0.76.0.post1.tar.gz",
            "has_sig": false,
            "md5_digest": "4ec2f8c3f4426adc9095cecd52959f26",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 478321,
            "upload_time": "2024-06-19T15:52:33",
            "upload_time_iso_8601": "2024-06-19T15:52:33.978297Z",
            "url": "https://files.pythonhosted.org/packages/6c/78/9258b024d59b03118b99327ec156e64c6f13bd042433f072aeed2351eb97/alchemite_apiclient-0.76.0.post1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-19 15:52:33",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "alchemite-apiclient"
}
        
Elapsed time: 0.27327s