Persistence layer for Distributed AtomSpace
Project description
Hyperon DAS AtomDB
Persistence layer for Distributed AtomSpace
Installation
This package requires: python >= 3.8.5 to run.
This package is deployed on Pypi. If you want, you can install using the pip command
pip install hyperon-das
If you want to run it without installing it by pip, you can follow the following approach
We use the Poetry package to manage project dependencies and other things. So, if you have Poetry on your machine, you can run the commands below to prepare your environment
1. poetry install
2. poetry shell (activate virtual environment)
Prepare environment
1 - Redis and MongoDB You must have Redis and MongoDB running in your environment
2.1 - Environments Variables You must have the following variables set in your environment with their respective values:
DAS_MONGODB_HOSTNAME=172.17.0.2
DAS_MONGODB_PORT=27017
DAS_MONGODB_USERNAME=mongo
DAS_MONGODB_PASSWORD=mongo
DAS_REDIS_HOSTNAME=127.0.0.1
DAS_REDIS_PORT=6379
2.2 or you can export necessary environment using the enviroment file source environment
Usage
Use adapters
from hyperon_das_atomdb.adapters import RedisMongoDB, InMemoryDB
redis_mongo_db = RedisMongoDB()
in_memory_db = InMemoryDB()
Tests
You can ran the command below to execute the unittests
make test-coverage
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
Hashes for hyperon_das_atomdb-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1ff0f76d627e9cc0ae0b57460d336df5091d27b1f257ced99104405d7ba6ba |
|
MD5 | 1f465f1b040e1dc100064fcd6e93dd80 |
|
BLAKE2b-256 | bf950e6fcfab707e7db89774189a1eb03d917aa0f487ae0aeab011d00cf2de2a |