Keyword Arguments
However, as you have more and more keyword options, setting defaults in this way gets rather tedious. Fortunately, Ruby's Hash#merge comes to our rescue (almost) - it allows you to merge the contents of one hash with another. The only problem - any duplicate keys in the hash you are merging will...
Platforms: Windows, *nix, Ruby,
License: Freeware | Download (75): Using Ruby hashes as keyword arguments Download |
ExceptionContainer script is an Exception base-class that supports keyword arguments and printing.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): ExceptionContainer Download |
This one-line decorator call adds caching to functions with hashable arguments and no keyword arguments.When the maximum size is reached, the least recently used entry is discarded -- appropriate for long-running processes which cannot allow caches to grow without bound. Includes built-in...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): LRU cache decorator Download |
greatape is a minimalist client library for version 1.2 of the MailChimp API, written in Python. It was very much inspired by Mike Verdone's `Twitter client library`_ in that it does a bit of mucky, dynamic business with __getattr__ to avoid having to actually write code for all the methods that...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (42): greatape Download |
This script defines a decorator that allows for an abbreviated slice syntax in function arguments: {start:end}. Step is notsupported. Valid quickslices are dictionaries with a single integer key which has an integer value. Arguments can be strings or integers, and indicate the positional or...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Quickslice decorator Download |
This library makes you to use command line tool in Python by OO way. The concept is to transform 1) command as a instance, 2) options of command as arguments and keyword arguments of function or instance method when method be used as a sub command of a command.
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (36): ucltip Download |
ZRPC is a library for building and using simple ZeroMQ-based RPC servers. It uses an ad hoc protocol based on [JSON-RPC 1.0][], with BSON as a transport encoding and support for mixed positional and keyword arguments.
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (33): zrpc Download |
A decorator to interact with argparse based on function signature. This is a decorator library that helps one to write small scripts in Python. There are three main features that it provides: * Automatically running a function when a script is called directly, but not when it is included as...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (41): entrypoint Download |
A dingus is sort of like a mock object. The main difference is that you don't set up expectations ahead of time. You just run your code, using a dingus in place of another object or class, and it will record what happens to it. Then, once your code has been exercised, you can make assertions...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (46): dingus Download |
Dylan is an advanced, object-oriented, dynamic language which supports the rapid development of programs. When needed, the programmer can later optimize [his or her] programs for more efficient execution by supplying type information to the compiler. Nearly all entities in Dylan (including...
Platforms: *nix
License: Freeware | Size: 16.9 MB | Download (97): Dylan 1.0 Download |
Steel Bank Common Lisp is a development environment for Common Lisp, with excellent support for the ANSI standard: garbage collection, lexical closures, powerful macros, strong dynamic typing, incremental compilation, and the famous Common Lisp Object System (multimethods and all). Steel Bank...
Platforms: *nix
License: Freeware | Size: 2.7 MB | Download (117): Steel Bank Common Lisp Download |
Tool to use from Python interactive interpreter or script. Use it to make JSON indexes of all files in a directory, or files of a certain type. Could be used to observe activity in a server directory, to generate JSON to send to clients searching remotely, or to keep an index of files in a...
Platforms: Mac, Linux
License: Freeware | Size: 42.56 KB | Download (48): ndexr Download |
Python package for interacting with a MediaWiki wiki wikitools Python module for interacting with a MediaWiki wiki using the MediaWiki API. Designed for MediaWiki version 1.14 and higher, should work on 1.13, older versions may have bugs. The edit-API must be enabled on the site to use editing...
Platforms: Windows, Mac, *nix, PHP, BSD Solaris
License: Freeware | Download (55): Wikitools Download |
This script was written to emulate a flexible version of delegates from the C# language. Default arguments can be set and changed, and default arguments can be totally be replaced by new arguments on-the-fly. The delegate class was primarily written for working with Tkinter. The Delegate class...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): z_delegate Download |
Sometimes inside a decorator that creates a function with a generic (*args, **kwargs) signature, you want to access a value passed for a particular parameter name to a wrapped function, but don't know whether that value will be passed as a positional or keyword argument, or whether the wrapped...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Finding the value passed to a function by name Download |
This script initializes an integer set. The constructor accepts an unlimited number of arguments that may either be tuples in the form of (start,stop) where either start or stop may be a number or None to represent maximum minimum in that direction. The range specified by (start,stop) is always...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (50): Integer set type Download |
celery is a distributed task queue framework for Django. Installation You can install celery either via the Python Package Index (PyPI) or from source. To install using pip,: $ pip install celery To install using easy_install,: $ easy_install celery If you have downloaded a source tarball...
Platforms: *nix
License: Freeware | Size: 870.4 KB | Download (37): celery Download |
webapp2 is an attempt to improve Google App Engine's webapp framework keeping maximum compatibility and same performance. Features (nutshell mode) Extreme compatibility: RequestHandler, Request, Response and URL routing are fully compatible with webapp. You can use functions if you prefer,...
Platforms: *nix
License: Freeware | Size: 194.56 KB | Download (44): webapp2 Download |
celery is a distributed task queue framework for Django. Installation You can install celery either via the Python Package Index (PyPI) or from source. To install using pip,: $ pip install celery To install using easy_install,: $ easy_install celery If you have downloaded a source tarball...
Platforms: *nix
License: Freeware | Size: 716.8 KB | Download (40): celery for Linux Download |
Schedaddle is a Python module for getting dates and times on scheduled intervals. For more information, see http://www.davisd.com/projects/python-schedaddle Typical Usage is as follows: #!/usr/bin/env python import schedaddle schedaddle.next((2010, 1, 31), 'monthly') API The entire...
Platforms: *nix
License: Freeware | Size: 20.48 KB | Download (40): Schedaddle Download |