Skip to content

poqweur/ampq_cl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

该项目用于rabbitmq队列

Python version 3

两种consumer只是使用的线程池不同

def worker(data):
                ...
                return SUCCESS


            consumer = Consumer("amqp://account:password@ip:port/vhost", "queue", worker)
            consumer.run()
def worker(data):
                ...
                return SUCCESS


            consumer = Consumer2("amqp://account:password@ip:port/vhost", "queue", worker)
            consumer.run()

常用命令

  • python3 setup.py sdist
  • python3 setup.py sdist upload
  • python3 setup.py bdist_wheel --universal
  • python3 setup.py bdist_wheel upload

Releases

No releases published

Packages

No packages published

Languages