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
  • 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

History Node

2.0

History Node

1.5

History Node

1.4

History Node

1.4rc5

History Node

1.4rc4

History Node

1.4rc3

History Node

1.4rc2

History Node

1.4rc1

History Node

1.3

History Node

1.3rc6

History Node

1.3rc5

History Node

1.3rc4

History Node

1.3rc3

History Node

1.3rc2

History Node

1.3rc1

History Node

1.3a9

History Node

1.3a8

History Node

1.3a7

History Node

1.3a6

History Node

1.3a5

History Node

1.3a4

History Node

1.3a3

History Node

1.3a2

History Node

1.2

History Node

1.2rc5

This version
History Node

1.2rc4

History Node

1.2rc3

History Node

1.2rc2

History Node

1.2rc1

History Node

1.1.1

History Node

1.1

History Node

1.0rc1

History Node

1.3a7.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
hcs_utils-1.2rc4.tar.gz (9.9 kB) Copy SHA256 hash SHA256 Source None Jun 15, 2010

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page