Skip to main content

Integrate amqp into guillotina

Project description

guillotina_amqp Docs

Integrates aioamqp into guillotina.

Configuration

Example docs:

{
    "amqp": {
           "host": "localhost",
           "port": 5673,
       "login": "guest",
       "password": "guest",
       "vhost": "/",
       "heartbeat": 800
        }
}

Dependencies

Python >= 3.6

Installation

This example will use virtualenv:

virtualenv .
./bin/pip install .[test]

Running

Most simple way to get running:

./bin/guillotina

Queue tasks

code:

from guillotina_amqp import add_task
await add_task(my_func, 'foobar', kw_arg='blah')

With decorators

code:

from guillotina_amqp import task

@task
async def my_func(foo):
    print(foo)

await my_func('bar')

Run the worker

command:

g amqp-worker

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

guillotina_amqp-1.0.7.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guillotina_amqp-1.0.7-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file guillotina_amqp-1.0.7.tar.gz.

File metadata

  • Download URL: guillotina_amqp-1.0.7.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6

File hashes

Hashes for guillotina_amqp-1.0.7.tar.gz
Algorithm Hash digest
SHA256 3282f814697c615ddce169090e7f8f039858e7df2205caeed1a1b6dd2009f230
MD5 59fb9e661008d3b3c88e3209ac570039
BLAKE2b-256 eedbce1d126e1c74d2a638014b0856772abf83f49757d067ae40aa017b1bea4b

See more details on using hashes here.

File details

Details for the file guillotina_amqp-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: guillotina_amqp-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6

File hashes

Hashes for guillotina_amqp-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 82650d4a84e643d1ef38a9ec052d7d09aa13be46b14c6f6180a50c69f55438d2
MD5 7c8a51387e9d67b378b923f9c44515bf
BLAKE2b-256 ef066e47ec38e23ea6c8c967a91709c41ad39fbab15c34873b1217bd932213f5

See more details on using hashes here.

Supported by

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