Library of miscellaneous common python utils that aren't worthy of their own dedicated libs.
Project description
KvCommon Python Utils
Library of miscellaneous common python utils that aren't worthy of their own dedicated libraries yet. Some of these packages will be moved out to their own libs later.
This library isn't likely to be useful to anyone else; it's just a convenience to save me from copy/pasting between various projects I work on.
PyPi
https://pypi.org/project/kvcommon/
Installation
With Poetry:
poetry add kvcommon
With pip:
pip install kvcommon
Packages/Modules
| Package | Description | Example Usage |
|---|---|---|
asynchronous |
Various utils for easing use of asyncio stuff + a coroutine/thread-based async job scheduler | #TODO |
datastore |
An abstraction for a simple dictionary-based key-value datastore with support for schema versions and files as 'backends' (TOML, YAML, etc.) | #TODO |
k8s |
Utils to reduce boilerplate when working with Kubernetes and GKE in Python | from kvcommon.k8s import K8sAppsClient; K8sAppsClient().rollout_restart_deployment("some_namespace", "some_name") |
logger |
Boilerplate wrapper to get logger with formatting | from kvcommon import logger as LOG; LOG.get_logger("logger_name") |
misc |
Obligatory 'misc' | |
types |
Utils for either converting types or type-hinting | from kvcommon import types; types.to_bool("false") |
urls |
Convenience wrappers for URL parsing | from kvcommon import urls; urls.urlparse_ignore_scheme("github.com") |
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 kvcommon-0.4.9.tar.gz.
File metadata
- Download URL: kvcommon-0.4.9.tar.gz
- Upload date:
- Size: 30.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e958a04e9ac823b8443547516f54afd762d450383006b007a714a44c394ec695
|
|
| MD5 |
670553995acc7fb87e1a0092e9b611ab
|
|
| BLAKE2b-256 |
ea0b29770d193aa3423c3dd13d1e7942fd649d06d84282f3b932fd03d1fe6dab
|
Provenance
The following attestation bundles were made for kvcommon-0.4.9.tar.gz:
Publisher:
publish.yml on RAVoigt/kvcommon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kvcommon-0.4.9.tar.gz -
Subject digest:
e958a04e9ac823b8443547516f54afd762d450383006b007a714a44c394ec695 - Sigstore transparency entry: 828949935
- Sigstore integration time:
-
Permalink:
RAVoigt/kvcommon@2d7d712c06b67ad365e9a785384808d4d079494d -
Branch / Tag:
refs/tags/0.4.9 - Owner: https://github.com/RAVoigt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2d7d712c06b67ad365e9a785384808d4d079494d -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file kvcommon-0.4.9-py3-none-any.whl.
File metadata
- Download URL: kvcommon-0.4.9-py3-none-any.whl
- Upload date:
- Size: 49.5 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 |
7b9318bf9616c7cbf47ca0d20d1f3bb73aabc145b3b5b54977430cca4a611cd1
|
|
| MD5 |
7ca6cda8b6fd8ebdfbedbb604cd76170
|
|
| BLAKE2b-256 |
fd208471328726c6701a30aa1a647609946e4438d8b253305d5a68b519e8f6cc
|
Provenance
The following attestation bundles were made for kvcommon-0.4.9-py3-none-any.whl:
Publisher:
publish.yml on RAVoigt/kvcommon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kvcommon-0.4.9-py3-none-any.whl -
Subject digest:
7b9318bf9616c7cbf47ca0d20d1f3bb73aabc145b3b5b54977430cca4a611cd1 - Sigstore transparency entry: 828949936
- Sigstore integration time:
-
Permalink:
RAVoigt/kvcommon@2d7d712c06b67ad365e9a785384808d4d079494d -
Branch / Tag:
refs/tags/0.4.9 - Owner: https://github.com/RAVoigt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2d7d712c06b67ad365e9a785384808d4d079494d -
Trigger Event:
workflow_dispatch
-
Statement type: