cached-property.git
8 years agoUse more modern SVG badges and fix their links.
Audrey Roy Greenfeld [Wed, 25 Nov 2015 01:42:11 +0000 (17:42 -0800)]
Use more modern SVG badges and fix their links.

8 years agoFixing travis
Daniel Roy Greenfeld [Wed, 25 Nov 2015 01:45:14 +0000 (17:45 -0800)]
Fixing travis

8 years agoUpdate authors and history
Daniel Roy Greenfeld [Wed, 25 Nov 2015 01:43:30 +0000 (17:43 -0800)]
Update authors and history

8 years agoMerge branch 'master' of github.com:pydanny/cached-property
Audrey Roy Greenfeld [Wed, 25 Nov 2015 01:38:40 +0000 (17:38 -0800)]
Merge branch 'master' of github.com:pydanny/cached-property

8 years agoUpdating to a production/stable designation
Daniel Roy Greenfeld [Wed, 25 Nov 2015 01:41:19 +0000 (17:41 -0800)]
Updating to a production/stable designation

8 years agoAdd sudo: false so that Travis runs on new container-based infrastructure.
Audrey Roy Greenfeld [Wed, 25 Nov 2015 01:38:32 +0000 (17:38 -0800)]
Add sudo: false so that Travis runs on new container-based infrastructure.

8 years agoPython 3.5 support and history/authors
Daniel Roy Greenfeld [Wed, 25 Nov 2015 01:35:02 +0000 (17:35 -0800)]
Python 3.5 support and history/authors

8 years agoMerge pull request #28 from proofit404/master
Daniel Roy Greenfeld [Wed, 25 Nov 2015 01:28:03 +0000 (17:28 -0800)]
Merge pull request #28 from proofit404/master

Correct invalidation cache documentation.

8 years agoAdded @ionelmc to the contributors list
Daniel Roy Greenfeld [Wed, 25 Nov 2015 01:30:43 +0000 (17:30 -0800)]
Added @ionelmc to the contributors list

8 years agoMerge pull request #25 from ionelmc/patch-1
Daniel Roy Greenfeld [Wed, 25 Nov 2015 01:24:31 +0000 (17:24 -0800)]
Merge pull request #25 from ionelmc/patch-1

Remove confusingly placed lock from example

9 years agoCorrect invalidation cache documentation.
Artem Malyshev [Wed, 18 Nov 2015 07:04:40 +0000 (10:04 +0300)]
Correct invalidation cache documentation.

9 years agoCleanup example.
Ionel Cristian Mărieș [Thu, 1 Oct 2015 12:55:53 +0000 (15:55 +0300)]
Cleanup example.

9 years agoRemove confusingly placed lock from example
Ionel Cristian Mărieș [Thu, 1 Oct 2015 12:54:20 +0000 (15:54 +0300)]
Remove confusingly placed lock from example

9 years agoFix Adam's name
Daniel Greenfeld [Thu, 30 Apr 2015 21:43:16 +0000 (14:43 -0700)]
Fix Adam's name

9 years agoUpdate AUTHORS.rst
Daniel Greenfeld [Thu, 30 Apr 2015 16:30:49 +0000 (09:30 -0700)]
Update AUTHORS.rst

9 years agoMerge pull request #20 from AdamWill/utf8
Daniel Greenfeld [Thu, 30 Apr 2015 16:30:22 +0000 (09:30 -0700)]
Merge pull request #20 from AdamWill/utf8

drop some non-ASCII characters from HISTORY.rst

9 years agodrop some non-ASCII characters from HISTORY.rst
Adam Williamson [Wed, 29 Apr 2015 23:54:14 +0000 (16:54 -0700)]
drop some non-ASCII characters from HISTORY.rst

This file was using some odd unicode character instead of a
normal apostrophe in a couple of places. Replace one occurrence
with a normal apostrophe and remove the other (the possessive
"its" does not contain an apostrophe).

9 years agoUpdate README.rst
Daniel Greenfeld [Tue, 28 Apr 2015 16:52:10 +0000 (09:52 -0700)]
Update README.rst

9 years agoBump for 1.2.0 1.2.0
Daniel Greenfeld [Tue, 28 Apr 2015 16:34:43 +0000 (09:34 -0700)]
Bump for 1.2.0

9 years agoUpdate HISTORY.rst
Daniel Greenfeld [Tue, 28 Apr 2015 16:30:45 +0000 (09:30 -0700)]
Update HISTORY.rst

9 years agoUpdate HISTORY.rst
Daniel Greenfeld [Tue, 28 Apr 2015 16:28:53 +0000 (09:28 -0700)]
Update HISTORY.rst

9 years agoUpdate HISTORY.rst
Daniel Greenfeld [Tue, 28 Apr 2015 16:24:19 +0000 (09:24 -0700)]
Update HISTORY.rst

9 years agoAdded @gsakkis to contributors
Daniel Greenfeld [Wed, 22 Apr 2015 02:49:58 +0000 (19:49 -0700)]
Added @gsakkis to contributors

9 years agoMerge pull request #18 from gsakkis/master
Daniel Greenfeld [Wed, 22 Apr 2015 02:48:15 +0000 (19:48 -0700)]
Merge pull request #18 from gsakkis/master

Misc improvements AWESOME!!!!

9 years agoFixes for Python 2.6 and Python 3
George Sakkis [Tue, 21 Apr 2015 10:09:05 +0000 (13:09 +0300)]
Fixes for Python 2.6 and Python 3

9 years agoRevert cached_property_with_ttl/threaded_cached_property_with_ttl to settable just...
George Sakkis [Tue, 21 Apr 2015 00:21:36 +0000 (03:21 +0300)]
Revert cached_property_with_ttl/threaded_cached_property_with_ttl to settable just like cached_property/threaded_cached_property

9 years agoRefactor cached_property_with_ttl.
George Sakkis [Tue, 21 Apr 2015 00:08:27 +0000 (03:08 +0300)]
Refactor cached_property_with_ttl.

Cache (value, time) in the object's __dict__ instead of doing an extra lookup
in a '_cache' dict; also avoids the potential name clash with an unrelated
attribute named '_cache'.

9 years agoBeef up and refactor tests (DRY)
George Sakkis [Mon, 20 Apr 2015 22:46:51 +0000 (01:46 +0300)]
Beef up and refactor tests (DRY)

9 years agoFix threaded_cached_property_with_ttl.
George Sakkis [Sun, 19 Apr 2015 22:19:17 +0000 (01:19 +0300)]
Fix threaded_cached_property_with_ttl.

9 years agoFix the previous commit and add more test assertions to show why it was wrong.
George Sakkis [Mon, 20 Apr 2015 00:46:09 +0000 (03:46 +0300)]
Fix the previous commit and add more test assertions to show why it was wrong.

Although the previous commit correctly cached and returned only the first computed
value (since dict.setdefault() is atomic), the actual computation could be performed
more than once in multithreaded environment, with all but the first computed values
being discarded.

9 years agoMake cached_property thread-safe and alias threaded_cached_property to it.
George Sakkis [Sun, 19 Apr 2015 20:57:59 +0000 (23:57 +0300)]
Make cached_property thread-safe and alias threaded_cached_property to it.

dict.setdefault() is atomic since three years ago; see http://bugs.python.org/issue13521

9 years agoAllow del statement to work for cached properties with ttl
George Sakkis [Sun, 19 Apr 2015 19:38:14 +0000 (22:38 +0300)]
Allow del statement to work for cached properties with ttl

9 years agolint (flake8) fixes
George Sakkis [Sun, 19 Apr 2015 18:49:24 +0000 (21:49 +0300)]
lint (flake8) fixes

9 years agoTweak unit tests
George Sakkis [Sun, 19 Apr 2015 17:59:04 +0000 (20:59 +0300)]
Tweak unit tests

- Fix shadowed Testcase class name in test_cached_property_ttl
- Single Testcase class per cached_property variant.
- Make test modules non-executable.

9 years agoBreak out ttl tools because they don't always allow resetting of the cache. #16
Daniel Greenfeld [Tue, 14 Apr 2015 16:19:14 +0000 (09:19 -0700)]
Break out ttl tools because they don't always allow resetting of the cache. #16

9 years agoUpdate HISTORY.rst
Daniel Greenfeld [Sat, 4 Apr 2015 20:09:35 +0000 (13:09 -0700)]
Update HISTORY.rst

9 years agoMerge pull request #17 from zoidbergwill/patch-1
Daniel Greenfeld [Sat, 4 Apr 2015 20:08:38 +0000 (13:08 -0700)]
Merge pull request #17 from zoidbergwill/patch-1

Fix typo in README example

9 years agoFix typo in readme example
William Martin Stewart [Thu, 2 Apr 2015 22:56:22 +0000 (00:56 +0200)]
Fix typo in readme example

9 years agoRST cleanups
Daniel Greenfeld [Fri, 13 Feb 2015 19:21:21 +0000 (11:21 -0800)]
RST cleanups

9 years agoRST cleanups
Daniel Greenfeld [Fri, 13 Feb 2015 19:12:28 +0000 (11:12 -0800)]
RST cleanups

9 years agoVersion bump 1.0.0
Daniel Greenfeld [Fri, 13 Feb 2015 18:57:03 +0000 (10:57 -0800)]
Version bump

9 years agoLicense update
Daniel Greenfeld [Fri, 13 Feb 2015 18:56:17 +0000 (10:56 -0800)]
License update

9 years agoUpdate setup.py
Daniel Greenfeld [Fri, 13 Feb 2015 18:55:56 +0000 (10:55 -0800)]
Update setup.py

9 years agoUpdate README.rst
Daniel Greenfeld [Fri, 13 Feb 2015 18:54:47 +0000 (10:54 -0800)]
Update README.rst

9 years agoUpdate HISTORY.rst
Daniel Greenfeld [Fri, 13 Feb 2015 18:45:30 +0000 (10:45 -0800)]
Update HISTORY.rst

9 years agoUpdate README.rst
Daniel Greenfeld [Fri, 13 Feb 2015 18:44:08 +0000 (10:44 -0800)]
Update README.rst

9 years agoUpdate setup.py
Daniel Greenfeld [Fri, 13 Feb 2015 18:40:39 +0000 (10:40 -0800)]
Update setup.py

9 years agoUpdate HISTORY.rst
Daniel Greenfeld [Fri, 13 Feb 2015 18:40:22 +0000 (10:40 -0800)]
Update HISTORY.rst

9 years agoUpdate HISTORY.rst
Daniel Greenfeld [Fri, 13 Feb 2015 18:39:47 +0000 (10:39 -0800)]
Update HISTORY.rst

9 years agoAdded @bcho as an author
Daniel Greenfeld [Fri, 13 Feb 2015 18:31:16 +0000 (10:31 -0800)]
Added @bcho as an author

9 years agoMerge pull request #14 from bcho/ttl-support
Daniel Greenfeld [Fri, 13 Feb 2015 18:27:46 +0000 (10:27 -0800)]
Merge pull request #14 from bcho/ttl-support

Add TTL support.

9 years agoLet travis install deps. from requirements.txt.
hbc [Mon, 9 Feb 2015 14:40:45 +0000 (22:40 +0800)]
Let travis install deps. from requirements.txt.

9 years agoMake ``ttl`` argument optional.
hbc [Mon, 9 Feb 2015 14:32:30 +0000 (22:32 +0800)]
Make ``ttl`` argument optional.

Resolved #4.

9 years agoImplement ttl support.
hbc [Mon, 9 Feb 2015 14:23:49 +0000 (22:23 +0800)]
Implement ttl support.

Borrowed from https://wiki.python.org/moin/PythonDecoratorLibrary#Cached_Properties.

10 years agoMerge pull request #11 from Tinche/test-coverage
Daniel Greenfeld [Sun, 1 Jun 2014 17:30:46 +0000 (10:30 -0700)]
Merge pull request #11 from Tinche/test-coverage

Just a little more coverage.

10 years agoJust a little more coverage.
Tin Tvrtkovic [Wed, 28 May 2014 19:46:51 +0000 (21:46 +0200)]
Just a little more coverage.

10 years agoMerge pull request #10 from djm/patch-1
Daniel Greenfeld [Tue, 20 May 2014 20:25:00 +0000 (13:25 -0700)]
Merge pull request #10 from djm/patch-1

Correct 'invalidating the cache' demo in README

10 years agoCorrect 'invalidating the cache' demo in README
Darian Moody [Tue, 20 May 2014 20:03:47 +0000 (21:03 +0100)]
Correct 'invalidating the cache' demo in README

m -> monopoly.

10 years agoUpdate README.rst
Daniel Greenfeld [Tue, 20 May 2014 16:12:18 +0000 (09:12 -0700)]
Update README.rst

10 years agodocumentating release and making small documentation tweaks 0.1.5
Daniel Greenfeld [Tue, 20 May 2014 16:00:52 +0000 (09:00 -0700)]
documentating release and making small documentation tweaks

10 years agoDocument how to use threaded_cached_property and it's place in history
Daniel Greenfeld [Tue, 20 May 2014 16:00:12 +0000 (09:00 -0700)]
Document how to use threaded_cached_property and it's place in history

10 years agoAdd @Tinche to the authors list.
Daniel Greenfeld [Tue, 20 May 2014 15:42:32 +0000 (08:42 -0700)]
Add @Tinche to the authors list.

10 years agoMerge pull request #9 from Tinche/threaded_cache_property
Daniel Greenfeld [Tue, 20 May 2014 15:38:29 +0000 (08:38 -0700)]
Merge pull request #9 from Tinche/threaded_cache_property

Added a new cached property decorator - threaded_cached_property, for

10 years agoAdded a new cached property decorator - threaded_cached_property, for
Tin Tvrtkovic [Mon, 19 May 2014 20:30:11 +0000 (22:30 +0200)]
Added a new cached property decorator - threaded_cached_property, for
use in multithreaded environments.
Added tests.
Added Python 3.4 to the list of test environments.

10 years agoIlluminating the problems with threads. #6
Daniel Greenfeld [Mon, 19 May 2014 15:49:00 +0000 (08:49 -0700)]
Illuminating the problems with threads. #6

10 years agoRewrote @Tinche's code example as a formal test case #6
Daniel Greenfeld [Mon, 19 May 2014 04:36:11 +0000 (21:36 -0700)]
Rewrote @Tinche's code example as a formal test case #6

10 years agoDocumented cache invalidation
Daniel Greenfeld [Sun, 18 May 2014 19:08:15 +0000 (12:08 -0700)]
Documented cache invalidation

10 years agoDemonstrate and test cache invalidation
Daniel Greenfeld [Sun, 18 May 2014 18:55:02 +0000 (11:55 -0700)]
Demonstrate and test cache invalidation

10 years agoNuke timed_cached_property until I'm happy with an implementation
Daniel Greenfeld [Sun, 18 May 2014 18:39:56 +0000 (11:39 -0700)]
Nuke timed_cached_property until I'm happy with an implementation

10 years agoAdd timed_cached_property decorator
Daniel Greenfeld [Sun, 18 May 2014 18:29:53 +0000 (11:29 -0700)]
Add timed_cached_property decorator

10 years agoChanges to reflect who deserves what credit. #1
Daniel Greenfeld [Sun, 18 May 2014 18:12:45 +0000 (11:12 -0700)]
Changes to reflect who deserves what credit. #1

10 years agoFix the dang-blarged py_modules argument. 0.1.4
Daniel Greenfeld [Sun, 18 May 2014 01:24:12 +0000 (18:24 -0700)]
Fix the dang-blarged py_modules argument.

10 years agoFix my dumb habit of importing the package into setup.py 0.1.3
Daniel Greenfeld [Sun, 18 May 2014 00:59:00 +0000 (17:59 -0700)]
Fix my dumb habit of importing the package into setup.py

10 years agoReadme fix
Daniel Greenfeld [Sat, 17 May 2014 23:42:16 +0000 (16:42 -0700)]
Readme fix

10 years agoBump to 0.1.2 0.1.2
Daniel Greenfeld [Sat, 17 May 2014 23:38:39 +0000 (16:38 -0700)]
Bump to 0.1.2

10 years agoFinal Readme tweak of the day
Daniel Greenfeld [Sat, 17 May 2014 23:36:42 +0000 (16:36 -0700)]
Final Readme tweak of the day

10 years agoGet travis in order
Daniel Greenfeld [Sat, 17 May 2014 23:32:10 +0000 (16:32 -0700)]
Get travis in order

10 years agoVarious setup and version issues 0.1.1
Daniel Greenfeld [Sat, 17 May 2014 23:26:22 +0000 (16:26 -0700)]
Various setup and version issues

10 years agoUpdate the readme
Daniel Greenfeld [Sat, 17 May 2014 23:20:58 +0000 (16:20 -0700)]
Update the readme

10 years agoUpdate the readme
Daniel Greenfeld [Sat, 17 May 2014 23:20:28 +0000 (16:20 -0700)]
Update the readme

10 years agoUpdate the readme
Daniel Greenfeld [Sat, 17 May 2014 23:19:36 +0000 (16:19 -0700)]
Update the readme

10 years agoUpdate the readme
Daniel Greenfeld [Sat, 17 May 2014 23:18:08 +0000 (16:18 -0700)]
Update the readme

10 years agoFix py.test dependency
Daniel Greenfeld [Sat, 17 May 2014 23:05:11 +0000 (16:05 -0700)]
Fix py.test dependency

10 years agoMove to single file. Switch to py.test
Daniel Greenfeld [Sat, 17 May 2014 23:01:33 +0000 (16:01 -0700)]
Move to single file. Switch to py.test

10 years agofirst commit
Daniel Greenfeld [Sat, 17 May 2014 22:42:43 +0000 (15:42 -0700)]
first commit