BurrowTS
The BurrowTS is a Python library that provides a simple and efficient time series database for storing and retrieving time-stamped values.
Features
- Insert values into the time series database with an associated timestamp.
- Retrieve time series data for a given series name.
- Retrieve time series data for a given series name by timestamp range.
- Thread-safe operations using a lock.
- Data persistence using pickle.
Installation
You can install the BurrowTS using pip:
pip install burrowts
Usage
Here's an example of how to use the BurrowTS:
from burrowts import BurrowTS
db = BurrowTS()
# Insert values
db.insert("cpu", 12.3)
db.insert("cpu", 14.9)
db.insert("mem", 20.4)
# Retrieve time series data
cpu_data = db.get_series("cpu")
print("CPU Data:", cpu_data)
Data Persistence
The BurrowTS uses pickle for data persistence. The database data is stored in a pickle file specified by the file_path parameter. The data is automatically saved to the file after each insertion operation.
Thread Safety
The BurrowTS ensures thread safety by using a lock. This allows for concurrent access from multiple threads while maintaining data integrity.
Contributing
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
License
This project is licensed under the MIT License.
Release files for burrowts 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| burrowts-0.0.1.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| burrowts-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / burrowts-0.0.1.tar.gz
| Download URL | burrowts-0.0.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bc9857daf883e4950f757e87eb08dcae74448b94901763b00a3f61a7422b32a
|
|
BLAKE2b-256 checksum How to use checksums |
9480d962450a038da6feb7882944e7f897e2a4f450b0268e91d0452e62ea7003
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0rc1
|
Release files / burrowts-0.0.1-py3-none-any.whl
| Download URL | burrowts-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4889c9f55af7c3c3c19d4676efbce2bcd54b0775a99e742782527fc5d0729349
|
|
BLAKE2b-256 checksum How to use checksums |
d12c93f372fc0a931667017873cd79af4cf562c89c6ee81911feb059df1291e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0rc1
|