Skip to main content

LivingLogic base package: ansistyle, color, make, sisyphus, xpit, url, xml_codec

Project description

ll-core is a collection of the following modules:

  • ansistyle can be used for colored terminal output (via ANSI escape sequences).

  • color provides classes and functions for handling RGB color values. This includes the ability to convert between different color models (RGB, HSV, HLS) as well as to and from CSS format, and several functions for modifying and mixing colors.

  • make is an object oriented make replacement. Like make it allows you to specify dependencies between files and actions to be executed when files don’t exist or are out of date with respect to one of their sources. But unlike make you can do this in a object oriented way and targets are not only limited to files, but you can implement e.g. dependencies on database records.

  • misc provides several small utility functions and classes.

  • sisyphus provides classes for running Python scripts as cron jobs.

  • daemon can be used on UNIX to fork a daemon process.

  • url contains an RFC2396 compliant implementation of URLs and classes for accessing resource metadata (like modification dates or permission bits) as well as file like classes for reading data from URLs and writing data to URLs.

  • xpit is a module that makes it possible to embed Python expressions in text (as XML style processing instructions).

  • xml_codec provides a meta codec for decoding XML input.

Changes in 1.11 (released 01/07/2008)

  • root: URLs are now treated as local files for purposes of file i/o.

  • ll.make.ModuleAction no longer supports modules that fiddle with sys.modules.

  • The function ll.misc.tokenizepi can be used to split a string according to the processing instruction tags in the string (this formerly was part of ll.xist.xsc).

  • ll.make has been changed interally to store modification timestamp, which should fix the implementation of PhonyAction and makes it possible to use PhonyAction objects as inputs to other actions.

  • ll.make has a new action ImportAction. This action doesn’t take any input. It imports a module specified by name, e.g. make.ImportAction("cStringIO") (Note that you should not import one module via ModuleAction and ImportAction (or a normal import) as this will return two different module objects).

  • Make actions don’t have the input actions as a constructor parameter any longer. The input action can now only be set via __div__.

  • ll.make has been updated to support the actions required by XIST 3.0.

  • The functions misc.item, misc.first, misc.last and misc.count have been reimplemented in C and should be faster now (especally item for negative indexes).

  • misc.Namespace is gone and has been replaced with misc.Pool which works similar to the pools use by XIST (in fact XISTs pool class is a subclass of misc.Pool`).

  • The module xml_codec has been added. It contains a complete codec for encoding and decoding XML.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

ll-core-1.11.zip (129.2 kB view hashes)

Uploaded Source

ll-core-1.11.tar.gz (108.4 kB view hashes)

Uploaded Source

ll-core-1.11.tar.bz2 (86.5 kB view hashes)

Uploaded Source

Built Distribution

ll-core-1.11.win32-py2.5.exe (179.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page