ruf-common
Overview
A collection of Python utility modules for common tasks including file operations, data format conversions, database interactions, and more.
Feedback welcome via GitHub issues. While I will try to address issues in a timely manner, I only intend to invest in feature requests that align with my project work. Feel free to contribute backward compatible enhancements.
Installation
pip install ruf-common
Usage
# Import the entire library
from ruf_common import *
# Or import specific modules
from ruf_common import data, helper, lfs # etc.
Modules
The following modules are available:
country_code_converter: Functions for converting between country code formatsdata: Functions for managing and manipulating XML, JSON and YAML contentdatabase: Functions for interacting with a database. These functions operate the same for all supported databaseshelper: Various helper functionshtml_to_markdown: Functions for converting HTML content to Markdownlfs: Functions for interacting with the local file system (LFS)logging: Logging configuration and utilitiesnetwork: Functions for network operationsstats: Statistical helper functionstimezone_lookup: Functions for timezone lookups based on locationxml_formatter: Functions for formatting XML content
License
MIT
Use of AI for Creating/Maintaining This Library
No portion of this library was "vibe coded".
Early versions of this library were written entirely without the use of AI tools.
Claude/Claude Code and GitHub Co-pilot have been used in a manner similar to pair-programming. This includes:
- improving alignment with "pythonic" best practices
- targeted code reviews
- resolving linter issues
- aiding in debugging and testing
- drafting individual functions/methods that I refine and test
- drafting portions of documentation
- drafting unit tests
Metadata
Release files for ruf-common 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ruf_common-2.2.0.tar.gz | 36.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ruf_common-2.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 77.4 kB
Release files / ruf_common-2.2.0.tar.gz
| Download URL | ruf_common-2.2.0.tar.gz |
|---|---|
| Size | 36.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
370a700ab0b58f03c6a87febefb49dacbee54db2928f002931253c44df836640
|
|
BLAKE2b-256 checksum How to use checksums |
d8d2afa126fc5520bc4a3fcefadb136a24844d8ee7af91fd02480a2644e78bbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency logRelease files / ruf_common-2.2.0-py3-none-any.whl
| Download URL | ruf_common-2.2.0-py3-none-any.whl |
|---|---|
| Size | 40.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b56dfa71c3659a59c166db9d4c3cebf88fc21e4bc03138962b9ca11db56bcfa
|
|
BLAKE2b-256 checksum How to use checksums |
b3001052601b3217dc63ce4d4e357e65e134fb4b2e34a012e7a8fa25c42d3c6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency log