No project description provided
Project description
SOL Python ORM Library
Installation
pip install sol-orm-lib
Example usage
from sol_orm_lib.models import TACs, TICs
from sol_orm_lib.database import post_tics_data
tics_data = TICs(
timestamp=1625779123,
pvPlannedDown=True,
stgPlannedDown=True,
allPlannedDown=True,
taCs=[
TACs(k=1, ktic='some_string', n=1, timestamp=1625779123),
# add more objects if needed
]
)
reponse = post_tics_data(tics_data)
print(response)
NOTE: The library expects the environment variable 'DB_API_URL' to be set.
Release process
To release a new version of the package, update the version number in the pyproject.toml
file and publish a release with the same tag. The CI will build and publish the package to PyPI.
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
sol_orm_lib-0.1.1.tar.gz
(1.6 kB
view details)
Built Distribution
File details
Details for the file sol_orm_lib-0.1.1.tar.gz
.
File metadata
- Download URL: sol_orm_lib-0.1.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-52-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d6d8503c31950bbbad31c752db170476bc1d715e9af20c56928a0f06550e1be |
|
MD5 | 03d8a7a7231036cdb0b78e94c2f4150e |
|
BLAKE2b-256 | 985352cd83d3473e4bc6b08a086e5de8b480b87874848e1b8d6ab92902fc7b9a |
File details
Details for the file sol_orm_lib-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: sol_orm_lib-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-52-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51ebdf20b7a0261db28715c84b6401ce82079f87631c94040473e9aff737439c |
|
MD5 | aff674c0bc335b7112f232432ac5d3ad |
|
BLAKE2b-256 | 9d6f1d1af57dd8e426224680d510a4b5180253cad23dba267365cce4e40e5ceb |