Skip to content

Commit

Permalink
fresh commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 committed Apr 28, 2019
1 parent 3d96622 commit ed7f61a
Show file tree
Hide file tree
Showing 1,138 changed files with 123,108 additions and 1,148 deletions.
10 changes: 10 additions & 0 deletions virtual-env/bin/pyrsa-decrypt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys

from rsa.cli import decrypt

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt())
10 changes: 10 additions & 0 deletions virtual-env/bin/pyrsa-encrypt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys

from rsa.cli import encrypt

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(encrypt())
10 changes: 10 additions & 0 deletions virtual-env/bin/pyrsa-keygen
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys

from rsa.cli import keygen

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(keygen())
10 changes: 10 additions & 0 deletions virtual-env/bin/pyrsa-priv2pub
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys

from rsa.util import private_to_public

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(private_to_public())
10 changes: 10 additions & 0 deletions virtual-env/bin/pyrsa-sign
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys

from rsa.cli import sign

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(sign())
10 changes: 10 additions & 0 deletions virtual-env/bin/pyrsa-verify
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/cygdrive/d/Google/GAE/Python/market/virtual-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys

from rsa.cli import verify

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(verify())
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
cachetools
========================================================================

This module provides various memoizing collections and decorators,
including variants of the Python 3 Standard Library `@lru_cache`_
function decorator.

.. code-block:: python
from cachetools import cached, LRUCache, TTLCache
# speed up calculating Fibonacci numbers with dynamic programming
@cached(cache={})
def fib(n):
return n if n < 2 else fib(n - 1) + fib(n - 2)
# cache least recently used Python Enhancement Proposals
@cached(cache=LRUCache(maxsize=32))
def get_pep(num):
url = 'http://www.python.org/dev/peps/pep-%04d/' % num
with urllib.request.urlopen(url) as s:
return s.read()
# cache weather data for no longer than ten minutes
@cached(cache=TTLCache(maxsize=1024, ttl=600))
def get_weather(place):
return owm.weather_at_place(place).get_weather()
For the purpose of this module, a *cache* is a mutable_ mapping_ of a
fixed maximum size. When the cache is full, i.e. by adding another
item the cache would exceed its maximum size, the cache must choose
which item(s) to discard based on a suitable `cache algorithm`_. In
general, a cache's size is the total size of its items, and an item's
size is a property or function of its value, e.g. the result of
``sys.getsizeof(value)``. For the trivial but common case that each
item counts as ``1``, a cache's size is equal to the number of its
items, or ``len(cache)``.

Multiple cache classes based on different caching algorithms are
implemented, and decorators for easily memoizing function and method
calls are provided, too.

For more information, please refer to the online documentation_.


Installation
------------------------------------------------------------------------

Install cachetools using pip::

pip install cachetools


Project Resources
------------------------------------------------------------------------

.. image:: http://img.shields.io/pypi/v/cachetools.svg?style=flat
:target: https://pypi.python.org/pypi/cachetools/
:alt: Latest PyPI version

.. image:: http://img.shields.io/travis/tkem/cachetools/master.svg?style=flat
:target: https://travis-ci.org/tkem/cachetools/
:alt: Travis CI build status

.. image:: http://img.shields.io/coveralls/tkem/cachetools/master.svg?style=flat
:target: https://coveralls.io/r/tkem/cachetools
:alt: Test coverage

.. image:: https://readthedocs.org/projects/cachetools/badge/?version=latest&style=flat
:target: http://cachetools.readthedocs.io/en/latest/
:alt: Documentation Status

- `Issue Tracker`_
- `Source Code`_
- `Change Log`_


License
------------------------------------------------------------------------

Copyright (c) 2014-2019 Thomas Kemmer.

Licensed under the `MIT License`_.


.. _@lru_cache: http://docs.python.org/3/library/functools.html#functools.lru_cache
.. _mutable: http://docs.python.org/dev/glossary.html#term-mutable
.. _mapping: http://docs.python.org/dev/glossary.html#term-mapping
.. _cache algorithm: http://en.wikipedia.org/wiki/Cache_algorithms

.. _Documentation: http://cachetools.readthedocs.io/en/latest/
.. _Issue Tracker: https://github.com/tkem/cachetools/issues/
.. _Source Code: https://github.com/tkem/cachetools/
.. _Change Log: https://github.com/tkem/cachetools/blob/master/CHANGES.rst
.. _MIT License: http://raw.github.com/tkem/cachetools/master/LICENSE


Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
Metadata-Version: 2.0
Name: cachetools
Version: 3.1.0
Summary: Extensible memoizing collections and decorators
Home-page: https://github.com/tkem/cachetools
Author: Thomas Kemmer
Author-email: [email protected]
License: MIT
Keywords: cache caching memoize memoizing memoization LRU LFU TTL
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Other Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries :: Python Modules

cachetools
========================================================================

This module provides various memoizing collections and decorators,
including variants of the Python 3 Standard Library `@lru_cache`_
function decorator.

.. code-block:: python

from cachetools import cached, LRUCache, TTLCache

# speed up calculating Fibonacci numbers with dynamic programming
@cached(cache={})
def fib(n):
return n if n < 2 else fib(n - 1) + fib(n - 2)

# cache least recently used Python Enhancement Proposals
@cached(cache=LRUCache(maxsize=32))
def get_pep(num):
url = 'http://www.python.org/dev/peps/pep-%04d/' % num
with urllib.request.urlopen(url) as s:
return s.read()

# cache weather data for no longer than ten minutes
@cached(cache=TTLCache(maxsize=1024, ttl=600))
def get_weather(place):
return owm.weather_at_place(place).get_weather()

For the purpose of this module, a *cache* is a mutable_ mapping_ of a
fixed maximum size. When the cache is full, i.e. by adding another
item the cache would exceed its maximum size, the cache must choose
which item(s) to discard based on a suitable `cache algorithm`_. In
general, a cache's size is the total size of its items, and an item's
size is a property or function of its value, e.g. the result of
``sys.getsizeof(value)``. For the trivial but common case that each
item counts as ``1``, a cache's size is equal to the number of its
items, or ``len(cache)``.

Multiple cache classes based on different caching algorithms are
implemented, and decorators for easily memoizing function and method
calls are provided, too.

For more information, please refer to the online documentation_.


Installation
------------------------------------------------------------------------

Install cachetools using pip::

pip install cachetools


Project Resources
------------------------------------------------------------------------

.. image:: http://img.shields.io/pypi/v/cachetools.svg?style=flat
:target: https://pypi.python.org/pypi/cachetools/
:alt: Latest PyPI version

.. image:: http://img.shields.io/travis/tkem/cachetools/master.svg?style=flat
:target: https://travis-ci.org/tkem/cachetools/
:alt: Travis CI build status

.. image:: http://img.shields.io/coveralls/tkem/cachetools/master.svg?style=flat
:target: https://coveralls.io/r/tkem/cachetools
:alt: Test coverage

.. image:: https://readthedocs.org/projects/cachetools/badge/?version=latest&style=flat
:target: http://cachetools.readthedocs.io/en/latest/
:alt: Documentation Status

- `Issue Tracker`_
- `Source Code`_
- `Change Log`_


License
------------------------------------------------------------------------

Copyright (c) 2014-2019 Thomas Kemmer.

Licensed under the `MIT License`_.


.. _@lru_cache: http://docs.python.org/3/library/functools.html#functools.lru_cache
.. _mutable: http://docs.python.org/dev/glossary.html#term-mutable
.. _mapping: http://docs.python.org/dev/glossary.html#term-mapping
.. _cache algorithm: http://en.wikipedia.org/wiki/Cache_algorithms

.. _Documentation: http://cachetools.readthedocs.io/en/latest/
.. _Issue Tracker: https://github.com/tkem/cachetools/issues/
.. _Source Code: https://github.com/tkem/cachetools/
.. _Change Log: https://github.com/tkem/cachetools/blob/master/CHANGES.rst
.. _MIT License: http://raw.github.com/tkem/cachetools/master/LICENSE


Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
cachetools-3.1.0.dist-info/DESCRIPTION.rst,sha256=xp_EY25BvA7Uky-oKsFahO0Z8Hi1Gf8Cw-0vlzo_nRQ,3427
cachetools-3.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
cachetools-3.1.0.dist-info/METADATA,sha256=7NOOybXolChpvHqTEjneMZJLzh13B0Y96_xX3DDdUT4,4585
cachetools-3.1.0.dist-info/RECORD,,
cachetools-3.1.0.dist-info/WHEEL,sha256=kdsN-5OJAZIiHN-iO4Rhl82KyS0bDWf4uBwMbkNafr8,110
cachetools-3.1.0.dist-info/metadata.json,sha256=4RS2n_rAzR8-Q-Ifxn3lnPECibZL0z5edCHLgviMreE,1245
cachetools-3.1.0.dist-info/top_level.txt,sha256=ai2FH78TGwoBcCgVfoqbzk5IQCtnDukdSs4zKuVPvDs,11
cachetools/__init__.py,sha256=BxMHSdtBSf2tRk1ss6N04_xlCpI9-THDupR477cyZtg,3453
cachetools/__pycache__/__init__.cpython-37.pyc,,
cachetools/__pycache__/abc.cpython-37.pyc,,
cachetools/__pycache__/cache.cpython-37.pyc,,
cachetools/__pycache__/func.cpython-37.pyc,,
cachetools/__pycache__/keys.cpython-37.pyc,,
cachetools/__pycache__/lfu.cpython-37.pyc,,
cachetools/__pycache__/lru.cpython-37.pyc,,
cachetools/__pycache__/rr.cpython-37.pyc,,
cachetools/__pycache__/ttl.cpython-37.pyc,,
cachetools/abc.py,sha256=jvdeK7B6dgGvZ8CAoH7gbFve8wAjFkF3XtyC0knxg3o,1189
cachetools/cache.py,sha256=8_E_WOll4FszonLSKZc8JI8aDA_Nm2r3szEiv669uoQ,2312
cachetools/func.py,sha256=L3jGuWGipdcMIZE8bskTbpPKx5FIYQ_lW2Vm_h-LtS8,3761
cachetools/keys.py,sha256=f459jDZ5NP3lex4s9T7WKfBNnlfmQ9dr8c4VYoJ7hZk,1073
cachetools/lfu.py,sha256=Jyfap_yoNxrTbTetestcdfPXcrDn8xB8-MVXIJg3CoI,1073
cachetools/lru.py,sha256=whvmU7CLpJtrWu1l2queu1uxpzlW51gMYflSUuotm-c,1460
cachetools/rr.py,sha256=MW2Xy0T8EVj2TYdvuejrVnWvbQeiiPKverU6pD2-Tys,982
cachetools/ttl.py,sha256=RZttzrtB2dYUjDwKmvLI2wI2uWJcNP4hojgEO0rdHYs,6159
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.30.0)
Root-Is-Purelib: true
Tag: py2-none-any
Tag: py3-none-any

Original file line number Diff line number Diff line change
@@ -0,0 +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"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cachetools
Loading

0 comments on commit ed7f61a

Please sign in to comment.