skip to navigation
skip to content

Not Logged In

hcs_utils 1.3a2

My personal library collecting some useful snippets.

Latest Version: 1.5

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
  • Added hcs_utils.collections.ListBuilder, a nice way to manually build lists.
  • Added hcs_utils.lock.Lock, Interprocess locking using a PID symlink.
  • Added hcs_utils.path.scan_for_new_files()
  • Added hcs_utils.path.tempdir context.
  • Added hcs_utils.storage.Storage.__contains__ and __iter__
  • Added hcs_utils.storage.json* Storage vs. json helpers
  • Added hcs_utils.threading.synchronization decorator.
  • Memoize is now thread safe.
  • hcs_utils.path.list_dir now returns a namedtuple

1.1

Release date: 2010-04-22

  • Fixed unpickeling of Storage objects.

1.0

Release date: 2010-04-18

  • Initial release
 
File Type Py Version Uploaded on Size
hcs_utils-1.3a2.tar.gz (md5) Source 2010-11-06 13KB
  • Downloads (All Versions):
  • 46 downloads in the last day
  • 391 downloads in the last week
  • 2752 downloads in the last month