Skip to main content

A data layer for In Layers Core. (in-layers-core). Part of the Node in Layers ecosystem

Project description

In Layers Data

A data layer for the In Layers Core framework.

NOTE: There are no explicit dependencies on any database. To use a specific database you must install it in your own system. These databases are "imported in" as the databases are actually used at runtime.

How To Use

  1. Install in-layers-data
  2. Set "in_layers_data" to the in_layers_core.models.model_backend property
  3. Add in_layers_data configuration to your config
  4. Install database libraries to use. Example: pymongo or boto3

Configuration Example

# config_base.py
from box import Box
def get_base_config():
    return Box(
        ...,
        in_layers_core=Box(
            ...
            models=Box(
                model_backend="in_layers_data",
            )
        ),
        in_layers_data=Box(
            default=Box(
                type="mongodb"
                # Connection information here
            ),
            # Optional: Set "domain" or "domain.ModelPluralNames" to a specific database configuration.
            # model_to_backend=Box(
            #     "domain.ModelPluralNames"=Box(
            #         type="mongodb",
            #         host="different-host"
            #     )
            # )
        )
    )

Key Features

  • Drop in, Swappable Databases
  • Multi-database support
  • Low dependencies

Databases Supported

  • Mongodb
  • Dynamodb

Database Info

Mongo

Mongodb requires pymongo

Dynamodb

Dynamodb requires boto3

Important

Dynamodb is very poor at performing search queries. While this is implemented, it is not-recommended for use. Instead use the retrieve.

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

in_layers_data-0.4.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

in_layers_data-0.4.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file in_layers_data-0.4.1.tar.gz.

File metadata

  • Download URL: in_layers_data-0.4.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for in_layers_data-0.4.1.tar.gz
Algorithm Hash digest
SHA256 4ed4fedc8b64a2b629b1c4ab667b18556afa0a5bb4a31a09f215222c6526c7dd
MD5 9aa2a48313e6146240f84a4d14cfe102
BLAKE2b-256 f7bef0e6a08f956b1cb1f4f4145820bab8fe2faf54b089c421c520ff1a8a1fce

See more details on using hashes here.

File details

Details for the file in_layers_data-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: in_layers_data-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for in_layers_data-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a4d6c6b4097b205df3d60aea18738cdf10328109520ac8aff295b02441e8781
MD5 4875a4b426dff97804b994db0df5048b
BLAKE2b-256 2003aebe6a8165f47cfc4d56b21e58a7cdedc9453e7235865d555c49fac9ebc4

See more details on using hashes here.

Supported by

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