Skip to main content

# 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)

Source distribution for rhodb 6.0.0
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

Release history Release notifications | RSS feed

This release

6.0.0 This release

1 release file

5.1.5

1 release file

5.1.4

1 release file

5.1.3

1 release file

5.1.1

1 release file

5.1.0

1 release file

5.0.1

1 release file

4.5.0

1 release file

4.0.0

1 release file

3.10.0

1 release file

3.8.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page