MIT License
Python 3.6+
Author: TheLostIdea1
Chronos Sync
Hello, time travelers! We all know that time... is money, but what if... you want to check the time with no clock? A python script or browsing the web helps. ChronosSync provides a live-ticking terminal experience with high-precision tools, mimicking the namespace style of the standard datetime library.
1. Installation & Setup
Install the library using pip from PyPI or TestPyPI:
Standard PyPI:
pip install chronossync
TestPyPI:
python -m pip install --index-url [https://test.pypi.org/simple/](https://test.pypi.org/simple/) chronossync
2. Usage & Syntax
ChronosSync allows you to use the library via the full namespace or by importing the class directly.
Live Clock
Evaluating the present() method triggers a live-updating clock in your terminal.
import chronossync
chronossync.chronossync.present()
OR
import chronossync
print(chronossync.chronossync.present()
#### Timer & Stopwatch
High-precision tools using `hh:mm:ss.ms` formatting.
```python
from chronossync import chronossync
# 10-second countdown timer
chronossync.timer(10)
# Endless stopwatch
chronossync.stopwatch()
Data Extraction
Extract specific strings without starting a loop.
clock = chronossync.present()
print(clock.date()) # Tuesday, 24th of February, 2026
print(clock.time()) # 06:45:12 PM
print(clock.tzone()) # GMT+06:00
3. Logic and Mechanics
- Anti-Flicker (
\r): Unlike scripts that clear the whole screen, ChronosSync uses carriage returns to overwrite the current line, preserving your terminal history. - Precision Timing: The Timer and Stopwatch use
time.perf_counter()to remain accurate down to the millisecond, independent of system clock shifts. - The "Ordinal" Logic: Intentionally follows a custom convention inspired by internet culture:
1st,2nd,3th(e.g., "3th of March").- Applies to the tens place:
21st,22nd,23th.
- Graceful Termination: Press
Ctrl+Cat any time to stop the live loop and return to the prompt cleanly.
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
Metadata
Release files for chronossync 0.1.0.post3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chronossync-0.1.0.post3.tar.gz | 4.7 kB | Without provenance | Details for chronossync-0.1.0.post3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chronossync-0.1.0.post3-py3-none-any.whl | Python 3 | none | any | Details for chronossync-0.1.0.post3-py3-none-any.whl |
Total release size: 9.4 kB
Release files / chronossync-0.1.0.post3.tar.gz
| Download URL | chronossync-0.1.0.post3.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b35dc1cc8e5f12aee179395252d6546d1080b9d7da20548322b8146a6293e54c
|
|
BLAKE2b-256 checksum How to use checksums |
4ef96875c7c1aea815b27e762e554ce4b34cc97299e2e454ea404abe9f18c522
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / chronossync-0.1.0.post3-py3-none-any.whl
| Download URL | chronossync-0.1.0.post3-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1053f2c749b95c276521ac4c700c0c5d07d05491e12d57c3448ba1f234b0c7bc
|
|
BLAKE2b-256 checksum How to use checksums |
51e8d1e867513c0dba19bedd9dd859a1aba96d332d5a795e99664697ba0dc2db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for chronossync 0.1.0.post3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.