storey-1.9.1


توضیحات

Async flows
ویژگی مقدار
سیستم عامل POSIX :: Linux
نام فایل storey-1.9.1
نام storey
نسخه کتابخانه 1.9.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Iguazio
ایمیل نویسنده yaronh@iguazio.com
آدرس صفحه اصلی https://github.com/mlrun/storey
آدرس اینترنتی https://pypi.org/project/storey/
مجوز Apache
# Storey Storey is an asynchronous streaming library for real-time event processing and feature extraction. It is part of the [MLRun](https://github.com/mlrun/mlrun) ecosystem. ## Features - Async event processing with backpressure - Rich set of built-in transformations: Map, Filter, FlatMap, Batch, Choice, JoinWithTable, and more - Time-window aggregations with pluggable storage (V3IO, Redis, SQL) - Sources and targets for files (CSV, Parquet), streams (Kafka, V3IO), and databases (Redis, TimescaleDB) - Streaming (generator) support in Map steps ## Installation ```bash pip install storey ``` Optional extras: ```bash pip install storey[kafka] # Kafka support pip install storey[redis] # Redis support pip install storey[psycopg] # TimescaleDB support ``` ## Quick Example ```python from storey import build_flow, SyncEmitSource, Map, Filter, ParquetTarget controller = build_flow([ SyncEmitSource(), Filter(lambda event: event["amount"] > 0), Map(lambda event: {**event, "amount_cents": int(event["amount"] * 100)}), ParquetTarget("output.parquet", columns=["user", "amount", "amount_cents"]), ]).run() controller.emit({"user": "alice", "amount": 9.99}) controller.emit({"user": "bob", "amount": -1.00}) controller.emit({"user": "carol", "amount": 24.50}) controller.terminate() controller.await_termination() # output.parquet now contains the two events with positive amounts, # each enriched with amount_cents. ``` ## Documentation See the [MLRun documentation](https://docs.mlrun.org/en/stable/) and the [storey transformations API reference](https://docs.mlrun.org/en/latest/api/storey.transormations/index.html). ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, testing, and coding conventions. ## License Apache License 2.0


نیازمندی

مقدار نام
- aiohttp~=3.8
- v3io<0.8,>=0.6.10
- pandas!=1.5.*,<2.2,>=1
- numpy<1.27,>=1.16.5
- pyarrow<24,>=1
- v3io-frames!=0.11.*,!=0.12.*,>=0.10.14
- fsspec>=0.6.2
- v3iofs~=0.1.17
- xxhash>=1
- nuclio-sdk>=0.5.3
xtr kafka-python~=2.0;
xtr redis~=4.3;
xtr sqlalchemy~=1.3;
xtr psycopg[binary,pool]~=3.2;
xtr opentelemetry-sdk<2.0.0,>=1.25.0;
xtr opentelemetry-exporter-otlp-proto-grpc<2.0.0,>=1.25.0;


زبان مورد نیاز

مقدار نام
>=3.11 Python


نحوه نصب


نصب پکیج whl storey-1.9.1:

    pip install storey-1.9.1.whl


نصب پکیج tar.gz storey-1.9.1:

    pip install storey-1.9.1.tar.gz