Kelian
Kelian is a Python library that provides a collection of useful and commonly used code snippets to speed up development and avoid reinventing the wheel. It includes utility functions, common algorithms, data manipulations, and more, designed to simplify your workflow and increase productivity.
Installation
You can install the Kelian library via pip:
pip install kelian
Examples
Functions
Time Tracking
Utility to measure and average time intervals for various operations.
AverageTime: Classstart: Starts a timer for a specific ID.loop: Records both start and end times for a specific ID.stop: Stops a timer for a specific ID.get_average: Retrieves the average elapsed time for a specific ID or all IDs.__str__,__repr__: Returns the average elapsed time(s) as a formatted string.
Encryption
Simple functions to encrypt and decrypt data using predefined mappings or lists.
alpha2dict: Maps alphabets to a dictionary for encryption.list2dict: Converts a list to a dictionary.encrypt: Encrypts a given text using predefined mappings.decrypt: Decrypts a given encrypted text.encrypt_by_list: Encrypts text based on a custom list.decrypt_by_list: Decrypts text based on a custom list.
Loading Bar
ProgressBar: Classformat: Change pattern of progress bar (per-element keyword arguments).parse_format: Configure the bar from a compact format string, e.g."$b50.|#>-| $p.1% | $etaHH:MM:SS.mmm"($bbar,$ppercent,$etaremaining time). Can also be passed at construction viaformat="...".update: Increment the progress by one.display: Return the progress bar updated or not, depending on the given parameter.__str__,__repr__: Return the progress bar updated.
System
Retrieve detailed information about your computer's hardware, including processor, motherboard, GPU, RAM, and more.
get_processor_details: Returns details about the CPU.get_motherboard_details: Returns details about the motherboard.get_gpu_details: Returns details about the GPU.get_monitor_details: Returns details about the monitor.get_cd_drive_details: Returns details about the CD drive.get_mouse_details: Returns details about the mouse.get_speaker_details: Returns details about the speakers.get_keyboard_details: Returns details about the keyboard.get_hard_disk_details: Returns details about the hard disk.get_ram_details: Returns details about the RAM.
Utility
Helper functions like hashing utilities for common tasks.
string2hash: Converts a string to its sha256 hashed value.fix_encoding: Corrects common encoding issues in a text.multi_replace: Replaces multiple substrings in a text with specified values.multi_replace_by_one: Replaces multiple substrings in a text with a single specified value.while_replace: Replaces a substring in a text repeatedly until it no longer exists.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Metadata
Release files for kelian 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kelian-0.1.10.tar.gz | 15.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kelian-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.4 kB
Release files / kelian-0.1.10.tar.gz
| Download URL | kelian-0.1.10.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed43400a5d820678b2dfa65184901004e0d8b84f38735a2810dcc5d9d01f57c2
|
|
BLAKE2b-256 checksum How to use checksums |
a4bacd714d4a241870e9b7ba652c1c3385cb7afc824a17b916364543e1db5e64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / kelian-0.1.10-py3-none-any.whl
| Download URL | kelian-0.1.10-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3d3794b5e2edfaf0965c70692514b0c85144b951a3a528b36957d4b96ee08cd
|
|
BLAKE2b-256 checksum How to use checksums |
50e88139fa2f6f49b3405e062fba7b69fad2f9d92636a16a6027c77018fc81e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for kelian 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.