Skip to content

Commit ed7f61a

Browse files
committed
fresh commit
1 parent 3d96622 commit ed7f61a

File tree

1,138 files changed

+123108
-1148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,138 files changed

+123108
-1148
lines changed

virtual-env/bin/pyrsa-decrypt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
6+
from rsa.cli import decrypt
7+
8+
if __name__ == '__main__':
9+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
10+
sys.exit(decrypt())

virtual-env/bin/pyrsa-encrypt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
6+
from rsa.cli import encrypt
7+
8+
if __name__ == '__main__':
9+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
10+
sys.exit(encrypt())

virtual-env/bin/pyrsa-keygen

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
6+
from rsa.cli import keygen
7+
8+
if __name__ == '__main__':
9+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
10+
sys.exit(keygen())

virtual-env/bin/pyrsa-priv2pub

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
6+
from rsa.util import private_to_public
7+
8+
if __name__ == '__main__':
9+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
10+
sys.exit(private_to_public())

virtual-env/bin/pyrsa-sign

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
6+
from rsa.cli import sign
7+
8+
if __name__ == '__main__':
9+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
10+
sys.exit(sign())

virtual-env/bin/pyrsa-verify

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
2+
# -*- coding: utf-8 -*-
3+
import re
4+
import sys
5+
6+
from rsa.cli import verify
7+
8+
if __name__ == '__main__':
9+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
10+
sys.exit(verify())
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
cachetools
2+
========================================================================
3+
4+
This module provides various memoizing collections and decorators,
5+
including variants of the Python 3 Standard Library `@lru_cache`_
6+
function decorator.
7+
8+
.. code-block:: python
9+
10+
from cachetools import cached, LRUCache, TTLCache
11+
12+
# speed up calculating Fibonacci numbers with dynamic programming
13+
@cached(cache={})
14+
def fib(n):
15+
return n if n < 2 else fib(n - 1) + fib(n - 2)
16+
17+
# cache least recently used Python Enhancement Proposals
18+
@cached(cache=LRUCache(maxsize=32))
19+
def get_pep(num):
20+
url = 'http://www.python.org/dev/peps/pep-%04d/' % num
21+
with urllib.request.urlopen(url) as s:
22+
return s.read()
23+
24+
# cache weather data for no longer than ten minutes
25+
@cached(cache=TTLCache(maxsize=1024, ttl=600))
26+
def get_weather(place):
27+
return owm.weather_at_place(place).get_weather()
28+
29+
For the purpose of this module, a *cache* is a mutable_ mapping_ of a
30+
fixed maximum size. When the cache is full, i.e. by adding another
31+
item the cache would exceed its maximum size, the cache must choose
32+
which item(s) to discard based on a suitable `cache algorithm`_. In
33+
general, a cache's size is the total size of its items, and an item's
34+
size is a property or function of its value, e.g. the result of
35+
``sys.getsizeof(value)``. For the trivial but common case that each
36+
item counts as ``1``, a cache's size is equal to the number of its
37+
items, or ``len(cache)``.
38+
39+
Multiple cache classes based on different caching algorithms are
40+
implemented, and decorators for easily memoizing function and method
41+
calls are provided, too.
42+
43+
For more information, please refer to the online documentation_.
44+
45+
46+
Installation
47+
------------------------------------------------------------------------
48+
49+
Install cachetools using pip::
50+
51+
pip install cachetools
52+
53+
54+
Project Resources
55+
------------------------------------------------------------------------
56+
57+
.. image:: http://img.shields.io/pypi/v/cachetools.svg?style=flat
58+
:target: https://pypi.python.org/pypi/cachetools/
59+
:alt: Latest PyPI version
60+
61+
.. image:: http://img.shields.io/travis/tkem/cachetools/master.svg?style=flat
62+
:target: https://travis-ci.org/tkem/cachetools/
63+
:alt: Travis CI build status
64+
65+
.. image:: http://img.shields.io/coveralls/tkem/cachetools/master.svg?style=flat
66+
:target: https://coveralls.io/r/tkem/cachetools
67+
:alt: Test coverage
68+
69+
.. image:: https://readthedocs.org/projects/cachetools/badge/?version=latest&style=flat
70+
:target: http://cachetools.readthedocs.io/en/latest/
71+
:alt: Documentation Status
72+
73+
- `Issue Tracker`_
74+
- `Source Code`_
75+
- `Change Log`_
76+
77+
78+
License
79+
------------------------------------------------------------------------
80+
81+
Copyright (c) 2014-2019 Thomas Kemmer.
82+
83+
Licensed under the `MIT License`_.
84+
85+
86+
.. _@lru_cache: http://docs.python.org/3/library/functools.html#functools.lru_cache
87+
.. _mutable: http://docs.python.org/dev/glossary.html#term-mutable
88+
.. _mapping: http://docs.python.org/dev/glossary.html#term-mapping
89+
.. _cache algorithm: http://en.wikipedia.org/wiki/Cache_algorithms
90+
91+
.. _Documentation: http://cachetools.readthedocs.io/en/latest/
92+
.. _Issue Tracker: https://github.com/tkem/cachetools/issues/
93+
.. _Source Code: https://github.com/tkem/cachetools/
94+
.. _Change Log: https://github.com/tkem/cachetools/blob/master/CHANGES.rst
95+
.. _MIT License: http://raw.github.com/tkem/cachetools/master/LICENSE
96+
97+
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
Metadata-Version: 2.0
2+
Name: cachetools
3+
Version: 3.1.0
4+
Summary: Extensible memoizing collections and decorators
5+
Home-page: https://github.com/tkem/cachetools
6+
Author: Thomas Kemmer
7+
Author-email: [email protected]
8+
License: MIT
9+
Keywords: cache caching memoize memoizing memoization LRU LFU TTL
10+
Platform: UNKNOWN
11+
Classifier: Development Status :: 5 - Production/Stable
12+
Classifier: Environment :: Other Environment
13+
Classifier: Intended Audience :: Developers
14+
Classifier: License :: OSI Approved :: MIT License
15+
Classifier: Operating System :: OS Independent
16+
Classifier: Programming Language :: Python
17+
Classifier: Programming Language :: Python :: 2
18+
Classifier: Programming Language :: Python :: 2.7
19+
Classifier: Programming Language :: Python :: 3
20+
Classifier: Programming Language :: Python :: 3.4
21+
Classifier: Programming Language :: Python :: 3.5
22+
Classifier: Programming Language :: Python :: 3.6
23+
Classifier: Programming Language :: Python :: 3.7
24+
Classifier: Programming Language :: Python :: Implementation :: CPython
25+
Classifier: Programming Language :: Python :: Implementation :: PyPy
26+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
27+
28+
cachetools
29+
========================================================================
30+
31+
This module provides various memoizing collections and decorators,
32+
including variants of the Python 3 Standard Library `@lru_cache`_
33+
function decorator.
34+
35+
.. code-block:: python
36+
37+
from cachetools import cached, LRUCache, TTLCache
38+
39+
# speed up calculating Fibonacci numbers with dynamic programming
40+
@cached(cache={})
41+
def fib(n):
42+
return n if n < 2 else fib(n - 1) + fib(n - 2)
43+
44+
# cache least recently used Python Enhancement Proposals
45+
@cached(cache=LRUCache(maxsize=32))
46+
def get_pep(num):
47+
url = 'http://www.python.org/dev/peps/pep-%04d/' % num
48+
with urllib.request.urlopen(url) as s:
49+
return s.read()
50+
51+
# cache weather data for no longer than ten minutes
52+
@cached(cache=TTLCache(maxsize=1024, ttl=600))
53+
def get_weather(place):
54+
return owm.weather_at_place(place).get_weather()
55+
56+
For the purpose of this module, a *cache* is a mutable_ mapping_ of a
57+
fixed maximum size. When the cache is full, i.e. by adding another
58+
item the cache would exceed its maximum size, the cache must choose
59+
which item(s) to discard based on a suitable `cache algorithm`_. In
60+
general, a cache's size is the total size of its items, and an item's
61+
size is a property or function of its value, e.g. the result of
62+
``sys.getsizeof(value)``. For the trivial but common case that each
63+
item counts as ``1``, a cache's size is equal to the number of its
64+
items, or ``len(cache)``.
65+
66+
Multiple cache classes based on different caching algorithms are
67+
implemented, and decorators for easily memoizing function and method
68+
calls are provided, too.
69+
70+
For more information, please refer to the online documentation_.
71+
72+
73+
Installation
74+
------------------------------------------------------------------------
75+
76+
Install cachetools using pip::
77+
78+
pip install cachetools
79+
80+
81+
Project Resources
82+
------------------------------------------------------------------------
83+
84+
.. image:: http://img.shields.io/pypi/v/cachetools.svg?style=flat
85+
:target: https://pypi.python.org/pypi/cachetools/
86+
:alt: Latest PyPI version
87+
88+
.. image:: http://img.shields.io/travis/tkem/cachetools/master.svg?style=flat
89+
:target: https://travis-ci.org/tkem/cachetools/
90+
:alt: Travis CI build status
91+
92+
.. image:: http://img.shields.io/coveralls/tkem/cachetools/master.svg?style=flat
93+
:target: https://coveralls.io/r/tkem/cachetools
94+
:alt: Test coverage
95+
96+
.. image:: https://readthedocs.org/projects/cachetools/badge/?version=latest&style=flat
97+
:target: http://cachetools.readthedocs.io/en/latest/
98+
:alt: Documentation Status
99+
100+
- `Issue Tracker`_
101+
- `Source Code`_
102+
- `Change Log`_
103+
104+
105+
License
106+
------------------------------------------------------------------------
107+
108+
Copyright (c) 2014-2019 Thomas Kemmer.
109+
110+
Licensed under the `MIT License`_.
111+
112+
113+
.. _@lru_cache: http://docs.python.org/3/library/functools.html#functools.lru_cache
114+
.. _mutable: http://docs.python.org/dev/glossary.html#term-mutable
115+
.. _mapping: http://docs.python.org/dev/glossary.html#term-mapping
116+
.. _cache algorithm: http://en.wikipedia.org/wiki/Cache_algorithms
117+
118+
.. _Documentation: http://cachetools.readthedocs.io/en/latest/
119+
.. _Issue Tracker: https://github.com/tkem/cachetools/issues/
120+
.. _Source Code: https://github.com/tkem/cachetools/
121+
.. _Change Log: https://github.com/tkem/cachetools/blob/master/CHANGES.rst
122+
.. _MIT License: http://raw.github.com/tkem/cachetools/master/LICENSE
123+
124+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
cachetools-3.1.0.dist-info/DESCRIPTION.rst,sha256=xp_EY25BvA7Uky-oKsFahO0Z8Hi1Gf8Cw-0vlzo_nRQ,3427
2+
cachetools-3.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3+
cachetools-3.1.0.dist-info/METADATA,sha256=7NOOybXolChpvHqTEjneMZJLzh13B0Y96_xX3DDdUT4,4585
4+
cachetools-3.1.0.dist-info/RECORD,,
5+
cachetools-3.1.0.dist-info/WHEEL,sha256=kdsN-5OJAZIiHN-iO4Rhl82KyS0bDWf4uBwMbkNafr8,110
6+
cachetools-3.1.0.dist-info/metadata.json,sha256=4RS2n_rAzR8-Q-Ifxn3lnPECibZL0z5edCHLgviMreE,1245
7+
cachetools-3.1.0.dist-info/top_level.txt,sha256=ai2FH78TGwoBcCgVfoqbzk5IQCtnDukdSs4zKuVPvDs,11
8+
cachetools/__init__.py,sha256=BxMHSdtBSf2tRk1ss6N04_xlCpI9-THDupR477cyZtg,3453
9+
cachetools/__pycache__/__init__.cpython-37.pyc,,
10+
cachetools/__pycache__/abc.cpython-37.pyc,,
11+
cachetools/__pycache__/cache.cpython-37.pyc,,
12+
cachetools/__pycache__/func.cpython-37.pyc,,
13+
cachetools/__pycache__/keys.cpython-37.pyc,,
14+
cachetools/__pycache__/lfu.cpython-37.pyc,,
15+
cachetools/__pycache__/lru.cpython-37.pyc,,
16+
cachetools/__pycache__/rr.cpython-37.pyc,,
17+
cachetools/__pycache__/ttl.cpython-37.pyc,,
18+
cachetools/abc.py,sha256=jvdeK7B6dgGvZ8CAoH7gbFve8wAjFkF3XtyC0knxg3o,1189
19+
cachetools/cache.py,sha256=8_E_WOll4FszonLSKZc8JI8aDA_Nm2r3szEiv669uoQ,2312
20+
cachetools/func.py,sha256=L3jGuWGipdcMIZE8bskTbpPKx5FIYQ_lW2Vm_h-LtS8,3761
21+
cachetools/keys.py,sha256=f459jDZ5NP3lex4s9T7WKfBNnlfmQ9dr8c4VYoJ7hZk,1073
22+
cachetools/lfu.py,sha256=Jyfap_yoNxrTbTetestcdfPXcrDn8xB8-MVXIJg3CoI,1073
23+
cachetools/lru.py,sha256=whvmU7CLpJtrWu1l2queu1uxpzlW51gMYflSUuotm-c,1460
24+
cachetools/rr.py,sha256=MW2Xy0T8EVj2TYdvuejrVnWvbQeiiPKverU6pD2-Tys,982
25+
cachetools/ttl.py,sha256=RZttzrtB2dYUjDwKmvLI2wI2uWJcNP4hojgEO0rdHYs,6159
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Wheel-Version: 1.0
2+
Generator: bdist_wheel (0.30.0)
3+
Root-Is-Purelib: true
4+
Tag: py2-none-any
5+
Tag: py3-none-any
6+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"classifiers": ["Development Status :: 5 - Production/Stable", "Environment :: Other Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules"], "extensions": {"python.details": {"contacts": [{"email": "[email protected]", "name": "Thomas Kemmer", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/tkem/cachetools"}}}, "generator": "bdist_wheel (0.30.0)", "keywords": ["cache", "caching", "memoize", "memoizing", "memoization", "LRU", "LFU", "TTL"], "license": "MIT", "metadata_version": "2.0", "name": "cachetools", "summary": "Extensible memoizing collections and decorators", "version": "3.1.0"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cachetools

0 commit comments

Comments
 (0)