RedisAI Python Client
Project description
redisai-py is the Python client for RedisAI. Checkout the documentation for API details and examples
Installation
Install Redis 5.0 or above
Install RedisAI
Install the Python client
$ pip install redisai
Install serialization-deserialization utility (optional)
$ pip install ml2rt
Development
Assuming you have virtualenv installed, create a virtualenv to manage your python dependencies, and activate it. `virtualenv -v venv; source venv/bin/activate`
Install [pypoetry](https://python-poetry.org/) to manage your dependencies. `pip install poetry`
Install dependencies. `poetry install --no-root`
[tox](https://tox.readthedocs.io/en/latest/) runs all tests as its default target. Running tox by itself will run unit tests. Ensure you have a running redis, with the module loaded.
Contributing
Prior to submitting a pull request, please ensure you’ve built and installed poetry as above. Then:
Run the linter. `tox -e linters.`
Run the unit tests. This assumes you have a redis server running, with the [RedisAI module](https://redisai.io) already loaded. If you don’t, you may want to install a [docker build](https://hub.docker.com/r/redislabs/redisai/tags). `tox -e tests`
RedisAI example repo shows few examples made using redisai-py under python_client folder. Also, checkout ml2rt for convenient functions those might help in converting models (sparkml, sklearn, xgboost to ONNX), serializing models to disk, loading it back to redisai-py etc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file redisai-1.3.0.tar.gz
.
File metadata
- Download URL: redisai-1.3.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d9efa3ead4d45ab480d70d98562658b458c6fa28c570e748035540ea2e392a0 |
|
MD5 | e4ad1e24940c6284acbbb966dbe83f87 |
|
BLAKE2b-256 | 4001bed3f5f19a6b321c8a0e9096e978d9ea93f3bf2c99cbab3ac2d7d5bb2403 |
File details
Details for the file redisai-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: redisai-1.3.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.8.16 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22424cbe54353f8fb42ea09c93afd2158733e7224128b95cb19e7ae920048616 |
|
MD5 | 66f6979b55384ffd63acdc4b92fbcaad |
|
BLAKE2b-256 | e6a98953236caad42a712776bd05314e8a741233a4208f0fe8db4f45b39fad9c |