Skip to main content

A dot-accessible Python utility toolkit for files, directories, media, math conversions, random values, strings, validation, and external tooling.

Project description

colemen_py

colemen_py is a dot-accessible Python utility toolkit rebuilt from the older colemen_utils ecosystem.

The public API is intentionally discoverable from a single import:

import colemen_py as c

c.file.exists("notes.txt")
c.string.to_snake_case("Hello World")
c.rand.uuid()

Installation

Base install:

pip install colemen-py

Optional feature groups:

pip install "colemen-py[image]"   # Pillow-backed image helpers
pip install "colemen-py[audio]"   # Mutagen-backed audio metadata helpers
pip install "colemen-py[video]"   # OpenCV-backed video frame scoring helpers
pip install "colemen-py[media]"   # image + audio + video optional dependencies
pip install "colemen-py[dev]"     # test/build/lint tooling

The import package name is still colemen_py:

import colemen_py as c

Design principles

  • One installable package, many internal modules.
  • Dot-accessible namespaces for IDE autocomplete.
  • Pythonic snake_case method names, with selected compatibility aliases where useful.
  • Public functions include type hints and docstrings.
  • No expensive work at import time.
  • str and pathlib.Path are accepted for path-based helpers.
  • Generic file utilities live in c.file; media-specific behavior lives in c.media.

Public namespaces

c.array      # list/sequence utilities
c.list       # alias to c.array
c.object     # dictionary/object utilities
c.dict       # alias to c.object
c.string     # string utilities
c.file       # file utilities
c.dir        # directory utilities
c.directory  # alias to c.dir
c.console    # console output/timers
c.rand       # random values/ids
c.random     # alias to c.rand
c.time       # time/duration utilities
c.type       # type checks/coercion
c.validation # validation helpers
c.math       # math helpers
c.media      # media/binary utilities

Stage 1 status

This is the foundation package. The old colemen_utils source has not been blindly copied in. Instead, the core utility surface has been rebuilt with clean internals and tests.

The package can use bundled binaries when present and can also fall back to compatible tools available on PATH. Current media wrappers may rely on external executables such as ExifTool, FFmpeg, FFprobe, colemen_copy, and Shredator depending on the feature being used.

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

colemen_py-0.1.0.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colemen_py-0.1.0-py3-none-any.whl (7.4 MB view details)

Uploaded Python 3

File details

Details for the file colemen_py-0.1.0.tar.gz.

File metadata

  • Download URL: colemen_py-0.1.0.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for colemen_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e065ea21baa03b543ee3a7793e00e39d138f7c14983b3cac116a0af9c1315af
MD5 b396c861008cd4257655417bfef38711
BLAKE2b-256 e7bafe483412c2404acdf733ddde1a7d4f5d06d9de9a47d57fd6822f10669916

See more details on using hashes here.

File details

Details for the file colemen_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: colemen_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for colemen_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3345da943965125d4141395364d96b3ee2fe8fdaf21230698541a3849c92e72c
MD5 e56ab37f75d155e97bede02aecf86d8e
BLAKE2b-256 51cd374ff7f00b6c0f9756eec0e39b162b4aa6371531376d0b839d26d1ed4749

See more details on using hashes here.

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