Skip to content

A cross-process/cross-host Redis-based memoizing decorator in Python for asynchronous (and synchronous) functions within Twisted applications

License

Notifications You must be signed in to change notification settings

escattone/walnut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

walnut

Build Status

Summary

A cross-process/host Redis-based memoizing decorator in Python for asynchronous (and synchronous) functions in Twisted applications.

Installing

pip install walnut

Examples

Here are some simple examples to give you the idea:

    from twisted.internet import reactor
    from twisted.internet.defer import inlineCallbacks
    import walnut

    @inlineCallbacks
    def main():
        reactor.stop()

    reactor.callWhenRunning(main)
    reactor.run()

About

A cross-process/cross-host Redis-based memoizing decorator in Python for asynchronous (and synchronous) functions within Twisted applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages