- 授权协议: LGPL-3.0
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://dramatiq.io/
- 软件文档: https://dramatiq.io/
- 官方下载: https://github.com/Bogdanp/dramatiq
软件介绍
Dramatiq 是一个 Python 3 (3.5或更高版本)分布式任务处理库,特点是简单、可靠和高性能。
Demo
import dramatiq
import requests
@dramatiq.actor
def count_words(url):
response = requests.get(url)
count = len(response.text.split(" "))
print(f"There are {count} words at {url!r}.")
# Synchronously count the words on example.com in the current process
count_words("http://example.com")
# or send the actor a message so that it may perform the count
# later, in a separate process.
count_words.send("http://example.com")使用
与 RabbitMQ 一起使用:
$ pip install -U dramatiq[rabbitmq, watch]
与 Redis 一起使用:
$ pip install -U dramatiq[redis, watch]
具体使用方法阅读 Motivation 或 User Guide。
数据结构与算法分析
Frank.M.Carrano / 金名 / 清华大学出版社 / 2007-11 / 98.00元
“数据结构”是计算机专业的基础与核心课程之一,Java是现今一种热门的语言。本书在编写过程中特别考虑到了面向对象程序设计(OOP)的思想与Java语言的特性。它不是从基于另一种程序设计语言的数据结构教材简单地“改编”而来的,因此在数据结构的实现上更加“地道”地运用了Java语言,并且自始至终强调以面向对象的方式来思考、分析和解决问题。 本书是为数据结构入门课程(通常课号是CS-2)而编写的教......一起来看看 《数据结构与算法分析》 这本书的介绍吧!
