Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such asstrings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
![](/uploads/1/2/6/4/126497762/715536172.jpg)
The goal of the decorator module is to make it easy to definesignature-preserving function decorators and decorator factories.It also includes an implementation of multiple dispatch and other niceties(please check the docs). It is released under a two-clausesBSD license, i.e. basically you can do whatever you want with it but I am notresponsible.
After you have installed all components of this product, you can configure it to perform postal validation, person and firm name cleansing, and/or duplicate searching with settings appropriate for your business.
Installation
If you are lazy, just perform
$ pip install decorator
which will install just the module on your system.
If you prefer to install the full distribution from source, includingthe documentation, clone the GitHub repo or download the tarball, unpack it and run
$ pip install .
in the main directory, possibly as superuser.
Testing
If you have the source code installation you can run the tests with
$ python src/tests/test.py -v
or (if you have setuptools installed)
$ python setup.py test
Notice that you may run into trouble if in your system thereis an older version of the decorator module; in such a case remove theold version. It is safe even to copy the module decorator.py overan existing one, since we kept backward-compatibility for a long time.
Repository
The project is hosted on GitHub. You can look at the source here:
https://github.com/micheles/decorator
![Checkout 4.0.10 Download Checkout 4.0.10 Download](/uploads/1/2/6/4/126497762/543711731.jpg)
Documentation
The documentation has been moved to https://github.com/micheles/decorator/blob/master/docs/documentation.md
From there you can get a PDF version by simply using the printfunctionality of your browser.
Here is the documentation for previous versions of the module:
For the impatient
Here is an example of how to define a family of decorators tracing slowoperations:
Enjoy!
![](/uploads/1/2/6/4/126497762/715536172.jpg)