Skip to main content

Add Pika support to your Flask application.

Project description

PyPi Read the Docs Tests Coverage

Flask-Coney is an extension for Flask that adds support for Pika to your application. It aims to simplify using Pika with Flask by providing useful defaults and extra helpers that make it easier to accomplish common tasks.

Installing

Install and update using pip:

$ pip install -U Flask-Coney

A Simple Example

from flask import Flask
from flask_coney import Coney

app = Flask(__name__)
app.config["CONEY_BROKER_URI"] = "amqp://guest:guest@rabbitmq"
coney = Coney(app)

@coney.queue(queue_name="test")
def test_queue(ch, method, props, body):
    pass


def publish_to_queue():
    coney.publish({"test": 1}, routing_key="test")

Contributing

For guidance on setting up a development environment and how to make a contribution to Flask-Coney, see the contributing guidelines.

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

Flask-Coney-1.1.4.tar.gz (42.8 kB view details)

Uploaded Source

File details

Details for the file Flask-Coney-1.1.4.tar.gz.

File metadata

  • Download URL: Flask-Coney-1.1.4.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

File hashes

Hashes for Flask-Coney-1.1.4.tar.gz
Algorithm Hash digest
SHA256 57b4d50f5a9a2ed39a8aa83bf38777f6d552883a2f3ef689d937f43e9e5dfd04
MD5 596ce2c1e4b55b91adda7b0a5d2b6801
BLAKE2b-256 647e1a8ba0d941443ae71905d17e0e12d964324a15caa89c70aae7ae37507ca3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page