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.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 deactivateto 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


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.12.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

tks_essentials-0.1.12-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tks_essentials-0.1.12.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for tks_essentials-0.1.12.tar.gz
Algorithm Hash digest
SHA256 c19321144ce90185e55d6ca72f9df353e2e69a8b06ef02aaaf7f4954a67ec352
MD5 ca18f3c086d55aed23c8341cbac58cda
BLAKE2b-256 5c962afcdd028e6942aa75bfad1f744d3bd34b097f72de4bd8f22c704ca995fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tks_essentials-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d8354acca48dd8d4707265f644c2af9c8a9c2bb9a2fdbe5b7f810f2c36269bcb
MD5 c65fad712d7c62ebab79878d5737cad1
BLAKE2b-256 0a6f50ab61161645d707f65c35dcd704c19bb2f363b5b9501dcf6009436d554b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page