Skip to main content

Cronut

cronut is a barebones event processing library using Kafka.

Quickstart

from collections import deque
import json

from cronut import App

d = deque(maxlen=30)

app = App('myapp', broker='kafka://localhost:9096')

@app.process('topic1')
def stateless(message):
    event = json.loads(message.value())
    print(event)

@app.process('topic2', state=d)
def stateful(message, state):
    event = json.loads(message.value())
    state.appendleft(event)

@app.timer(interval=0.1, state=d)
def retrieve(state):
    event = state.pop()
    print(event)

@app.timer(interval=0.1)
def greet():
    print('howdy')

app.start()

Metadata

Release files for cronut 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cronut 0.1.0
File Size Uploaded Provenance Actions
cronut-0.1.0.tar.gz 4.8 kB Without provenance Details for cronut-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cronut 0.1.0
File Interpreter ABI Platform Actions
cronut-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for cronut-0.1.0-py2.py3-none-any.whl

Total release size: 10.1 kB

Release files / cronut-0.1.0.tar.gz

Download URL cronut-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4693ee5464f037445e64fe0cacb369bb2e9e698fe9256c499a56738bbef32a85
BLAKE2b-256 checksum
How to use checksums
1bfe7d79bd531532954db91d4a37a92f9fddc11420a787289b0e5ceb84784bde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

Release files / cronut-0.1.0-py2.py3-none-any.whl

Download URL cronut-0.1.0-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
59baaaf60ce1d36e4b04642f565aba33870ceb2d62240ffb0a2a89e64e4a8cfb
BLAKE2b-256 checksum
How to use checksums
db106195ac5fa9cc69425c692d0e3e12ef79d01a39897eeb3838e5a8be80579c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

Security for cronut 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page