A simple library for easily working with time series data
Project description
chronolight
A simple library for working with timelines and delayed calls.
Installation
pip install chronolight
Quick Start
import chronolight
# Timeline
tl = chronolight.Timeline()
tl.wait(1)
tl.call(lambda: print("1 second passed"))
tl.wait(0.5)
tl.call(lambda: print("Another 0.5 seconds passed"))
tl.run()
# Delayed call
chronolight.delay(2, lambda: print("After 2 seconds"))
Methods
Timeline
| Method | Description |
|---|---|
.wait(seconds) |
Adds a delay |
.call(func) |
Adds a function call |
.run(threaded=False) |
Runs the timeline |
delay(seconds, function)
Executes a function after N seconds (in a separate thread).
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
chronolight-1.1.0.tar.gz
(2.4 kB
view details)
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 chronolight-1.1.0.tar.gz.
File metadata
- Download URL: chronolight-1.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3136afa9330e100ca32524c3548749c77b4ad4707097e08ef71964679d38c727
|
|
| MD5 |
eb0c9b8bb6ea1cae44c16f551ee1ea97
|
|
| BLAKE2b-256 |
4a5936b9a947bac43e75564c0eadd74faccb92adc0f17ba1fa393d0893543961
|
File details
Details for the file chronolight-1.1.0-py3-none-any.whl.
File metadata
- Download URL: chronolight-1.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee8fd352400b98a098beb9e6a75f5636c495eb9b042157cea7d979ba29405c8b
|
|
| MD5 |
cbb7d15d3eab5bfe57dbd8a68c21e91e
|
|
| BLAKE2b-256 |
399239920eff3d615bf4e4f65adc2bc55b6bd589dcd99447705c6c677e1bb67b
|