buffer management tool for Python
Project description
CHIPI - Comprehensive History and Interactive Python Interface
CHIPI is a flexible and easy-to-use Python package for managing and manipulating data in buffers. It provides a comprehensive history tracking system and an interactive Python interface for handling data operations in buffers.
Features
- Create and manage multiple buffers
- Flexible buffer size with optional maximum length
- Built-in methods for data manipulation and analysis
- Extendable with custom methods
- Import and export data from JSON and CSV files
Installation
To install CHIPI, simply run:
pip install chipi
Quick Start
from chipi import Buffer, BufferManager
# Create a buffer and add some data
buf = Buffer("my_data")
buf.add(1)
buf.add(2)
buf.add(3)
# Retrieve data
print(buf.current_value) # Output: 3
print(buf.previous_value) # Output: 2
print(buf.data) # Output: [1, 2, 3]
# Create a BufferManager for managing multiple buffers
labels = ["data1", "data2", "data3"]
buff_mgr = BufferManager(labels)
# Add data to the managed buffers
buff_mgr.d["data1"].add(10)
buff_mgr.d["data2"].add(20)
buff_mgr.d["data3"].add(30)
# Get data from a managed buffer
print(buff_mgr.get_data("data1")) # Output: [10]
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
chipi-0.0.1.tar.gz
(6.4 kB
view details)
File details
Details for the file chipi-0.0.1.tar.gz.
File metadata
- Download URL: chipi-0.0.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
038f60babf01efba348bdd5cf4ce96220fb91c036c109eae8674c0ce23bbebba
|
|
| MD5 |
8f4d79949f44be3ecc176da7e1d44425
|
|
| BLAKE2b-256 |
e04850e4898fe544d8247345631ce1a591513015dc85dac6c2fecc3e510d2794
|