automatedai-0.5
توضیحات
Automated.ai Python Client Library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | automatedai-0.5 |
| نام | automatedai |
| نسخه کتابخانه | 0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | James Barfield |
| ایمیل نویسنده | info@automated.ai |
| آدرس صفحه اصلی | https://github.com/pypa/automatedai |
| آدرس اینترنتی | https://pypi.org/project/automatedai/ |
| مجوز | - |
# Automated.ai Client Package
Python Client Package to access automated.ai hosted algorithms. For more information, please see [automated.ai](http://automated.ai)
Building the python package:
```console
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:
```console
pip install dist/automatedai-0.1-py3-none-any.whl
```
Ways of using the client api:
```console
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)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | opencv-python |
| - | numpy |
نحوه نصب
نصب پکیج whl automatedai-0.5:
pip install automatedai-0.5.whl
نصب پکیج tar.gz automatedai-0.5:
pip install automatedai-0.5.tar.gz