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.12.9.
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 import global_logger
Setup as Contributor
Create the virtual 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 utils.py can find the root directory. Either set the
PROJECT_ROOT environment variable to the root directory, or create a config or logs directory
within the project root. Then run pytest.
Build Library
Prerequisite: make sure that you give your Operating System user the right to modify files in the
python directory (where Python is installed). Use:
python setup.py bdist_wheel
to create the dist, build, and .eggs folders.
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
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 tks_essentials-0.1.35.tar.gz.
File metadata
- Download URL: tks_essentials-0.1.35.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c92c9683717966b47e543360b80ea094f78ab35e63806153bc12831c600d0f5
|
|
| MD5 |
53cb5fb40b51d937381f6e9f787f7487
|
|
| BLAKE2b-256 |
59958a5a5858cc863604e031ce9320424b93bc09676a81e4a2287c2a91fcee50
|
Provenance
The following attestation bundles were made for tks_essentials-0.1.35.tar.gz:
Publisher:
testing_and_deployment.yml on The-Kara-System/tks-essentials
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tks_essentials-0.1.35.tar.gz -
Subject digest:
7c92c9683717966b47e543360b80ea094f78ab35e63806153bc12831c600d0f5 - Sigstore transparency entry: 945331359
- Sigstore integration time:
-
Permalink:
The-Kara-System/tks-essentials@80b7359977104ee8a6d1906c5f44c3f061c12409 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/The-Kara-System
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
testing_and_deployment.yml@80b7359977104ee8a6d1906c5f44c3f061c12409 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tks_essentials-0.1.35-py3-none-any.whl.
File metadata
- Download URL: tks_essentials-0.1.35-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5149539059170c41f65ff0ded57e4beca10b9c9ca48b421e89b774e8d3e2255b
|
|
| MD5 |
7b8d21147e508b2ec33c30cc1e05727b
|
|
| BLAKE2b-256 |
872284dcf54f6d65f36e60e47da295c37412fee6ce4ac07ae1627a796d37fced
|
Provenance
The following attestation bundles were made for tks_essentials-0.1.35-py3-none-any.whl:
Publisher:
testing_and_deployment.yml on The-Kara-System/tks-essentials
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tks_essentials-0.1.35-py3-none-any.whl -
Subject digest:
5149539059170c41f65ff0ded57e4beca10b9c9ca48b421e89b774e8d3e2255b - Sigstore transparency entry: 945331376
- Sigstore integration time:
-
Permalink:
The-Kara-System/tks-essentials@80b7359977104ee8a6d1906c5f44c3f061c12409 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/The-Kara-System
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
testing_and_deployment.yml@80b7359977104ee8a6d1906c5f44c3f061c12409 -
Trigger Event:
push
-
Statement type: