A python package to help craft and manipulate sequences.
Project description
Seira Craft
A Python package to help craft and manipulate sequences.
Installation
pip install seira-craft
or
poetry add seira-craft
Usage
Basic Example
from datetime import datetime
from seira_craft.default import DefaultCrafter
from seira_craft.seira import Sequence
from dataclasses import dataclass
@dataclass
class Segment:
start: datetime
end: datetime
val: str
def copy(self):
return Segment(self.start, self.end, self.val)
crafter = DefaultCrafter[Segment]()
seq = Sequence[Segment](crafter)
seq.insert(Segment(
start=datetime(2023, 1, 1, 1),
end=datetime(2023, 1, 1, 2),
val="First Interval"
))
seq.insert(Segment(
start=datetime(2023, 1, 1, 1, 30),
end=datetime(2023, 1, 1, 2, 30),
val="Second Interval"
))
print(seq.sequence())
License
MIT License. See LICENSE for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
seira_craft-0.0.5.tar.gz
(3.7 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 seira_craft-0.0.5.tar.gz.
File metadata
- Download URL: seira_craft-0.0.5.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-1042-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc0a25b0d62b8174893646a20b17db1aa54bbafaf7268aba99678c3bfff1af82
|
|
| MD5 |
4cea02687224a4d19370def1e3bd8f29
|
|
| BLAKE2b-256 |
c2a95507ec3531cf47d2892083685bce5cdccf8d91a96bcae2974b21b21f124c
|
File details
Details for the file seira_craft-0.0.5-py3-none-any.whl.
File metadata
- Download URL: seira_craft-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.17 Linux/5.15.0-1042-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11317a60e153ef2b1b20b8d1a77668cbd240c4c2bf9634c98630b33e04ff8f95
|
|
| MD5 |
79eb184a14cc055925e827316399ae34
|
|
| BLAKE2b-256 |
f3a251bf3d46cb35b87da96201a1574c8132e29b7ba4559446a81103dbeab44a
|