Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

The qing of pipes

Project description

Framework for building Data pipelines that scales.

pip install qing-framework

Build your first worker
``` python
from qing_framework import QingWorker
from qing_framework import QingMessage as QM

class Normalizer(QingWorker):
def process(self, qs):
#do your magic
formatted_messages = []
# messages from queue named 'dummy' are loaded for you automagically inside the qs variable.
while message in qs['dummy']:
# Each QingMessage has a payload and now you can create your own after modifying!
formatted_message = QM( payload="formatted: " + message.payload )
#returned messages are automatically writted to output queue!
return formatted_messages

``` python
# This file describes worker's responsibility and dependencies.
'author': 'AlSayed Gamal',
'version': '0.0.1',
'description': 'normalizes messages into proper format!',
'in-queues': ['dummy'],
'out-queues': ['normalized'],
'activity-rate': '5000',
'class': 'Normalizer'
Run worker using CLI
You can start qing as a server and use qing's CLI to run and scale the worker
#queen cli and UI for qing framework.
qing --help # just in case you needed help.
qingd # qing deamon, you will need sudo permission
qing run Normalizer # run a specific worker
qing kill Normalizer --job-id=123 #kill specific worker job

Monitor the data-pipeline using Web-UI
qing --webserver --port=8910 # you can view data pipelines, queues, jobs and workers.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qing-framework, version 0.0.1rc0
Filename, size File type Python version Upload date Hashes
Filename, size qing_framework-0.0.1rc0-py2-none-any.whl (4.9 kB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page