Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install lck.common

How to install lck.common

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install lck.common
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.1 Available View build log
0.4.0 Available View build log
Windows (64-bit)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.1 Available View build log
0.4.0 Available View build log
Mac OS X (10.5+)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.1 Available View build log
0.4.0 Available View build log
Linux (32-bit)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.1 Available View build log
0.4.0 Available View build log
Linux (64-bit)
0.4.5 Available View build log
0.4.4 Available View build log
0.4.3 Available View build log
0.4.2 Available View build log
0.4.1 Available View build log
0.4.0 Available View build log
 
Author
License
MIT
Dependencies
Depended by
Lastest release
version 0.4.5 on Feb 6th, 2012

This library consists of various simple common routines and language constructs that are so useful they ten to be rewritten in every subsequent project I'm working on. Each function, decorator or module on its own is too simple to dedicate an entire PyPI package for it. Together however, this library represents a Swiss army knife for everyday needs (YMMV). Among the things you might find inside:

  • robust memoization
  • some less obvious collections (e.g. orderedset)
  • a @synchronized decorator (with threading or lockfile backends)
  • some controversial language enhancements like the Null object
  • converter from ElementTree instances to dicts
  • file finder (searching locations commonly used for storing app data)

The latest version can be installed via PyPI:

$ pip install lck.common

or:

$ easy_install lck.common

The source code repository and issue tracker are maintained on GitHub.

For the curious, lck stands for LangaCore Kit. LangaCore is a one man software development shop of mine.

Note: lck.common requires Python 2.7 because all of its code is using the so-called four futures (absolute_imports, division, print_function and unicode_literals). One of the virtues in the creation of this library is to make the code beautiful. These switches give a useful transitional state between the old Python 2.x and the new Python 3.x. You should use them as well.

Change Log

0.4.5
  • fixed an uncommon bug in memoization where an exception in the memoized function could leave stale keys in the cache
0.4.4
  • lck.git introduced with a get_version routine
  • decode_entities added to lck.xml
0.4.3
0.4.2
  • lck.crypto introduced with a couple of thin wrappers over PyCrypto
  • lck.math introduced starting with Elo rating calculation routine.
0.4.1
  • lck.lang.unset is now also False and len(unset) is zero
0.4.0
  • migrated to the lck namespace from langacore.kit
  • migrated licensing from GPL 3 to MIT
  • bumped the trove from alpha status to beta, the code is in production for over a year now
Ancient history
  • No proper change log was kept before 0.4.0

Subscribe to package updates

Last updated Feb 6th, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.