Function Decorator
protect_utf8 is a function decorator that can prevent naive functions from breaking UTF-8. If the wrapped function takes a string, and that string happens to be valid UTF-8, converts it to a unicode object and call the wrapped function. If a conversion was done and if a unicode object was...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): ProtectUTF8 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 decorator can be used to cast argument types automatically, using a pre-specified list of types, when a function is called.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Automatic argument type conversion Download |
This function decorates a function with tail call optimization. It does this by throwing an exception if it is it's own grandparent, and catching such exceptions to fake the tail call optimization. This function fails if the decorated function recurses in a non-tail contexif the de />
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (56): Tail Call Optimization Decorator Download |
Python symbols is a toy module that shows a way to define symbols inside functions, using a decorator.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Python symbols Download |
This is a Python module :mod:`nmevent`, simple C#-like implementation of the Observer pattern (http://en.wikipedia.org/wiki/Observer_pattern). It's main purpose and goal is to allow developers to use events with C#-like syntax in their Python classes. ============= Usage example =============...
Platforms: *nix
License: Freeware | Size: 81.92 KB | Download (38): nmevent Download |
A least recently used (LRU) cache for Python. Pylru implements a true LRU cache along with several support classes. The cache is efficient and written in pure Python. It works with Python 2.6+ including the new 3.x series. Basic operations (lookup, insert, delete) all run in a constant amount of...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (39): PyLRU Download |
This script presents a way to introduce proper attribute access protection levels using a generic proxy object. By default all attributes are "protected" in the C sense and can be declared as public using either a function decorator or a class attribute.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (49): Public and protected attribute access Download |
This is a decorator that lets you annotate function definitions with argument type requirements. These type requirements are automatically checked by the system at function invocation time. The decorator frees you from writing type-checking boilerplate code by hand.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Type-checking decorator 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 |
533soft.com Photo Decorator can resize, crop, warp or transform your photos easily. It also allows you to add frames, texts, balloons and other items quickly. With the function of multi-layer support, it is very easy to attach multiple photos to create one interesting and wonderful photo. Photo...
Platforms: Windows
License: Demo | Cost: $0.00 USD | Size: 1.82 MB | Download (1449): Photo Decorator Download |
Decorator for main method script shows how to do the same thing with a decorator that makes the code much cleaner.This allows option and argument parsing to be hidden from the main code in your program. The user simply passes an optional getopt string and the number of required arguments. Then...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (55): Decorator for main method Download |
This script is a caching decorator that collects garbage in a separate thread (for performance).It allows each cached function to (optionally) set a custom maximum age for entries, and allows individual cache entries to be selectiries, andlidated.This kind of caching decorator is often useful...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Caching decorator with timeout invalidation Download |
Defining a property involves the definition of nested functions for one or more of fget,fset,fdel. The decorator probes the decorated function, captures its locals() just before it returns and looks for the names "fget", "fset" and "fdel". The found values, along with the function's docstring are...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Property decorator for python 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 |
Easy option parsing introspected from function signature opterator is a decorator for a script's main entry point that uses a function function signature and docstring to pseudo-automatically create an option parser. When invoked, the option parser automatically maps command-line arguments to...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (35): opterator Download |
Function Grapher is graph maker to create 2D, 2.5D, 3D and 4D function graphs, animations and table graphs. 2D functions can be in the form of explicit, parametric, piecewise, implicit and inequality. 3D functions can be in the form of explicit, parametric and implicit.
Platforms: Windows, Windows 7, Windows Server
License: Demo | Cost: $45.00 USD | Size: 3.31 MB | Download (397): Function Grapher Download |
CoreLinux++ Function Load Library (libclfll++) takes advantage of the abstract Library Load framework in the CoreLinux libclfw++ library by providing management of loading Linux shared libraries. Application developers define function objects as wrappers and can then dynamically load the...
Platforms: *nix
License: Freeware | Size: 93.18 KB | Download (94): CoreLinux++ Function Load Library Download |
Getopt::Function is a Perl module to provide mixed options with help information. SYNOPSIS use Getopt::Function qw(maketrue makevalue); $::opthandler = new Getopt::Function [ ], { => [ , , ] } $result = GetOptions (...option-descriptions...); $::opthandler->std_opts;...
Platforms: *nix
License: Freeware | Size: 13.31 KB | Download (92): Getopt::Function Download |
Looking for a tool to enable PDF print function ? Try PDF Unlocker, an easy to use program that provides easy steps to its users to let them enable PDF print function without any difficulty. The software is a result oriented utility that helps users solve their all queries like how to enable PDF...
Platforms: Windows
License: Shareware | Cost: $9.00 USD | Size: 1.23 MB | Download (67): Enable PDF Print Function Download |