Skip to main content

Functions common to several of Brian's Python projects.

Project description

ruf-common

PyPI version Python 3.9+ License: MIT

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 formats
  • data: Functions for managing and manipulating XML, JSON and YAML content
  • database: Functions for interacting with a database. These functions operate the same for all supported databases
  • helper: Various helper functions
  • html_to_markdown: Functions for converting HTML content to Markdown
  • lfs: Functions for interacting with the local file system (LFS)
  • logging: Logging configuration and utilities
  • network: Functions for network operations
  • stats: Statistical helper functions
  • timezone_lookup: Functions for timezone lookups based on location
  • xml_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

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

ruf_common-2.1.0.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.

ruf_common-2.1.0-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

Details for the file ruf_common-2.1.0.tar.gz.

File metadata

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

File hashes

Hashes for ruf_common-2.1.0.tar.gz
Algorithm Hash digest
SHA256 313aa2b9a99c55a5f35ba737a6fcc6ff201bfb55dfa1429247e09c03a738c935
MD5 45b91322be90bbeb2dd763bbf406d295
BLAKE2b-256 1e0c6a28dd686810a5ac2fe513d3183e5c7cab8c67a9a0af63df03078eea21c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruf_common-2.1.0.tar.gz:

Publisher: publish.yml on brian-ruf/ruf-common-python

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

File details

Details for the file ruf_common-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: ruf_common-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ruf_common-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad01c149763d9ef22c0ab93796e435f7f3a5a9cf76b4b7736927669e90dada05
MD5 954717550da02440c17b37eb968dc522
BLAKE2b-256 fd0ca310ae1094a7974eca832655e23633761743adb18cee32bc5ef0fbb6a7ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruf_common-2.1.0-py3-none-any.whl:

Publisher: publish.yml on brian-ruf/ruf-common-python

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