Automated.ai Client Package
Python Client Package to access automated.ai hosted algorithms. For more information, please see automated.ai
Building the python package:
python setup.py bdist_wheel
source py27
python setup.py bdist_wheel
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
Install localally:
pip install dist/automatedai-0.1-py3-none-any.whl
Ways of using the client api:
endpoint
token = "my_secret_token"
Algo=automatedai.Algorithm(endpoint,token)
# Send None to invoke algorithm
output = Algo.send(None)
print(output)
# Send a string to your algorithm
output = Algo.send("send a string")
print(output)
# Send a file
output = Algo.send(bytearray(open("my_image.jpg", "rb").read()))
print(output)
# Send a JSON structure, returns the JSON structure
output = Algo.send({"MyString":"JSON String"})
print(output)
# Send an dictionary (np arrays are converted to list)
output = Algo.send({"int":1,"float":1.2,"array":[1,2],"string":"Ddd","np":np.random.randint(0,255,(100,100,3),np.uint8),"List":[1,2,3,4]})
print(output)
# Send a list
output = Algo.send(["send", "elements", "in", "array"])
print(output)
# send a file link to download, returns the file bytes downloaded
output = Algo.send_url_to_download("https://file_link
print(output)
Release files for automatedai 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| automatedai-0.5-py3-none-any.whl | Python 3 | none | any | Details |
| automatedai-0.5-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 7.7 kB
Release files / automatedai-0.5-py3-none-any.whl
| Download URL | automatedai-0.5-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dbb009ad9a320577caf6fb11fa54457d95618ee22f10910ca1f97122690b766
|
|
BLAKE2b-256 checksum How to use checksums |
ea3eb57827ec37d96dabd7837ab9d80575b46a338862ddfa38cb998e325dee96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Release files / automatedai-0.5-py2-none-any.whl
| Download URL | automatedai-0.5-py2-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
2ff530527bbac84833336d840b6caceef13e76a53b6edabbe55b82fc453b28cd
|
|
BLAKE2b-256 checksum How to use checksums |
01c5d20261b0cc54c772332f71af89eb63d3345739d730b38def69c3e1a8e480
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.20.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|