%global _empty_manifest_terminate_build 0 Name: python-bunnymq Version: 0.0.15 Release: 1 Summary: Simple messaging with RabbitMQ and Python. License: MIT License URL: https://github.com/havefish/bunnymq Source0: https://mirrors.aliyun.com/pypi/web/packages/22/47/c8242e4646965eaad745cb8a975a3ff595165de205f7d06f8e3e5ba9ca11/bunnymq-0.0.15.tar.gz BuildArch: noarch Requires: python3-pika %description # BunnyMQ [![Build Status](https://travis-ci.com/havefish/bunnymq.svg?branch=master)](https://travis-ci.com/havefish/bunnymq) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/bunnymq.svg)](https://pypi.python.org/pypi/bunnymq/) [![PyPI version fury.io](https://badge.fury.io/py/bunnymq.svg)](https://pypi.python.org/pypi/bunnymq/) Simple messaging with RabbitMQ and Python. Head over to the [tutorial](http://havefish.github.io/bunnymq/) to get started. This is a small library inspired by the Python standard library [queue](https://docs.python.org/3/library/queue.html) module and the [hotqueue](https://github.com/richardhenry/hotqueue) library. Primarily geared towards programmer happiness :slightly_smiling_face: Basic Usage: ```python >>> queue = Queue('test') >>> queue.put(1) >>> queue.put('hello', priority=8) >>> queue.put({'a': 1}) >>> queue.get() 'hello' >>> queue.task_done() >>> queue.get() 1 >>> queue.requeue() ``` Iterating over a queue indefinitely, waiting if nothing is available: ```python >>> for item in queue: ... print(item) ... queue.task_done() ``` ## Features * Simple usage * Automatic serialization and deserialization of Python objects * Adding custom serializers or turning serialization off is trivial * Automatic retry while publishing * Automatic handling of connection failures while consuming * Easy parallelization by starting multiple workers to share the load. ## Install ``` pip install bunnymq ``` ## Requirements * Python 3.6+ * [RabbitMQ server](https://www.rabbitmq.com/) * [Pika](https://pika.readthedocs.io/en/stable/) %package -n python3-bunnymq Summary: Simple messaging with RabbitMQ and Python. Provides: python-bunnymq BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-bunnymq # BunnyMQ [![Build Status](https://travis-ci.com/havefish/bunnymq.svg?branch=master)](https://travis-ci.com/havefish/bunnymq) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/bunnymq.svg)](https://pypi.python.org/pypi/bunnymq/) [![PyPI version fury.io](https://badge.fury.io/py/bunnymq.svg)](https://pypi.python.org/pypi/bunnymq/) Simple messaging with RabbitMQ and Python. Head over to the [tutorial](http://havefish.github.io/bunnymq/) to get started. This is a small library inspired by the Python standard library [queue](https://docs.python.org/3/library/queue.html) module and the [hotqueue](https://github.com/richardhenry/hotqueue) library. Primarily geared towards programmer happiness :slightly_smiling_face: Basic Usage: ```python >>> queue = Queue('test') >>> queue.put(1) >>> queue.put('hello', priority=8) >>> queue.put({'a': 1}) >>> queue.get() 'hello' >>> queue.task_done() >>> queue.get() 1 >>> queue.requeue() ``` Iterating over a queue indefinitely, waiting if nothing is available: ```python >>> for item in queue: ... print(item) ... queue.task_done() ``` ## Features * Simple usage * Automatic serialization and deserialization of Python objects * Adding custom serializers or turning serialization off is trivial * Automatic retry while publishing * Automatic handling of connection failures while consuming * Easy parallelization by starting multiple workers to share the load. ## Install ``` pip install bunnymq ``` ## Requirements * Python 3.6+ * [RabbitMQ server](https://www.rabbitmq.com/) * [Pika](https://pika.readthedocs.io/en/stable/) %package help Summary: Development documents and examples for bunnymq Provides: python3-bunnymq-doc %description help # BunnyMQ [![Build Status](https://travis-ci.com/havefish/bunnymq.svg?branch=master)](https://travis-ci.com/havefish/bunnymq) [![PyPI pyversions](https://img.shields.io/pypi/pyversions/bunnymq.svg)](https://pypi.python.org/pypi/bunnymq/) [![PyPI version fury.io](https://badge.fury.io/py/bunnymq.svg)](https://pypi.python.org/pypi/bunnymq/) Simple messaging with RabbitMQ and Python. Head over to the [tutorial](http://havefish.github.io/bunnymq/) to get started. This is a small library inspired by the Python standard library [queue](https://docs.python.org/3/library/queue.html) module and the [hotqueue](https://github.com/richardhenry/hotqueue) library. Primarily geared towards programmer happiness :slightly_smiling_face: Basic Usage: ```python >>> queue = Queue('test') >>> queue.put(1) >>> queue.put('hello', priority=8) >>> queue.put({'a': 1}) >>> queue.get() 'hello' >>> queue.task_done() >>> queue.get() 1 >>> queue.requeue() ``` Iterating over a queue indefinitely, waiting if nothing is available: ```python >>> for item in queue: ... print(item) ... queue.task_done() ``` ## Features * Simple usage * Automatic serialization and deserialization of Python objects * Adding custom serializers or turning serialization off is trivial * Automatic retry while publishing * Automatic handling of connection failures while consuming * Easy parallelization by starting multiple workers to share the load. ## Install ``` pip install bunnymq ``` ## Requirements * Python 3.6+ * [RabbitMQ server](https://www.rabbitmq.com/) * [Pika](https://pika.readthedocs.io/en/stable/) %prep %autosetup -n bunnymq-0.0.15 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-bunnymq -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 0.0.15-1 - Package Spec generated