Skip to main content

My personal library collecting some useful snippets.

Project description

About

This is my personal collection of snippets that I use in multiple projects. Each one feels a bit to small to merit it’s own library.

So what does it include?

  • memoize decorator (caching)

  • a storage class wrapping a dict.

  • unittest assert functions.

  • Functions for handling large JSON documents.

  • list_dir(path) –> (dirnames, filenames)

  • PID file locking

  • A synchronization decorator

Feedback and getting involved

Send feedback and bug reports by email to hcs at furuvik dot net.

News

1.2.dev —

Release date: 2010–

  • Dropped support for Python 2.5

  • Memoize is now thread safe.

  • added hcs_utils.path.tempdir context.

  • added hcs_utils.collections.ListBuilder, a nice way to manually build lists.

  • Added hcs_utils.threading.synchronization decorator.

  • Added hcs_utils.lock.Lock, Interprocess locking using a PID symlink.

  • Added __contains__ and __iter__ to Storage

  • Added json helpers to storage module

1.1

Release date: 2010-04-22

  • Fixed unpickeling of Storage objects.

1.0

Release date: 2010-04-18

  • Initial release

Project details


Download files

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

Source Distribution

hcs_utils-1.2rc3.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file hcs_utils-1.2rc3.tar.gz.

File metadata

  • Download URL: hcs_utils-1.2rc3.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hcs_utils-1.2rc3.tar.gz
Algorithm Hash digest
SHA256 cf1f9f0a26dfd2c22bbcc506e406b06bd2654e148e36709e8153197dc911f2c3
MD5 357a38b54ee08f7a2436156894207a75
BLAKE2b-256 306c3718adf143482931db87906db7b361b63b3daa3a67ca052b06e78278cc58

See more details on using hashes here.

Provenance

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