py-humantime

Python Package (pip)

Convert between seconds and human-readable time strings via a simple CLI or Python API.

PythonCLITime ConversionParsingValidationZero Dependencies+1

Technologies

Python
CLI
Time Conversion
Parsing
Validation
Zero Dependencies
+1
py-humantime

About this Project

py-humantime is a lightweight, dependency-free utility for turning seconds into friendly time (e.g., 4523 → 1h 15m 23s) and parsing human-readable input back to seconds (e.g., 1h 15m → 4500). It works both as a command-line tool and as an importable module with clear errors and input validation. The core is designed for extensibility (e.g., adding milliseconds or days) and is organized with clean, testable OOP logic. Ideal for scripts, CLIs, schedulers, logs, and any app that needs precise, readable time formatting.

Repositories

Related Projects

quickstore
Python Package (pip)

quickstore

Quickstore is a developer-friendly, file-backed key-value database with no external dependencies. It supports TTL-based...

PythonPipFileDB+6
xerror
Python Package (pip)

xerror

xerror is a developer-focused CLI and Python library that analyzes error logs across multiple languages and returns clea...

Python 3.10+CLIError Analysis+6
py-trashguard
Python Package (pip)

py-trashguard

py-trashguard prevents accidental data loss by moving files to a .trash/ directory instead of permanently deleting them....

PythonCLIFilesystem Utilities+3