# RhoDB
Core Database-related classes that typical Rho AI Applications will need. ‘Typical’ meaning using flask, sqlalchemy/postgres, and redis.
## Examples
Example code include db initialization, helper functions, and base classes for models.
## Testing
To run the tests we need to install pyenv and tox.
Follow the instructions for [pyenv](https://github.com/pyenv/pyenv#installation) and [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv#installation) to install pyenv.
After pyenv is intalled, then install tox
$ pip install tox
Then install the different python versions in pyenv
$ pyenv install 2.7.13 3.6.7
Ensure testable databases are running. Remove -d if you want to run in foreground…
Redis * docker run –name rhodb-redis -d -p 6379:6379 redis:4
MySQL == 5.7 * docker run –name rhodb-mysql -d -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql:5.7
Postgres * docker run –name rhodb-postgres -d -p 5432:5432 -e POSTGRES_DB=rhodb_test -e POSTGRES_HOST_AUTH_METHOD=trust postgres:10
Elasticsearch * docker run –name rhodb-elasticsearch -d -p 9200:9200 -p 9300:9300 -e “discovery.type=single-node” docker.elastic.co/elasticsearch/elasticsearch:6.5.4
Now, run the tests:
$ tox
Release files for rhodb 6.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rhodb-6.0.0.tar.gz | 20.7 kB | Details |
Release files / rhodb-6.0.0.tar.gz
| Download URL | rhodb-6.0.0.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
187f9ef0f00ee3b0880ac98a09a26b4f7ebd300c45427936d350082f9e8558fb
|
|
BLAKE2b-256 checksum How to use checksums |
1eb9b50a868f0d9d6f37b01b2c89c5d684d47852f4ef38f4ea55cb9863984629
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|