Skip to main content

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 details. Coverage is enabled by default when running pytest.

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 (coverage runs automatically).

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tks_essentials-0.1.36.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

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

tks_essentials-0.1.36-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file tks_essentials-0.1.36.tar.gz.

File metadata

  • Download URL: tks_essentials-0.1.36.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tks_essentials-0.1.36.tar.gz
Algorithm Hash digest
SHA256 ca658c8982d03a401383cce750b18be7c9589bce2bd7b92131fe02d9bad2c238
MD5 28ba5aa3a1360257ba4488028c25b368
BLAKE2b-256 16c244978ecae57a4033e352d52655079583f8bd0473d7340271e1e8b4b82a19

See more details on using hashes here.

Provenance

The following attestation bundles were made for tks_essentials-0.1.36.tar.gz:

Publisher: testing_and_deployment.yml on The-Kara-System/tks-essentials

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tks_essentials-0.1.36-py3-none-any.whl.

File metadata

File hashes

Hashes for tks_essentials-0.1.36-py3-none-any.whl
Algorithm Hash digest
SHA256 e4d028cc9424af738edf0b1cb0e952007379f2d21bf2cca823b4db934065bd2b
MD5 3ad861a9e45b9e7e772e79ee958680de
BLAKE2b-256 f4733ed057f10a96bd6dbacb25955e104caa641046d36b46d4c970122741eaa9

See more details on using hashes here.

Provenance

The following attestation bundles were made for tks_essentials-0.1.36-py3-none-any.whl:

Publisher: testing_and_deployment.yml on The-Kara-System/tks-essentials

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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