Flask-based event management orchestration framework with scaffold generator
Project description
pgframx
Flask-based event management orchestration framework.
Orchestrate events, not chaos.
Install
pip install pgframx
Quickstart
from pgframx import Orchestrator, create_app
orc = Orchestrator()
@orc.on("order.placed")
def handle_order(event):
print(f"Order received: {event.data}")
app = create_app(orc)
if __name__ == "__main__":
app.run(port=5050)
CLI
pgframx init # Create a new project scaffold in current directory
pgframx run # Start the Flask orchestrator server
pgframx emit <event> --data '{}' # Emit event from CLI to running server
pgframx list events # List all registered events
pgframx list listeners # List all registered listeners
pgframx schedule list # List scheduled cron/interval jobs
pgframx schedule add <event> --interval 10 # Schedule recurring events
pgframx schedule remove <job_id> # Remove scheduled jobs
Features
- Decorators: Event registration, before hooks, and after hooks.
- Wildcard matching: Match events using wildcards (
user.*). - Scheduling: Chronological/interval-based triggers via APScheduler.
- REST API: Mountable blueprints exposing route endpoints for events, listeners, and health checks.
- Dynamic Webhooks: Register webhooks dynamically via the REST API or CLI.
- Full CLI: Manage your event broker process from the terminal.
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
pgframx-0.2.0.tar.gz
(14.8 MB
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
pgframx-0.2.0-py3-none-any.whl
(61.3 kB
view details)
File details
Details for the file pgframx-0.2.0.tar.gz.
File metadata
- Download URL: pgframx-0.2.0.tar.gz
- Upload date:
- Size: 14.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf91c672a88e987381f4f91079d207327354555a1a25933f7ed6eba7dc25fc35
|
|
| MD5 |
5e6069a1e47f361bdc7b6f3d78c3e9b2
|
|
| BLAKE2b-256 |
07f67164d509da152a1bd85614d6292173204c18aeaabf608ebdca43e61543a9
|
File details
Details for the file pgframx-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pgframx-0.2.0-py3-none-any.whl
- Upload date:
- Size: 61.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b12dc91b139dfd92b392eb4d6d52834655a25ab89fd5cbe92a4b4f162b2f6615
|
|
| MD5 |
1dfbb923bf28b91506029b1962dcdec0
|
|
| BLAKE2b-256 |
a5927ba2c7ae2ebc9b4fc15004088050653f1254607de2ce021a615e0cf540d1
|