Skip to main content

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-atomdb

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_MONGODB_TLS_CA_FILE=global-bundle.pem       [optional]
DAS_REDIS_HOSTNAME=127.0.0.1
DAS_REDIS_PORT=6379
DAS_USE_REDIS_CLUSTER=false                     [default: true]
DAS_USE_CACHED_NODES=false                      [default: true]
DAS_USE_CACHED_LINK_TYPES=false                 [default: true]
DAS_USE_CACHED_NODE_TYPES=false                 [default: true]

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, ServerDB

redis_mongo_db = RedisMongoDB()
in_memory_db = InMemoryDB()
server_db = ServerDB(host='0.0.0.0')

Tests

You can ran the command below to execute the unittests

make test-coverage

Documentation References

Repositories documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hyperon_das_atomdb-0.2.3.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

hyperon_das_atomdb-0.2.3-py3-none-any.whl (20.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page