Simple lock-queue via Memcached (Python) 3 days ago Read More
Python
recipe 576567
by Tal Einat
(concurrency, contextmanager, lock, locking, memcache, memcached, queue).
A simple lock-queue (FIFO) context manager implemented with Memcached.
In essence this i...
Cached Property (Python) 8 days ago Read More
Python
recipe 576563
by Ken Seehart
(cache, property).
A cached property is a read-only property that is calculated on demand and automatically cached. If the value has already been calculated, th...
Yet another Null object (Python) 10 days ago Read More
Python
recipe 576562
by George Sakkis
(design pattern, dummy, Null).
This recipe builds on two previously posted recipes for a null or dummy object by modifying a few methods (e.g. as in SQL, Null...
Dump PostgreSQL db schema to text (Python) 16 days ago Read More
Python
recipe 576557
by Michal Niklas
(database, postgres, PostgreSQL, schema).
Revision 2.
With PostgreSQL there is:
pg_dump --schema_only
but I wanted to compare my PostgreSQL and Oracle databas...
Records (Python) 18 days ago Read More
Python
recipe 576555
by George Sakkis
(datastructures, namedtuple, record).
This is a recipe similar in functionality and exec-style optimized implementation to the very well received namedtuple (...