Lightweight and intuitive Python library designed to help developers,track, measure, and visualize time with ease.
Project description
Timetrix
What is timetrix?
Timetrix is a lightweight and intuitive Python library designed to help developers track, measure, and visualize time with ease. Whether you're profiling your code, creating time-based visualizations, or tracking the duration of events, timetrix provides the tools you need with minimal setup.
Installation
pip install timetrix
Contributing
We welcome contributions! If you'd like to add new features, fix bugs, or improve documentation, please:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request with a detailed description of your changes.
Acknowledgments
Thank you to the open-source community for inspiration and support!
TimeMashine
The TimeMachine class provides methods that help in displaying time or time periods in a static format when needed.
-
day(): This method, when called, returns the current day of the month as an integer.
-
month(): This method, when called, returns the current month as an integer.
-
year(): This method, when called, returns the current year as an integer.
-
month_name(): This method, when called, returns the current name of month as string.
-
hour(): This method, when called, returns the current hour as an integer.
-
minutes(): This method, when called, returns the current minutes as an integer.
-
seconds(): This method, when called, returns the current seconds as an integer.
-
clock(): This method retrieves the current time from the stored date and formats it as a string representing the time in hours, minutes, and seconds (HH:MM:SS). The formatted time is then printed on the same line, updating the displayed time without moving to a new line.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timetrix-0.0.9.tar.gz.
File metadata
- Download URL: timetrix-0.0.9.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab07b1969fc2043cd404a2068d7a7c9c4d4e02798b4c069b521ab99d923e3ae5
|
|
| MD5 |
eac4b347482b8fdbaa8dd50d773f561e
|
|
| BLAKE2b-256 |
b54e426d1641db10c033707ce0101117809c24e3945d66979f09912a34693a4a
|
File details
Details for the file timetrix-0.0.9-py3-none-any.whl.
File metadata
- Download URL: timetrix-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0634b47c9724a67de8f0837be3775398b3991a565c9b3329988acf79e98280bb
|
|
| MD5 |
8a0bde54d7f5b878d0345fec580d3b8d
|
|
| BLAKE2b-256 |
7a50c6bb0669599ac028df4dcdaed371f1cbe7fd8737cd0716bfa0fe557af757
|