Skip to main content

lck.common

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

Metadata

Release files for lck.common 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lck.common 0.4.5
File Size Uploaded Provenance
lck.common-0.4.5.tar.gz 254.1 kB Without provenance Details

Release files / lck.common-0.4.5.tar.gz

Download URL lck.common-0.4.5.tar.gz
Size 254.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4d5bb276fa024a64398f23912f3d371f6479cebff015615f8ef38cc48c4ee46e
BLAKE2b-256 checksum
How to use checksums
0c238dc64258999570bac97eac6419ef66592d53951ca578ffb05e5f0a7469d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lck.common 0.4.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page