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.
Code Repository: http://gitorious.org/goobook
News
1.2
Release date: 2011-01-07
No changes since 1.2rc5
1.2.rc5
Release date: 2010-11-30
unittest.eq_json, sorted output so that it can be used with dicts.
unittest switched place on ndiff arguments
1.2.rc4
Release date: 2010-06-15
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file hcs_utils-1.2.tar.gz
.
File metadata
- Download URL: hcs_utils-1.2.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f342d9712709cdcf1bb58750bf9573cc89cff20c47f4aaee8d9e2f53af3897d0 |
|
MD5 | 1dbc43fbba54c9d4a2e7d56785372655 |
|
BLAKE2b-256 | 41c475e53452226acd04c117341e8e6ae34aca946168a08fec975d37a51c62f3 |