A lightweight live ticking clock with custom ordinals.
Project description
MIT License
Python 3.6+
Author: TheLostIdea1
Chronos Sync Lite
Hello, time travelers! Chronos Sync Lite provides a streamlined, live-ticking terminal experience. This version focuses on the core "present" functionality with a unique triple-naming system.
1. Installation & Setup
Install the library using pip from your local build:
pip install .
or
pip install chronossync-lite
2. Usage & Syntax
Chronos Sync Lite can be used in the REPL or within a Python script.
Python Script Usage
When using a script, you must wrap the call in print() to trigger the internal display loop:
import chronossync_lite
# Triple naming: Package.Module/Class.Method
print(chronossync_lite.chronossync_lite.present())
REPL Usage
In a REPL environment, simply evaluating the method will trigger the clock:
>>> import chronossync_lite
>>> chronossync_lite.chronossync_lite.present()
3. Logic and Mechanics
- Triple Naming: Access the logic via
chronossync_lite.chronossync_lite.present(). - Anti-Flicker (\r): Uses carriage returns to overwrite the current line, preserving terminal history.
- The "Ordinal" Logic: Follows a custom convention:
- 1st, 2nd, 3th (e.g., "3th of March").
- Applies to the tens place: 21st, 22nd, 23th.
- Graceful Termination: Press Ctrl+C at any time to stop the live loop and return to the prompt.
4. Development & Testing
This project uses the modern src layout. To verify the logic, run the test suite from the root directory:
python -m unittest discover tests
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 chronossync_lite-0.1.0.tar.gz.
File metadata
- Download URL: chronossync_lite-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ee2042e29465a60c8bf3165a4e8355a5b7fa3a7f7931ca3ae98ddf06b66f945
|
|
| MD5 |
e31ece5fed591e2ec35aca783caef54c
|
|
| BLAKE2b-256 |
f11b2cf3ce1959457c496d6b50bdf674617efb8191381beca21f4426b730cf89
|
File details
Details for the file chronossync_lite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: chronossync_lite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d66dea23e79735f235056824bf4fd894e2a201d7e3500911b96da9f7caa3ed8
|
|
| MD5 |
bd5fd6ccca3c8503997755d5b740dd63
|
|
| BLAKE2b-256 |
5215b6ffdb3e71ffc838d9624f06bb6e7817ec92a2ed693d8bc52128ae57dfaa
|