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
- Install in-layers-data
- Set
"in_layers_data"to thein_layers_core.models.model_backendproperty - Add
in_layers_dataconfiguration to your config - Install database libraries to use. Example:
pymongoorboto3
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file in_layers_data-0.4.12.tar.gz.
File metadata
- Download URL: in_layers_data-0.4.12.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f86887d2ce4c26871df59b1cc9b88aa48175dfa50dd2f552f057273630a2b4a
|
|
| MD5 |
6e570b00a412b13d7ada24762ffb1ece
|
|
| BLAKE2b-256 |
d943b729d6e0120d0fd9f73d1ce94eff8ad73821092dcbb3c6ca2b3ece63edcc
|
File details
Details for the file in_layers_data-0.4.12-py3-none-any.whl.
File metadata
- Download URL: in_layers_data-0.4.12-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fafac5b1367057310467a234485e243227d17abed0f8f1305b5fa5cda62e5b45
|
|
| MD5 |
52f6d1014a47dca5831cbdca8151710c
|
|
| BLAKE2b-256 |
46d110ebce88089dd7cce41de1560e65e2d3f6f426d474f93b3e424ba31a0ff7
|