Essentials for our TKS projects.
Project description
tks-essentials
A library with essentials needed in every backend python app. e.g. logging, local db connection, filtering, formatting etc.
Sponsors
Freya Alpha, The Kára System, Spark & Hale Robotic Industries
General
Run and compiled for Python 3.9.13. Expected to run for Python 3+
Development
Testing
run tests with pytest -s -vv
to see all the details.
Installation as Consuming Developer
Simply run: pip install tks-essentials
Import in modules without the dash (e.g.): from tksessentials.globallogger import GlobalLogger
Setup as Contributor
Create the virtul environment:
py -m venv .venv
Start the Environment:
./.venv/Scripts/activate
(or allow VS Code to start it). Use deactivate
to stop it.
All the required libraries must be listed in requirements.txt and installed by
python -m pip install -r .\requirements.txt
For Dev use
python -m pip install -r .\requirements-dev.txt
To cleanup the environment run:
pip3 freeze > to-uninstall.txt
and then
pip3 uninstall -y -r to-uninstall.txt
or
pip3 install pip-autoremove
Testing
Before running the tests, make sure that the utils.py can find the root directory. Either set the PROJECT_ROOT environement variable to the root directory, or simply create a config or a logs directory within the project root. Then run the pytests.
Build Library
Prerequisite: make sure that you give your Operating System user the right to modify files in the python directory. The directory where pyhton is installed.
Use
python setup.py bdist_wheel
to create the dist, build and .eggs folder.
Releasing a new version / CICD Process
This is entirely executed with Github Actions.
Visual Studio Code --> GitHub Actions --> Build within Github Actions --> Uploaded by Github Actions to pypi.org.
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
File details
Details for the file tks_essentials-0.1.19.tar.gz
.
File metadata
- Download URL: tks_essentials-0.1.19.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 839e1fec42b42a7661a4ae24286b03eda4dcc2abce1dc20383ac5ac87ff5fb2e |
|
MD5 | 9a030647caf1478cabe3e24f1085ca80 |
|
BLAKE2b-256 | 14cace22a0bc1b49e3834ac35963a2d1c7e755bb7cae2049b7147b4eba49dc73 |
Provenance
The following attestation bundles were made for tks_essentials-0.1.19.tar.gz
:
Publisher:
testing_and_deployment.yml
on The-Kara-System/tks-essentials
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
tks_essentials-0.1.19.tar.gz
- Subject digest:
839e1fec42b42a7661a4ae24286b03eda4dcc2abce1dc20383ac5ac87ff5fb2e
- Sigstore transparency entry: 150164800
- Sigstore integration time:
- Predicate type:
File details
Details for the file tks_essentials-0.1.19-py3-none-any.whl
.
File metadata
- Download URL: tks_essentials-0.1.19-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53c5d44815693db409f958017e3e3575d4b13c618aea30975c083f2296a04d54 |
|
MD5 | ebe9bf2930a2eaab689870d0a3e4a3b2 |
|
BLAKE2b-256 | 8b16bbbf1cbc3287820e1b34f587bcad88968bc0e501aa6f9e752c7b4971e560 |
Provenance
The following attestation bundles were made for tks_essentials-0.1.19-py3-none-any.whl
:
Publisher:
testing_and_deployment.yml
on The-Kara-System/tks-essentials
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
tks_essentials-0.1.19-py3-none-any.whl
- Subject digest:
53c5d44815693db409f958017e3e3575d4b13c618aea30975c083f2296a04d54
- Sigstore transparency entry: 150164802
- Sigstore integration time:
- Predicate type: