Portfolio
Avishek Devnath
Avishek
Devnath
Software Engineer  ·  Backend & System Design
0%
“Building systems that last.”
Python Package (pip)

py-humantime

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

PythonCLITime ConversionParsingValidationZero Dependencies+1
py-humantime
Live
📋
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.

⚙️
Technologies
Python
CLI
Time Conversion
Parsing
Validation
Zero Dependencies
OOP
🔗
Repositories
py-humantime
Github
Public