mirror of
https://github.com/KevinMidboe/Node-Com-Handler.git
synced 2025-10-29 17:50:27 +00:00
Started to create a small FLASK restful api for handling requests
This commit is contained in:
1
v1/flask/lib/python3.4/__future__.py
Symbolic link
1
v1/flask/lib/python3.4/__future__.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/__future__.py
|
||||
BIN
v1/flask/lib/python3.4/__pycache__/__future__.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/__future__.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/_bootlocale.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/_bootlocale.cpython-34.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/_weakrefset.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/_weakrefset.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/abc.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/abc.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/base64.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/base64.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/bisect.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/bisect.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/codecs.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/codecs.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/copy.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/copy.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/copyreg.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/copyreg.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/fnmatch.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/fnmatch.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/functools.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/functools.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/genericpath.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/genericpath.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/hashlib.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/hashlib.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/heapq.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/heapq.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/hmac.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/hmac.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/imp.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/imp.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/io.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/io.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/keyword.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/keyword.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/linecache.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/linecache.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/locale.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/locale.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/operator.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/operator.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/os.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/os.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/posixpath.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/posixpath.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/random.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/random.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/re.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/re.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/reprlib.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/reprlib.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/shutil.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/shutil.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/site.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/site.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/sre_compile.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/sre_compile.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/sre_constants.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/sre_constants.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/sre_parse.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/sre_parse.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/stat.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/stat.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/struct.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/struct.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/tarfile.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/tarfile.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/tempfile.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/tempfile.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/token.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/token.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/tokenize.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/tokenize.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/types.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/types.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/warnings.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/warnings.cpython-34.pyc
Normal file
Binary file not shown.
BIN
v1/flask/lib/python3.4/__pycache__/weakref.cpython-34.pyc
Normal file
BIN
v1/flask/lib/python3.4/__pycache__/weakref.cpython-34.pyc
Normal file
Binary file not shown.
1
v1/flask/lib/python3.4/_bootlocale.py
Symbolic link
1
v1/flask/lib/python3.4/_bootlocale.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/_bootlocale.py
|
||||
1
v1/flask/lib/python3.4/_collections_abc.py
Symbolic link
1
v1/flask/lib/python3.4/_collections_abc.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/_collections_abc.py
|
||||
1
v1/flask/lib/python3.4/_dummy_thread.py
Symbolic link
1
v1/flask/lib/python3.4/_dummy_thread.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/_dummy_thread.py
|
||||
1
v1/flask/lib/python3.4/_weakrefset.py
Symbolic link
1
v1/flask/lib/python3.4/_weakrefset.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/_weakrefset.py
|
||||
1
v1/flask/lib/python3.4/abc.py
Symbolic link
1
v1/flask/lib/python3.4/abc.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/abc.py
|
||||
1
v1/flask/lib/python3.4/base64.py
Symbolic link
1
v1/flask/lib/python3.4/base64.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/base64.py
|
||||
1
v1/flask/lib/python3.4/bisect.py
Symbolic link
1
v1/flask/lib/python3.4/bisect.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/bisect.py
|
||||
1
v1/flask/lib/python3.4/codecs.py
Symbolic link
1
v1/flask/lib/python3.4/codecs.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/codecs.py
|
||||
1
v1/flask/lib/python3.4/collections
Symbolic link
1
v1/flask/lib/python3.4/collections
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/collections
|
||||
1
v1/flask/lib/python3.4/config-3.4m
Symbolic link
1
v1/flask/lib/python3.4/config-3.4m
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/config-3.4m
|
||||
1
v1/flask/lib/python3.4/copy.py
Symbolic link
1
v1/flask/lib/python3.4/copy.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/copy.py
|
||||
1
v1/flask/lib/python3.4/copyreg.py
Symbolic link
1
v1/flask/lib/python3.4/copyreg.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/copyreg.py
|
||||
101
v1/flask/lib/python3.4/distutils/__init__.py
Normal file
101
v1/flask/lib/python3.4/distutils/__init__.py
Normal file
@@ -0,0 +1,101 @@
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
import imp
|
||||
import opcode # opcode is not a virtualenv module, so we can use it to find the stdlib
|
||||
# Important! To work on pypy, this must be a module that resides in the
|
||||
# lib-python/modified-x.y.z directory
|
||||
|
||||
dirname = os.path.dirname
|
||||
|
||||
distutils_path = os.path.join(os.path.dirname(opcode.__file__), 'distutils')
|
||||
if os.path.normpath(distutils_path) == os.path.dirname(os.path.normpath(__file__)):
|
||||
warnings.warn(
|
||||
"The virtualenv distutils package at %s appears to be in the same location as the system distutils?")
|
||||
else:
|
||||
__path__.insert(0, distutils_path)
|
||||
real_distutils = imp.load_module("_virtualenv_distutils", None, distutils_path, ('', '', imp.PKG_DIRECTORY))
|
||||
# Copy the relevant attributes
|
||||
try:
|
||||
__revision__ = real_distutils.__revision__
|
||||
except AttributeError:
|
||||
pass
|
||||
__version__ = real_distutils.__version__
|
||||
|
||||
from distutils import dist, sysconfig
|
||||
|
||||
try:
|
||||
basestring
|
||||
except NameError:
|
||||
basestring = str
|
||||
|
||||
## patch build_ext (distutils doesn't know how to get the libs directory
|
||||
## path on windows - it hardcodes the paths around the patched sys.prefix)
|
||||
|
||||
if sys.platform == 'win32':
|
||||
from distutils.command.build_ext import build_ext as old_build_ext
|
||||
class build_ext(old_build_ext):
|
||||
def finalize_options (self):
|
||||
if self.library_dirs is None:
|
||||
self.library_dirs = []
|
||||
elif isinstance(self.library_dirs, basestring):
|
||||
self.library_dirs = self.library_dirs.split(os.pathsep)
|
||||
|
||||
self.library_dirs.insert(0, os.path.join(sys.real_prefix, "Libs"))
|
||||
old_build_ext.finalize_options(self)
|
||||
|
||||
from distutils.command import build_ext as build_ext_module
|
||||
build_ext_module.build_ext = build_ext
|
||||
|
||||
## distutils.dist patches:
|
||||
|
||||
old_find_config_files = dist.Distribution.find_config_files
|
||||
def find_config_files(self):
|
||||
found = old_find_config_files(self)
|
||||
system_distutils = os.path.join(distutils_path, 'distutils.cfg')
|
||||
#if os.path.exists(system_distutils):
|
||||
# found.insert(0, system_distutils)
|
||||
# What to call the per-user config file
|
||||
if os.name == 'posix':
|
||||
user_filename = ".pydistutils.cfg"
|
||||
else:
|
||||
user_filename = "pydistutils.cfg"
|
||||
user_filename = os.path.join(sys.prefix, user_filename)
|
||||
if os.path.isfile(user_filename):
|
||||
for item in list(found):
|
||||
if item.endswith('pydistutils.cfg'):
|
||||
found.remove(item)
|
||||
found.append(user_filename)
|
||||
return found
|
||||
dist.Distribution.find_config_files = find_config_files
|
||||
|
||||
## distutils.sysconfig patches:
|
||||
|
||||
old_get_python_inc = sysconfig.get_python_inc
|
||||
def sysconfig_get_python_inc(plat_specific=0, prefix=None):
|
||||
if prefix is None:
|
||||
prefix = sys.real_prefix
|
||||
return old_get_python_inc(plat_specific, prefix)
|
||||
sysconfig_get_python_inc.__doc__ = old_get_python_inc.__doc__
|
||||
sysconfig.get_python_inc = sysconfig_get_python_inc
|
||||
|
||||
old_get_python_lib = sysconfig.get_python_lib
|
||||
def sysconfig_get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
|
||||
if standard_lib and prefix is None:
|
||||
prefix = sys.real_prefix
|
||||
return old_get_python_lib(plat_specific, standard_lib, prefix)
|
||||
sysconfig_get_python_lib.__doc__ = old_get_python_lib.__doc__
|
||||
sysconfig.get_python_lib = sysconfig_get_python_lib
|
||||
|
||||
old_get_config_vars = sysconfig.get_config_vars
|
||||
def sysconfig_get_config_vars(*args):
|
||||
real_vars = old_get_config_vars(*args)
|
||||
if sys.platform == 'win32':
|
||||
lib_dir = os.path.join(sys.real_prefix, "libs")
|
||||
if isinstance(real_vars, dict) and 'LIBDIR' not in real_vars:
|
||||
real_vars['LIBDIR'] = lib_dir # asked for all
|
||||
elif isinstance(real_vars, list) and 'LIBDIR' in args:
|
||||
real_vars = real_vars + [lib_dir] # asked for list
|
||||
return real_vars
|
||||
sysconfig_get_config_vars.__doc__ = old_get_config_vars.__doc__
|
||||
sysconfig.get_config_vars = sysconfig_get_config_vars
|
||||
Binary file not shown.
6
v1/flask/lib/python3.4/distutils/distutils.cfg
Normal file
6
v1/flask/lib/python3.4/distutils/distutils.cfg
Normal file
@@ -0,0 +1,6 @@
|
||||
# This is a config file local to this virtualenv installation
|
||||
# You may include options that will be used by all distutils commands,
|
||||
# and by easy_install. For instance:
|
||||
#
|
||||
# [easy_install]
|
||||
# find_links = http://mylocalsite
|
||||
1
v1/flask/lib/python3.4/encodings
Symbolic link
1
v1/flask/lib/python3.4/encodings
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/encodings
|
||||
1
v1/flask/lib/python3.4/fnmatch.py
Symbolic link
1
v1/flask/lib/python3.4/fnmatch.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/fnmatch.py
|
||||
1
v1/flask/lib/python3.4/functools.py
Symbolic link
1
v1/flask/lib/python3.4/functools.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/functools.py
|
||||
1
v1/flask/lib/python3.4/genericpath.py
Symbolic link
1
v1/flask/lib/python3.4/genericpath.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/genericpath.py
|
||||
1
v1/flask/lib/python3.4/hashlib.py
Symbolic link
1
v1/flask/lib/python3.4/hashlib.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/hashlib.py
|
||||
1
v1/flask/lib/python3.4/heapq.py
Symbolic link
1
v1/flask/lib/python3.4/heapq.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/heapq.py
|
||||
1
v1/flask/lib/python3.4/hmac.py
Symbolic link
1
v1/flask/lib/python3.4/hmac.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/hmac.py
|
||||
1
v1/flask/lib/python3.4/imp.py
Symbolic link
1
v1/flask/lib/python3.4/imp.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/imp.py
|
||||
1
v1/flask/lib/python3.4/importlib
Symbolic link
1
v1/flask/lib/python3.4/importlib
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/importlib
|
||||
1
v1/flask/lib/python3.4/io.py
Symbolic link
1
v1/flask/lib/python3.4/io.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/io.py
|
||||
1
v1/flask/lib/python3.4/keyword.py
Symbolic link
1
v1/flask/lib/python3.4/keyword.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/keyword.py
|
||||
1
v1/flask/lib/python3.4/lib-dynload
Symbolic link
1
v1/flask/lib/python3.4/lib-dynload
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/lib-dynload
|
||||
1
v1/flask/lib/python3.4/linecache.py
Symbolic link
1
v1/flask/lib/python3.4/linecache.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/linecache.py
|
||||
1
v1/flask/lib/python3.4/locale.py
Symbolic link
1
v1/flask/lib/python3.4/locale.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/locale.py
|
||||
0
v1/flask/lib/python3.4/no-global-site-packages.txt
Normal file
0
v1/flask/lib/python3.4/no-global-site-packages.txt
Normal file
1
v1/flask/lib/python3.4/ntpath.py
Symbolic link
1
v1/flask/lib/python3.4/ntpath.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ntpath.py
|
||||
1
v1/flask/lib/python3.4/operator.py
Symbolic link
1
v1/flask/lib/python3.4/operator.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/operator.py
|
||||
1
v1/flask/lib/python3.4/orig-prefix.txt
Normal file
1
v1/flask/lib/python3.4/orig-prefix.txt
Normal file
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4
|
||||
1
v1/flask/lib/python3.4/os.py
Symbolic link
1
v1/flask/lib/python3.4/os.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/os.py
|
||||
1
v1/flask/lib/python3.4/plat-darwin
Symbolic link
1
v1/flask/lib/python3.4/plat-darwin
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/plat-darwin
|
||||
1
v1/flask/lib/python3.4/posixpath.py
Symbolic link
1
v1/flask/lib/python3.4/posixpath.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/posixpath.py
|
||||
1
v1/flask/lib/python3.4/random.py
Symbolic link
1
v1/flask/lib/python3.4/random.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/random.py
|
||||
1
v1/flask/lib/python3.4/re.py
Symbolic link
1
v1/flask/lib/python3.4/re.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/re.py
|
||||
1
v1/flask/lib/python3.4/reprlib.py
Symbolic link
1
v1/flask/lib/python3.4/reprlib.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/reprlib.py
|
||||
1
v1/flask/lib/python3.4/rlcompleter.py
Symbolic link
1
v1/flask/lib/python3.4/rlcompleter.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/rlcompleter.py
|
||||
1
v1/flask/lib/python3.4/shutil.py
Symbolic link
1
v1/flask/lib/python3.4/shutil.py
Symbolic link
@@ -0,0 +1 @@
|
||||
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/shutil.py
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,210 @@
|
||||
.. image:: https://secure.travis-ci.org/ActiveState/appdirs.png
|
||||
:target: http://travis-ci.org/ActiveState/appdirs
|
||||
|
||||
the problem
|
||||
===========
|
||||
|
||||
What directory should your app use for storing user data? If running on Mac OS X, you
|
||||
should use::
|
||||
|
||||
~/Library/Application Support/<AppName>
|
||||
|
||||
If on Windows (at least English Win XP) that should be::
|
||||
|
||||
C:\Documents and Settings\<User>\Application Data\Local Settings\<AppAuthor>\<AppName>
|
||||
|
||||
or possibly::
|
||||
|
||||
C:\Documents and Settings\<User>\Application Data\<AppAuthor>\<AppName>
|
||||
|
||||
for `roaming profiles <http://bit.ly/9yl3b6>`_ but that is another story.
|
||||
|
||||
On Linux (and other Unices) the dir, according to the `XDG
|
||||
spec <http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_, is::
|
||||
|
||||
~/.local/share/<AppName>
|
||||
|
||||
|
||||
``appdirs`` to the rescue
|
||||
=========================
|
||||
|
||||
This kind of thing is what the ``appdirs`` module is for. ``appdirs`` will
|
||||
help you choose an appropriate:
|
||||
|
||||
- user data dir (``user_data_dir``)
|
||||
- user config dir (``user_config_dir``)
|
||||
- user cache dir (``user_cache_dir``)
|
||||
- site data dir (``site_data_dir``)
|
||||
- site config dir (``site_config_dir``)
|
||||
- user log dir (``user_log_dir``)
|
||||
|
||||
and also:
|
||||
|
||||
- is a single module so other Python packages can include their own private copy
|
||||
- is slightly opinionated on the directory names used. Look for "OPINION" in
|
||||
documentation and code for when an opinion is being applied.
|
||||
|
||||
|
||||
some example output
|
||||
===================
|
||||
|
||||
On Mac OS X::
|
||||
|
||||
>>> from appdirs import *
|
||||
>>> appname = "SuperApp"
|
||||
>>> appauthor = "Acme"
|
||||
>>> user_data_dir(appname, appauthor)
|
||||
'/Users/trentm/Library/Application Support/SuperApp'
|
||||
>>> site_data_dir(appname, appauthor)
|
||||
'/Library/Application Support/SuperApp'
|
||||
>>> user_cache_dir(appname, appauthor)
|
||||
'/Users/trentm/Library/Caches/SuperApp'
|
||||
>>> user_log_dir(appname, appauthor)
|
||||
'/Users/trentm/Library/Logs/SuperApp'
|
||||
|
||||
On Windows 7::
|
||||
|
||||
>>> from appdirs import *
|
||||
>>> appname = "SuperApp"
|
||||
>>> appauthor = "Acme"
|
||||
>>> user_data_dir(appname, appauthor)
|
||||
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp'
|
||||
>>> user_data_dir(appname, appauthor, roaming=True)
|
||||
'C:\\Users\\trentm\\AppData\\Roaming\\Acme\\SuperApp'
|
||||
>>> user_cache_dir(appname, appauthor)
|
||||
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp\\Cache'
|
||||
>>> user_log_dir(appname, appauthor)
|
||||
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp\\Logs'
|
||||
|
||||
On Linux::
|
||||
|
||||
>>> from appdirs import *
|
||||
>>> appname = "SuperApp"
|
||||
>>> appauthor = "Acme"
|
||||
>>> user_data_dir(appname, appauthor)
|
||||
'/home/trentm/.local/share/SuperApp
|
||||
>>> site_data_dir(appname, appauthor)
|
||||
'/usr/local/share/SuperApp'
|
||||
>>> site_data_dir(appname, appauthor, multipath=True)
|
||||
'/usr/local/share/SuperApp:/usr/share/SuperApp'
|
||||
>>> user_cache_dir(appname, appauthor)
|
||||
'/home/trentm/.cache/SuperApp'
|
||||
>>> user_log_dir(appname, appauthor)
|
||||
'/home/trentm/.cache/SuperApp/log'
|
||||
>>> user_config_dir(appname)
|
||||
'/home/trentm/.config/SuperApp'
|
||||
>>> site_config_dir(appname)
|
||||
'/etc/xdg/SuperApp'
|
||||
>>> os.environ['XDG_CONFIG_DIRS'] = '/etc:/usr/local/etc'
|
||||
>>> site_config_dir(appname, multipath=True)
|
||||
'/etc/SuperApp:/usr/local/etc/SuperApp'
|
||||
|
||||
|
||||
``AppDirs`` for convenience
|
||||
===========================
|
||||
|
||||
::
|
||||
|
||||
>>> from appdirs import AppDirs
|
||||
>>> dirs = AppDirs("SuperApp", "Acme")
|
||||
>>> dirs.user_data_dir
|
||||
'/Users/trentm/Library/Application Support/SuperApp'
|
||||
>>> dirs.site_data_dir
|
||||
'/Library/Application Support/SuperApp'
|
||||
>>> dirs.user_cache_dir
|
||||
'/Users/trentm/Library/Caches/SuperApp'
|
||||
>>> dirs.user_log_dir
|
||||
'/Users/trentm/Library/Logs/SuperApp'
|
||||
|
||||
|
||||
|
||||
Per-version isolation
|
||||
=====================
|
||||
|
||||
If you have multiple versions of your app in use that you want to be
|
||||
able to run side-by-side, then you may want version-isolation for these
|
||||
dirs::
|
||||
|
||||
>>> from appdirs import AppDirs
|
||||
>>> dirs = AppDirs("SuperApp", "Acme", version="1.0")
|
||||
>>> dirs.user_data_dir
|
||||
'/Users/trentm/Library/Application Support/SuperApp/1.0'
|
||||
>>> dirs.site_data_dir
|
||||
'/Library/Application Support/SuperApp/1.0'
|
||||
>>> dirs.user_cache_dir
|
||||
'/Users/trentm/Library/Caches/SuperApp/1.0'
|
||||
>>> dirs.user_log_dir
|
||||
'/Users/trentm/Library/Logs/SuperApp/1.0'
|
||||
|
||||
|
||||
|
||||
appdirs Changelog
|
||||
=================
|
||||
|
||||
appdirs 1.4.0
|
||||
-------------
|
||||
- [PR #42] AppAuthor is now optional on Windows
|
||||
- [issue 41] Support Jython on Windows, Mac, and Unix-like platforms. Windows
|
||||
support requires `JNA <https://github.com/twall/jna>`_.
|
||||
- [PR #44] Fix incorrect behaviour of the site_config_dir method
|
||||
|
||||
appdirs 1.3.0
|
||||
-------------
|
||||
- [Unix, issue 16] Conform to XDG standard, instead of breaking it for
|
||||
everybody
|
||||
- [Unix] Removes gratuitous case mangling of the case, since \*nix-es are
|
||||
usually case sensitive, so mangling is not wise
|
||||
- [Unix] Fixes the uterly wrong behaviour in ``site_data_dir``, return result
|
||||
based on XDG_DATA_DIRS and make room for respecting the standard which
|
||||
specifies XDG_DATA_DIRS is a multiple-value variable
|
||||
- [Issue 6] Add ``*_config_dir`` which are distinct on nix-es, according to
|
||||
XDG specs; on Windows and Mac return the corresponding ``*_data_dir``
|
||||
|
||||
appdirs 1.2.0
|
||||
-------------
|
||||
|
||||
- [Unix] Put ``user_log_dir`` under the *cache* dir on Unix. Seems to be more
|
||||
typical.
|
||||
- [issue 9] Make ``unicode`` work on py3k.
|
||||
|
||||
appdirs 1.1.0
|
||||
-------------
|
||||
|
||||
- [issue 4] Add ``AppDirs.user_log_dir``.
|
||||
- [Unix, issue 2, issue 7] appdirs now conforms to `XDG base directory spec
|
||||
<http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_.
|
||||
- [Mac, issue 5] Fix ``site_data_dir()`` on Mac.
|
||||
- [Mac] Drop use of 'Carbon' module in favour of hardcoded paths; supports
|
||||
Python3 now.
|
||||
- [Windows] Append "Cache" to ``user_cache_dir`` on Windows by default. Use
|
||||
``opinion=False`` option to disable this.
|
||||
- Add ``appdirs.AppDirs`` convenience class. Usage:
|
||||
|
||||
>>> dirs = AppDirs("SuperApp", "Acme", version="1.0")
|
||||
>>> dirs.user_data_dir
|
||||
'/Users/trentm/Library/Application Support/SuperApp/1.0'
|
||||
|
||||
- [Windows] Cherry-pick Komodo's change to downgrade paths to the Windows short
|
||||
paths if there are high bit chars.
|
||||
- [Linux] Change default ``user_cache_dir()`` on Linux to be singular, e.g.
|
||||
"~/.superapp/cache".
|
||||
- [Windows] Add ``roaming`` option to ``user_data_dir()`` (for use on Windows only)
|
||||
and change the default ``user_data_dir`` behaviour to use a *non*-roaming
|
||||
profile dir (``CSIDL_LOCAL_APPDATA`` instead of ``CSIDL_APPDATA``). Why? Because
|
||||
a large roaming profile can cause login speed issues. The "only syncs on
|
||||
logout" behaviour can cause surprises in appdata info.
|
||||
|
||||
|
||||
appdirs 1.0.1 (never released)
|
||||
------------------------------
|
||||
|
||||
Started this changelog 27 July 2010. Before that this module originated in the
|
||||
`Komodo <http://www.activestate.com/komodo>`_ product as ``applib.py`` and then
|
||||
as `applib/location.py
|
||||
<http://github.com/ActiveState/applib/blob/master/applib/location.py>`_ (used by
|
||||
`PyPM <http://code.activestate.com/pypm/>`_ in `ActivePython
|
||||
<http://www.activestate.com/activepython>`_). This is basically a fork of
|
||||
applib.py 1.0.1 and applib/location.py 1.0.1.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,234 @@
|
||||
Metadata-Version: 2.0
|
||||
Name: appdirs
|
||||
Version: 1.4.0
|
||||
Summary: A small Python module for determining appropriate " + "platform-specific dirs, e.g. a "user data dir".
|
||||
Home-page: http://github.com/ActiveState/appdirs
|
||||
Author: Trent Mick; Sridhar Ratnakumar
|
||||
Author-email: trentm@gmail.com; github@srid.name
|
||||
License: MIT
|
||||
Keywords: application directory log cache user
|
||||
Platform: UNKNOWN
|
||||
Classifier: Development Status :: 4 - Beta
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python :: 2
|
||||
Classifier: Programming Language :: Python :: 2.4
|
||||
Classifier: Programming Language :: Python :: 2.5
|
||||
Classifier: Programming Language :: Python :: 2.6
|
||||
Classifier: Programming Language :: Python :: 2.7
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.1
|
||||
Classifier: Programming Language :: Python :: 3.2
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
|
||||
.. image:: https://secure.travis-ci.org/ActiveState/appdirs.png
|
||||
:target: http://travis-ci.org/ActiveState/appdirs
|
||||
|
||||
the problem
|
||||
===========
|
||||
|
||||
What directory should your app use for storing user data? If running on Mac OS X, you
|
||||
should use::
|
||||
|
||||
~/Library/Application Support/<AppName>
|
||||
|
||||
If on Windows (at least English Win XP) that should be::
|
||||
|
||||
C:\Documents and Settings\<User>\Application Data\Local Settings\<AppAuthor>\<AppName>
|
||||
|
||||
or possibly::
|
||||
|
||||
C:\Documents and Settings\<User>\Application Data\<AppAuthor>\<AppName>
|
||||
|
||||
for `roaming profiles <http://bit.ly/9yl3b6>`_ but that is another story.
|
||||
|
||||
On Linux (and other Unices) the dir, according to the `XDG
|
||||
spec <http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_, is::
|
||||
|
||||
~/.local/share/<AppName>
|
||||
|
||||
|
||||
``appdirs`` to the rescue
|
||||
=========================
|
||||
|
||||
This kind of thing is what the ``appdirs`` module is for. ``appdirs`` will
|
||||
help you choose an appropriate:
|
||||
|
||||
- user data dir (``user_data_dir``)
|
||||
- user config dir (``user_config_dir``)
|
||||
- user cache dir (``user_cache_dir``)
|
||||
- site data dir (``site_data_dir``)
|
||||
- site config dir (``site_config_dir``)
|
||||
- user log dir (``user_log_dir``)
|
||||
|
||||
and also:
|
||||
|
||||
- is a single module so other Python packages can include their own private copy
|
||||
- is slightly opinionated on the directory names used. Look for "OPINION" in
|
||||
documentation and code for when an opinion is being applied.
|
||||
|
||||
|
||||
some example output
|
||||
===================
|
||||
|
||||
On Mac OS X::
|
||||
|
||||
>>> from appdirs import *
|
||||
>>> appname = "SuperApp"
|
||||
>>> appauthor = "Acme"
|
||||
>>> user_data_dir(appname, appauthor)
|
||||
'/Users/trentm/Library/Application Support/SuperApp'
|
||||
>>> site_data_dir(appname, appauthor)
|
||||
'/Library/Application Support/SuperApp'
|
||||
>>> user_cache_dir(appname, appauthor)
|
||||
'/Users/trentm/Library/Caches/SuperApp'
|
||||
>>> user_log_dir(appname, appauthor)
|
||||
'/Users/trentm/Library/Logs/SuperApp'
|
||||
|
||||
On Windows 7::
|
||||
|
||||
>>> from appdirs import *
|
||||
>>> appname = "SuperApp"
|
||||
>>> appauthor = "Acme"
|
||||
>>> user_data_dir(appname, appauthor)
|
||||
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp'
|
||||
>>> user_data_dir(appname, appauthor, roaming=True)
|
||||
'C:\\Users\\trentm\\AppData\\Roaming\\Acme\\SuperApp'
|
||||
>>> user_cache_dir(appname, appauthor)
|
||||
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp\\Cache'
|
||||
>>> user_log_dir(appname, appauthor)
|
||||
'C:\\Users\\trentm\\AppData\\Local\\Acme\\SuperApp\\Logs'
|
||||
|
||||
On Linux::
|
||||
|
||||
>>> from appdirs import *
|
||||
>>> appname = "SuperApp"
|
||||
>>> appauthor = "Acme"
|
||||
>>> user_data_dir(appname, appauthor)
|
||||
'/home/trentm/.local/share/SuperApp
|
||||
>>> site_data_dir(appname, appauthor)
|
||||
'/usr/local/share/SuperApp'
|
||||
>>> site_data_dir(appname, appauthor, multipath=True)
|
||||
'/usr/local/share/SuperApp:/usr/share/SuperApp'
|
||||
>>> user_cache_dir(appname, appauthor)
|
||||
'/home/trentm/.cache/SuperApp'
|
||||
>>> user_log_dir(appname, appauthor)
|
||||
'/home/trentm/.cache/SuperApp/log'
|
||||
>>> user_config_dir(appname)
|
||||
'/home/trentm/.config/SuperApp'
|
||||
>>> site_config_dir(appname)
|
||||
'/etc/xdg/SuperApp'
|
||||
>>> os.environ['XDG_CONFIG_DIRS'] = '/etc:/usr/local/etc'
|
||||
>>> site_config_dir(appname, multipath=True)
|
||||
'/etc/SuperApp:/usr/local/etc/SuperApp'
|
||||
|
||||
|
||||
``AppDirs`` for convenience
|
||||
===========================
|
||||
|
||||
::
|
||||
|
||||
>>> from appdirs import AppDirs
|
||||
>>> dirs = AppDirs("SuperApp", "Acme")
|
||||
>>> dirs.user_data_dir
|
||||
'/Users/trentm/Library/Application Support/SuperApp'
|
||||
>>> dirs.site_data_dir
|
||||
'/Library/Application Support/SuperApp'
|
||||
>>> dirs.user_cache_dir
|
||||
'/Users/trentm/Library/Caches/SuperApp'
|
||||
>>> dirs.user_log_dir
|
||||
'/Users/trentm/Library/Logs/SuperApp'
|
||||
|
||||
|
||||
|
||||
Per-version isolation
|
||||
=====================
|
||||
|
||||
If you have multiple versions of your app in use that you want to be
|
||||
able to run side-by-side, then you may want version-isolation for these
|
||||
dirs::
|
||||
|
||||
>>> from appdirs import AppDirs
|
||||
>>> dirs = AppDirs("SuperApp", "Acme", version="1.0")
|
||||
>>> dirs.user_data_dir
|
||||
'/Users/trentm/Library/Application Support/SuperApp/1.0'
|
||||
>>> dirs.site_data_dir
|
||||
'/Library/Application Support/SuperApp/1.0'
|
||||
>>> dirs.user_cache_dir
|
||||
'/Users/trentm/Library/Caches/SuperApp/1.0'
|
||||
>>> dirs.user_log_dir
|
||||
'/Users/trentm/Library/Logs/SuperApp/1.0'
|
||||
|
||||
|
||||
|
||||
appdirs Changelog
|
||||
=================
|
||||
|
||||
appdirs 1.4.0
|
||||
-------------
|
||||
- [PR #42] AppAuthor is now optional on Windows
|
||||
- [issue 41] Support Jython on Windows, Mac, and Unix-like platforms. Windows
|
||||
support requires `JNA <https://github.com/twall/jna>`_.
|
||||
- [PR #44] Fix incorrect behaviour of the site_config_dir method
|
||||
|
||||
appdirs 1.3.0
|
||||
-------------
|
||||
- [Unix, issue 16] Conform to XDG standard, instead of breaking it for
|
||||
everybody
|
||||
- [Unix] Removes gratuitous case mangling of the case, since \*nix-es are
|
||||
usually case sensitive, so mangling is not wise
|
||||
- [Unix] Fixes the uterly wrong behaviour in ``site_data_dir``, return result
|
||||
based on XDG_DATA_DIRS and make room for respecting the standard which
|
||||
specifies XDG_DATA_DIRS is a multiple-value variable
|
||||
- [Issue 6] Add ``*_config_dir`` which are distinct on nix-es, according to
|
||||
XDG specs; on Windows and Mac return the corresponding ``*_data_dir``
|
||||
|
||||
appdirs 1.2.0
|
||||
-------------
|
||||
|
||||
- [Unix] Put ``user_log_dir`` under the *cache* dir on Unix. Seems to be more
|
||||
typical.
|
||||
- [issue 9] Make ``unicode`` work on py3k.
|
||||
|
||||
appdirs 1.1.0
|
||||
-------------
|
||||
|
||||
- [issue 4] Add ``AppDirs.user_log_dir``.
|
||||
- [Unix, issue 2, issue 7] appdirs now conforms to `XDG base directory spec
|
||||
<http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_.
|
||||
- [Mac, issue 5] Fix ``site_data_dir()`` on Mac.
|
||||
- [Mac] Drop use of 'Carbon' module in favour of hardcoded paths; supports
|
||||
Python3 now.
|
||||
- [Windows] Append "Cache" to ``user_cache_dir`` on Windows by default. Use
|
||||
``opinion=False`` option to disable this.
|
||||
- Add ``appdirs.AppDirs`` convenience class. Usage:
|
||||
|
||||
>>> dirs = AppDirs("SuperApp", "Acme", version="1.0")
|
||||
>>> dirs.user_data_dir
|
||||
'/Users/trentm/Library/Application Support/SuperApp/1.0'
|
||||
|
||||
- [Windows] Cherry-pick Komodo's change to downgrade paths to the Windows short
|
||||
paths if there are high bit chars.
|
||||
- [Linux] Change default ``user_cache_dir()`` on Linux to be singular, e.g.
|
||||
"~/.superapp/cache".
|
||||
- [Windows] Add ``roaming`` option to ``user_data_dir()`` (for use on Windows only)
|
||||
and change the default ``user_data_dir`` behaviour to use a *non*-roaming
|
||||
profile dir (``CSIDL_LOCAL_APPDATA`` instead of ``CSIDL_APPDATA``). Why? Because
|
||||
a large roaming profile can cause login speed issues. The "only syncs on
|
||||
logout" behaviour can cause surprises in appdata info.
|
||||
|
||||
|
||||
appdirs 1.0.1 (never released)
|
||||
------------------------------
|
||||
|
||||
Started this changelog 27 July 2010. Before that this module originated in the
|
||||
`Komodo <http://www.activestate.com/komodo>`_ product as ``applib.py`` and then
|
||||
as `applib/location.py
|
||||
<http://github.com/ActiveState/applib/blob/master/applib/location.py>`_ (used by
|
||||
`PyPM <http://code.activestate.com/pypm/>`_ in `ActivePython
|
||||
<http://www.activestate.com/activepython>`_). This is basically a fork of
|
||||
applib.py 1.0.1 and applib/location.py 1.0.1.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
appdirs.py,sha256=tgGaL0m4Jo2VeuGfoOOifLv7a7oUEJu2n1vRkqoPw-0,22374
|
||||
appdirs-1.4.0.dist-info/RECORD,,
|
||||
appdirs-1.4.0.dist-info/metadata.json,sha256=9v8PVgtGcgmEnC1I1nf181jkLFH7OjWC5emXIH4dUFQ,1187
|
||||
appdirs-1.4.0.dist-info/WHEEL,sha256=AvR0WeTpDaxT645bl5FQxUK6NPsTls2ttpcGJg3j1Xg,110
|
||||
appdirs-1.4.0.dist-info/DESCRIPTION.rst,sha256=h_nR9WGhhtTzdRNRKLvC8Z2JIeTkfpltCmc-GEwCqcY,7136
|
||||
appdirs-1.4.0.dist-info/METADATA,sha256=zvaKARfklBbhOJU-vqtADxSIUw5WTdmtdZr5IEysToY,8177
|
||||
appdirs-1.4.0.dist-info/top_level.txt,sha256=nKncE8CUqZERJ6VuQWL4_bkunSPDNfn7KZqb4Tr5YEM,8
|
||||
appdirs-1.4.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
__pycache__/appdirs.cpython-34.pyc,,
|
||||
@@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.24.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"license": "MIT", "name": "appdirs", "metadata_version": "2.0", "generator": "bdist_wheel (0.24.0)", "test_requires": [{"requires": []}], "summary": "A small Python module for determining appropriate \" + \"platform-specific dirs, e.g. a \"user data dir\".", "version": "1.4.0", "extensions": {"python.details": {"project_urls": {"Home": "http://github.com/ActiveState/appdirs"}, "document_names": {"description": "DESCRIPTION.rst"}, "contacts": [{"role": "author", "email": "trentm@gmail.com; github@srid.name", "name": "Trent Mick; Sridhar Ratnakumar"}]}}, "keywords": ["application", "directory", "log", "cache", "user"], "classifiers": ["Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.4", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Topic :: Software Development :: Libraries :: Python Modules"]}
|
||||
@@ -0,0 +1 @@
|
||||
appdirs
|
||||
552
v1/flask/lib/python3.4/site-packages/appdirs.py
Normal file
552
v1/flask/lib/python3.4/site-packages/appdirs.py
Normal file
@@ -0,0 +1,552 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (c) 2005-2010 ActiveState Software Inc.
|
||||
# Copyright (c) 2013 Eddy Petrișor
|
||||
|
||||
"""Utilities for determining application-specific dirs.
|
||||
|
||||
See <http://github.com/ActiveState/appdirs> for details and usage.
|
||||
"""
|
||||
# Dev Notes:
|
||||
# - MSDN on where to store app data files:
|
||||
# http://support.microsoft.com/default.aspx?scid=kb;en-us;310294#XSLTH3194121123120121120120
|
||||
# - Mac OS X: http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSystem/index.html
|
||||
# - XDG spec for Un*x: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
||||
|
||||
__version_info__ = (1, 4, 0)
|
||||
__version__ = '.'.join(map(str, __version_info__))
|
||||
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
PY3 = sys.version_info[0] == 3
|
||||
|
||||
if PY3:
|
||||
unicode = str
|
||||
|
||||
if sys.platform.startswith('java'):
|
||||
import platform
|
||||
os_name = platform.java_ver()[3][0]
|
||||
if os_name.startswith('Windows'): # "Windows XP", "Windows 7", etc.
|
||||
system = 'win32'
|
||||
elif os_name.startswith('Mac'): # "Mac OS X", etc.
|
||||
system = 'darwin'
|
||||
else: # "Linux", "SunOS", "FreeBSD", etc.
|
||||
# Setting this to "linux2" is not ideal, but only Windows or Mac
|
||||
# are actually checked for and the rest of the module expects
|
||||
# *sys.platform* style strings.
|
||||
system = 'linux2'
|
||||
else:
|
||||
system = sys.platform
|
||||
|
||||
|
||||
|
||||
def user_data_dir(appname=None, appauthor=None, version=None, roaming=False):
|
||||
r"""Return full path to the user-specific data dir for this application.
|
||||
|
||||
"appname" is the name of application.
|
||||
If None, just the system directory is returned.
|
||||
"appauthor" (only used on Windows) is the name of the
|
||||
appauthor or distributing body for this application. Typically
|
||||
it is the owning company name. This falls back to appname. You may
|
||||
pass False to disable it.
|
||||
"version" is an optional version path element to append to the
|
||||
path. You might want to use this if you want multiple versions
|
||||
of your app to be able to run independently. If used, this
|
||||
would typically be "<major>.<minor>".
|
||||
Only applied when appname is present.
|
||||
"roaming" (boolean, default False) can be set True to use the Windows
|
||||
roaming appdata directory. That means that for users on a Windows
|
||||
network setup for roaming profiles, this user data will be
|
||||
sync'd on login. See
|
||||
<http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx>
|
||||
for a discussion of issues.
|
||||
|
||||
Typical user data directories are:
|
||||
Mac OS X: ~/Library/Application Support/<AppName>
|
||||
Unix: ~/.local/share/<AppName> # or in $XDG_DATA_HOME, if defined
|
||||
Win XP (not roaming): C:\Documents and Settings\<username>\Application Data\<AppAuthor>\<AppName>
|
||||
Win XP (roaming): C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName>
|
||||
Win 7 (not roaming): C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName>
|
||||
Win 7 (roaming): C:\Users\<username>\AppData\Roaming\<AppAuthor>\<AppName>
|
||||
|
||||
For Unix, we follow the XDG spec and support $XDG_DATA_HOME.
|
||||
That means, by default "~/.local/share/<AppName>".
|
||||
"""
|
||||
if system == "win32":
|
||||
if appauthor is None:
|
||||
appauthor = appname
|
||||
const = roaming and "CSIDL_APPDATA" or "CSIDL_LOCAL_APPDATA"
|
||||
path = os.path.normpath(_get_win_folder(const))
|
||||
if appname:
|
||||
if appauthor is not False:
|
||||
path = os.path.join(path, appauthor, appname)
|
||||
else:
|
||||
path = os.path.join(path, appname)
|
||||
elif system == 'darwin':
|
||||
path = os.path.expanduser('~/Library/Application Support/')
|
||||
if appname:
|
||||
path = os.path.join(path, appname)
|
||||
else:
|
||||
path = os.getenv('XDG_DATA_HOME', os.path.expanduser("~/.local/share"))
|
||||
if appname:
|
||||
path = os.path.join(path, appname)
|
||||
if appname and version:
|
||||
path = os.path.join(path, version)
|
||||
return path
|
||||
|
||||
|
||||
def site_data_dir(appname=None, appauthor=None, version=None, multipath=False):
|
||||
"""Return full path to the user-shared data dir for this application.
|
||||
|
||||
"appname" is the name of application.
|
||||
If None, just the system directory is returned.
|
||||
"appauthor" (only used on Windows) is the name of the
|
||||
appauthor or distributing body for this application. Typically
|
||||
it is the owning company name. This falls back to appname. You may
|
||||
pass False to disable it.
|
||||
"version" is an optional version path element to append to the
|
||||
path. You might want to use this if you want multiple versions
|
||||
of your app to be able to run independently. If used, this
|
||||
would typically be "<major>.<minor>".
|
||||
Only applied when appname is present.
|
||||
"multipath" is an optional parameter only applicable to *nix
|
||||
which indicates that the entire list of data dirs should be
|
||||
returned. By default, the first item from XDG_DATA_DIRS is
|
||||
returned, or '/usr/local/share/<AppName>',
|
||||
if XDG_DATA_DIRS is not set
|
||||
|
||||
Typical user data directories are:
|
||||
Mac OS X: /Library/Application Support/<AppName>
|
||||
Unix: /usr/local/share/<AppName> or /usr/share/<AppName>
|
||||
Win XP: C:\Documents and Settings\All Users\Application Data\<AppAuthor>\<AppName>
|
||||
Vista: (Fail! "C:\ProgramData" is a hidden *system* directory on Vista.)
|
||||
Win 7: C:\ProgramData\<AppAuthor>\<AppName> # Hidden, but writeable on Win 7.
|
||||
|
||||
For Unix, this is using the $XDG_DATA_DIRS[0] default.
|
||||
|
||||
WARNING: Do not use this on Windows. See the Vista-Fail note above for why.
|
||||
"""
|
||||
if system == "win32":
|
||||
if appauthor is None:
|
||||
appauthor = appname
|
||||
path = os.path.normpath(_get_win_folder("CSIDL_COMMON_APPDATA"))
|
||||
if appname:
|
||||
if appauthor is not False:
|
||||
path = os.path.join(path, appauthor, appname)
|
||||
else:
|
||||
path = os.path.join(path, appname)
|
||||
elif system == 'darwin':
|
||||
path = os.path.expanduser('/Library/Application Support')
|
||||
if appname:
|
||||
path = os.path.join(path, appname)
|
||||
else:
|
||||
# XDG default for $XDG_DATA_DIRS
|
||||
# only first, if multipath is False
|
||||
path = os.getenv('XDG_DATA_DIRS',
|
||||
os.pathsep.join(['/usr/local/share', '/usr/share']))
|
||||
pathlist = [os.path.expanduser(x.rstrip(os.sep)) for x in path.split(os.pathsep)]
|
||||
if appname:
|
||||
if version:
|
||||
appname = os.path.join(appname, version)
|
||||
pathlist = [os.sep.join([x, appname]) for x in pathlist]
|
||||
|
||||
if multipath:
|
||||
path = os.pathsep.join(pathlist)
|
||||
else:
|
||||
path = pathlist[0]
|
||||
return path
|
||||
|
||||
if appname and version:
|
||||
path = os.path.join(path, version)
|
||||
return path
|
||||
|
||||
|
||||
def user_config_dir(appname=None, appauthor=None, version=None, roaming=False):
|
||||
r"""Return full path to the user-specific config dir for this application.
|
||||
|
||||
"appname" is the name of application.
|
||||
If None, just the system directory is returned.
|
||||
"appauthor" (only used on Windows) is the name of the
|
||||
appauthor or distributing body for this application. Typically
|
||||
it is the owning company name. This falls back to appname. You may
|
||||
pass False to disable it.
|
||||
"version" is an optional version path element to append to the
|
||||
path. You might want to use this if you want multiple versions
|
||||
of your app to be able to run independently. If used, this
|
||||
would typically be "<major>.<minor>".
|
||||
Only applied when appname is present.
|
||||
"roaming" (boolean, default False) can be set True to use the Windows
|
||||
roaming appdata directory. That means that for users on a Windows
|
||||
network setup for roaming profiles, this user data will be
|
||||
sync'd on login. See
|
||||
<http://technet.microsoft.com/en-us/library/cc766489(WS.10).aspx>
|
||||
for a discussion of issues.
|
||||
|
||||
Typical user data directories are:
|
||||
Mac OS X: same as user_data_dir
|
||||
Unix: ~/.config/<AppName> # or in $XDG_CONFIG_HOME, if defined
|
||||
Win *: same as user_data_dir
|
||||
|
||||
For Unix, we follow the XDG spec and support $XDG_CONFIG_HOME.
|
||||
That means, by deafult "~/.config/<AppName>".
|
||||
"""
|
||||
if system in ["win32", "darwin"]:
|
||||
path = user_data_dir(appname, appauthor, None, roaming)
|
||||
else:
|
||||
path = os.getenv('XDG_CONFIG_HOME', os.path.expanduser("~/.config"))
|
||||
if appname:
|
||||
path = os.path.join(path, appname)
|
||||
if appname and version:
|
||||
path = os.path.join(path, version)
|
||||
return path
|
||||
|
||||
|
||||
def site_config_dir(appname=None, appauthor=None, version=None, multipath=False):
|
||||
"""Return full path to the user-shared data dir for this application.
|
||||
|
||||
"appname" is the name of application.
|
||||
If None, just the system directory is returned.
|
||||
"appauthor" (only used on Windows) is the name of the
|
||||
appauthor or distributing body for this application. Typically
|
||||
it is the owning company name. This falls back to appname. You may
|
||||
pass False to disable it.
|
||||
"version" is an optional version path element to append to the
|
||||
path. You might want to use this if you want multiple versions
|
||||
of your app to be able to run independently. If used, this
|
||||
would typically be "<major>.<minor>".
|
||||
Only applied when appname is present.
|
||||
"multipath" is an optional parameter only applicable to *nix
|
||||
which indicates that the entire list of config dirs should be
|
||||
returned. By default, the first item from XDG_CONFIG_DIRS is
|
||||
returned, or '/etc/xdg/<AppName>', if XDG_CONFIG_DIRS is not set
|
||||
|
||||
Typical user data directories are:
|
||||
Mac OS X: same as site_data_dir
|
||||
Unix: /etc/xdg/<AppName> or $XDG_CONFIG_DIRS[i]/<AppName> for each value in
|
||||
$XDG_CONFIG_DIRS
|
||||
Win *: same as site_data_dir
|
||||
Vista: (Fail! "C:\ProgramData" is a hidden *system* directory on Vista.)
|
||||
|
||||
For Unix, this is using the $XDG_CONFIG_DIRS[0] default, if multipath=False
|
||||
|
||||
WARNING: Do not use this on Windows. See the Vista-Fail note above for why.
|
||||
"""
|
||||
if system in ["win32", "darwin"]:
|
||||
path = site_data_dir(appname, appauthor)
|
||||
if appname and version:
|
||||
path = os.path.join(path, version)
|
||||
else:
|
||||
# XDG default for $XDG_CONFIG_DIRS
|
||||
# only first, if multipath is False
|
||||
path = os.getenv('XDG_CONFIG_DIRS', '/etc/xdg')
|
||||
pathlist = [os.path.expanduser(x.rstrip(os.sep)) for x in path.split(os.pathsep)]
|
||||
if appname:
|
||||
if version:
|
||||
appname = os.path.join(appname, version)
|
||||
pathlist = [os.sep.join([x, appname]) for x in pathlist]
|
||||
|
||||
if multipath:
|
||||
path = os.pathsep.join(pathlist)
|
||||
else:
|
||||
path = pathlist[0]
|
||||
return path
|
||||
|
||||
|
||||
def user_cache_dir(appname=None, appauthor=None, version=None, opinion=True):
|
||||
r"""Return full path to the user-specific cache dir for this application.
|
||||
|
||||
"appname" is the name of application.
|
||||
If None, just the system directory is returned.
|
||||
"appauthor" (only used on Windows) is the name of the
|
||||
appauthor or distributing body for this application. Typically
|
||||
it is the owning company name. This falls back to appname. You may
|
||||
pass False to disable it.
|
||||
"version" is an optional version path element to append to the
|
||||
path. You might want to use this if you want multiple versions
|
||||
of your app to be able to run independently. If used, this
|
||||
would typically be "<major>.<minor>".
|
||||
Only applied when appname is present.
|
||||
"opinion" (boolean) can be False to disable the appending of
|
||||
"Cache" to the base app data dir for Windows. See
|
||||
discussion below.
|
||||
|
||||
Typical user cache directories are:
|
||||
Mac OS X: ~/Library/Caches/<AppName>
|
||||
Unix: ~/.cache/<AppName> (XDG default)
|
||||
Win XP: C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName>\Cache
|
||||
Vista: C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName>\Cache
|
||||
|
||||
On Windows the only suggestion in the MSDN docs is that local settings go in
|
||||
the `CSIDL_LOCAL_APPDATA` directory. This is identical to the non-roaming
|
||||
app data dir (the default returned by `user_data_dir` above). Apps typically
|
||||
put cache data somewhere *under* the given dir here. Some examples:
|
||||
...\Mozilla\Firefox\Profiles\<ProfileName>\Cache
|
||||
...\Acme\SuperApp\Cache\1.0
|
||||
OPINION: This function appends "Cache" to the `CSIDL_LOCAL_APPDATA` value.
|
||||
This can be disabled with the `opinion=False` option.
|
||||
"""
|
||||
if system == "win32":
|
||||
if appauthor is None:
|
||||
appauthor = appname
|
||||
path = os.path.normpath(_get_win_folder("CSIDL_LOCAL_APPDATA"))
|
||||
if appname:
|
||||
if appauthor is not False:
|
||||
path = os.path.join(path, appauthor, appname)
|
||||
else:
|
||||
path = os.path.join(path, appname)
|
||||
if opinion:
|
||||
path = os.path.join(path, "Cache")
|
||||
elif system == 'darwin':
|
||||
path = os.path.expanduser('~/Library/Caches')
|
||||
if appname:
|
||||
path = os.path.join(path, appname)
|
||||
else:
|
||||
path = os.getenv('XDG_CACHE_HOME', os.path.expanduser('~/.cache'))
|
||||
if appname:
|
||||
path = os.path.join(path, appname)
|
||||
if appname and version:
|
||||
path = os.path.join(path, version)
|
||||
return path
|
||||
|
||||
|
||||
def user_log_dir(appname=None, appauthor=None, version=None, opinion=True):
|
||||
r"""Return full path to the user-specific log dir for this application.
|
||||
|
||||
"appname" is the name of application.
|
||||
If None, just the system directory is returned.
|
||||
"appauthor" (only used on Windows) is the name of the
|
||||
appauthor or distributing body for this application. Typically
|
||||
it is the owning company name. This falls back to appname. You may
|
||||
pass False to disable it.
|
||||
"version" is an optional version path element to append to the
|
||||
path. You might want to use this if you want multiple versions
|
||||
of your app to be able to run independently. If used, this
|
||||
would typically be "<major>.<minor>".
|
||||
Only applied when appname is present.
|
||||
"opinion" (boolean) can be False to disable the appending of
|
||||
"Logs" to the base app data dir for Windows, and "log" to the
|
||||
base cache dir for Unix. See discussion below.
|
||||
|
||||
Typical user cache directories are:
|
||||
Mac OS X: ~/Library/Logs/<AppName>
|
||||
Unix: ~/.cache/<AppName>/log # or under $XDG_CACHE_HOME if defined
|
||||
Win XP: C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName>\Logs
|
||||
Vista: C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName>\Logs
|
||||
|
||||
On Windows the only suggestion in the MSDN docs is that local settings
|
||||
go in the `CSIDL_LOCAL_APPDATA` directory. (Note: I'm interested in
|
||||
examples of what some windows apps use for a logs dir.)
|
||||
|
||||
OPINION: This function appends "Logs" to the `CSIDL_LOCAL_APPDATA`
|
||||
value for Windows and appends "log" to the user cache dir for Unix.
|
||||
This can be disabled with the `opinion=False` option.
|
||||
"""
|
||||
if system == "darwin":
|
||||
path = os.path.join(
|
||||
os.path.expanduser('~/Library/Logs'),
|
||||
appname)
|
||||
elif system == "win32":
|
||||
path = user_data_dir(appname, appauthor, version)
|
||||
version = False
|
||||
if opinion:
|
||||
path = os.path.join(path, "Logs")
|
||||
else:
|
||||
path = user_cache_dir(appname, appauthor, version)
|
||||
version = False
|
||||
if opinion:
|
||||
path = os.path.join(path, "log")
|
||||
if appname and version:
|
||||
path = os.path.join(path, version)
|
||||
return path
|
||||
|
||||
|
||||
class AppDirs(object):
|
||||
"""Convenience wrapper for getting application dirs."""
|
||||
def __init__(self, appname, appauthor=None, version=None, roaming=False,
|
||||
multipath=False):
|
||||
self.appname = appname
|
||||
self.appauthor = appauthor
|
||||
self.version = version
|
||||
self.roaming = roaming
|
||||
self.multipath = multipath
|
||||
|
||||
@property
|
||||
def user_data_dir(self):
|
||||
return user_data_dir(self.appname, self.appauthor,
|
||||
version=self.version, roaming=self.roaming)
|
||||
|
||||
@property
|
||||
def site_data_dir(self):
|
||||
return site_data_dir(self.appname, self.appauthor,
|
||||
version=self.version, multipath=self.multipath)
|
||||
|
||||
@property
|
||||
def user_config_dir(self):
|
||||
return user_config_dir(self.appname, self.appauthor,
|
||||
version=self.version, roaming=self.roaming)
|
||||
|
||||
@property
|
||||
def site_config_dir(self):
|
||||
return site_config_dir(self.appname, self.appauthor,
|
||||
version=self.version, multipath=self.multipath)
|
||||
|
||||
@property
|
||||
def user_cache_dir(self):
|
||||
return user_cache_dir(self.appname, self.appauthor,
|
||||
version=self.version)
|
||||
|
||||
@property
|
||||
def user_log_dir(self):
|
||||
return user_log_dir(self.appname, self.appauthor,
|
||||
version=self.version)
|
||||
|
||||
|
||||
#---- internal support stuff
|
||||
|
||||
def _get_win_folder_from_registry(csidl_name):
|
||||
"""This is a fallback technique at best. I'm not sure if using the
|
||||
registry for this guarantees us the correct answer for all CSIDL_*
|
||||
names.
|
||||
"""
|
||||
import _winreg
|
||||
|
||||
shell_folder_name = {
|
||||
"CSIDL_APPDATA": "AppData",
|
||||
"CSIDL_COMMON_APPDATA": "Common AppData",
|
||||
"CSIDL_LOCAL_APPDATA": "Local AppData",
|
||||
}[csidl_name]
|
||||
|
||||
key = _winreg.OpenKey(
|
||||
_winreg.HKEY_CURRENT_USER,
|
||||
r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
|
||||
)
|
||||
dir, type = _winreg.QueryValueEx(key, shell_folder_name)
|
||||
return dir
|
||||
|
||||
|
||||
def _get_win_folder_with_pywin32(csidl_name):
|
||||
from win32com.shell import shellcon, shell
|
||||
dir = shell.SHGetFolderPath(0, getattr(shellcon, csidl_name), 0, 0)
|
||||
# Try to make this a unicode path because SHGetFolderPath does
|
||||
# not return unicode strings when there is unicode data in the
|
||||
# path.
|
||||
try:
|
||||
dir = unicode(dir)
|
||||
|
||||
# Downgrade to short path name if have highbit chars. See
|
||||
# <http://bugs.activestate.com/show_bug.cgi?id=85099>.
|
||||
has_high_char = False
|
||||
for c in dir:
|
||||
if ord(c) > 255:
|
||||
has_high_char = True
|
||||
break
|
||||
if has_high_char:
|
||||
try:
|
||||
import win32api
|
||||
dir = win32api.GetShortPathName(dir)
|
||||
except ImportError:
|
||||
pass
|
||||
except UnicodeError:
|
||||
pass
|
||||
return dir
|
||||
|
||||
|
||||
def _get_win_folder_with_ctypes(csidl_name):
|
||||
import ctypes
|
||||
|
||||
csidl_const = {
|
||||
"CSIDL_APPDATA": 26,
|
||||
"CSIDL_COMMON_APPDATA": 35,
|
||||
"CSIDL_LOCAL_APPDATA": 28,
|
||||
}[csidl_name]
|
||||
|
||||
buf = ctypes.create_unicode_buffer(1024)
|
||||
ctypes.windll.shell32.SHGetFolderPathW(None, csidl_const, None, 0, buf)
|
||||
|
||||
# Downgrade to short path name if have highbit chars. See
|
||||
# <http://bugs.activestate.com/show_bug.cgi?id=85099>.
|
||||
has_high_char = False
|
||||
for c in buf:
|
||||
if ord(c) > 255:
|
||||
has_high_char = True
|
||||
break
|
||||
if has_high_char:
|
||||
buf2 = ctypes.create_unicode_buffer(1024)
|
||||
if ctypes.windll.kernel32.GetShortPathNameW(buf.value, buf2, 1024):
|
||||
buf = buf2
|
||||
|
||||
return buf.value
|
||||
|
||||
def _get_win_folder_with_jna(csidl_name):
|
||||
import array
|
||||
from com.sun import jna
|
||||
from com.sun.jna.platform import win32
|
||||
|
||||
buf_size = win32.WinDef.MAX_PATH * 2
|
||||
buf = array.zeros('c', buf_size)
|
||||
shell = win32.Shell32.INSTANCE
|
||||
shell.SHGetFolderPath(None, getattr(win32.ShlObj, csidl_name), None, win32.ShlObj.SHGFP_TYPE_CURRENT, buf)
|
||||
dir = jna.Native.toString(buf.tostring()).rstrip("\0")
|
||||
|
||||
# Downgrade to short path name if have highbit chars. See
|
||||
# <http://bugs.activestate.com/show_bug.cgi?id=85099>.
|
||||
has_high_char = False
|
||||
for c in dir:
|
||||
if ord(c) > 255:
|
||||
has_high_char = True
|
||||
break
|
||||
if has_high_char:
|
||||
buf = array.zeros('c', buf_size)
|
||||
kernel = win32.Kernel32.INSTANCE
|
||||
if kernal.GetShortPathName(dir, buf, buf_size):
|
||||
dir = jna.Native.toString(buf.tostring()).rstrip("\0")
|
||||
|
||||
return dir
|
||||
|
||||
if system == "win32":
|
||||
try:
|
||||
import win32com.shell
|
||||
_get_win_folder = _get_win_folder_with_pywin32
|
||||
except ImportError:
|
||||
try:
|
||||
from ctypes import windll
|
||||
_get_win_folder = _get_win_folder_with_ctypes
|
||||
except ImportError:
|
||||
try:
|
||||
import com.sun.jna
|
||||
_get_win_folder = _get_win_folder_with_jna
|
||||
except ImportError:
|
||||
_get_win_folder = _get_win_folder_from_registry
|
||||
|
||||
|
||||
#---- self test code
|
||||
|
||||
if __name__ == "__main__":
|
||||
appname = "MyApp"
|
||||
appauthor = "MyCompany"
|
||||
|
||||
props = ("user_data_dir", "site_data_dir",
|
||||
"user_config_dir", "site_config_dir",
|
||||
"user_cache_dir", "user_log_dir")
|
||||
|
||||
print("-- app dirs (with optional 'version')")
|
||||
dirs = AppDirs(appname, appauthor, version="1.0")
|
||||
for prop in props:
|
||||
print("%s: %s" % (prop, getattr(dirs, prop)))
|
||||
|
||||
print("\n-- app dirs (without optional 'version')")
|
||||
dirs = AppDirs(appname, appauthor)
|
||||
for prop in props:
|
||||
print("%s: %s" % (prop, getattr(dirs, prop)))
|
||||
|
||||
print("\n-- app dirs (without optional 'appauthor')")
|
||||
dirs = AppDirs(appname)
|
||||
for prop in props:
|
||||
print("%s: %s" % (prop, getattr(dirs, prop)))
|
||||
|
||||
print("\n-- app dirs (with disabled 'appauthor')")
|
||||
dirs = AppDirs(appname, appauthor=False)
|
||||
for prop in props:
|
||||
print("%s: %s" % (prop, getattr(dirs, prop)))
|
||||
5
v1/flask/lib/python3.4/site-packages/easy_install.py
Normal file
5
v1/flask/lib/python3.4/site-packages/easy_install.py
Normal file
@@ -0,0 +1,5 @@
|
||||
"""Run the EasyInstall command"""
|
||||
|
||||
if __name__ == '__main__':
|
||||
from setuptools.command.easy_install import main
|
||||
main()
|
||||
@@ -0,0 +1,198 @@
|
||||
packaging
|
||||
=========
|
||||
|
||||
Core utilities for Python packages
|
||||
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
`documentation`_
|
||||
|
||||
|
||||
Discussion
|
||||
----------
|
||||
|
||||
If you run into bugs, you can file them in our `issue tracker`_.
|
||||
|
||||
You can also join ``#pypa`` on Freenode to ask questions or get involved.
|
||||
|
||||
|
||||
.. _`documentation`: https://packaging.pypa.io/
|
||||
.. _`issue tracker`: https://github.com/pypa/packaging/issues
|
||||
|
||||
|
||||
Code of Conduct
|
||||
---------------
|
||||
|
||||
Everyone interacting in the packaging project's codebases, issue trackers, chat
|
||||
rooms, and mailing lists is expected to follow the `PyPA Code of Conduct`_.
|
||||
|
||||
.. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/
|
||||
|
||||
Changelog
|
||||
---------
|
||||
|
||||
16.8 - 2016-10-29
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix markers that utilize ``in`` so that they render correctly.
|
||||
|
||||
* Fix an erroneous test on Python RC releases.
|
||||
|
||||
|
||||
16.7 - 2016-04-23
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add support for the deprecated ``python_implementation`` marker which was
|
||||
an undocumented setuptools marker in addition to the newer markers.
|
||||
|
||||
|
||||
16.6 - 2016-03-29
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add support for the deprecated, PEP 345 environment markers in addition to
|
||||
the newer markers.
|
||||
|
||||
|
||||
16.5 - 2016-02-26
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix a regression in parsing requirements with whitespaces between the comma
|
||||
separators.
|
||||
|
||||
|
||||
16.4 - 2016-02-22
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix a regression in parsing requirements like ``foo (==4)``.
|
||||
|
||||
|
||||
16.3 - 2016-02-21
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix a bug where ``packaging.requirements:Requirement`` was overly strict when
|
||||
matching legacy requirements.
|
||||
|
||||
|
||||
16.2 - 2016-02-09
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add a function that implements the name canonicalization from PEP 503.
|
||||
|
||||
|
||||
16.1 - 2016-02-07
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Implement requirement specifiers from PEP 508.
|
||||
|
||||
|
||||
16.0 - 2016-01-19
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Relicense so that packaging is available under *either* the Apache License,
|
||||
Version 2.0 or a 2 Clause BSD license.
|
||||
|
||||
* Support installation of packaging when only distutils is available.
|
||||
|
||||
* Fix ``==`` comparison when there is a prefix and a local version in play.
|
||||
(`#41 <https://github.com/pypa/packaging/issues/41>`__).
|
||||
|
||||
* Implement environment markers from PEP 508.
|
||||
|
||||
|
||||
15.3 - 2015-08-01
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Normalize post-release spellings for rev/r prefixes. `#35 <https://github.com/pypa/packaging/issues/35>`__
|
||||
|
||||
|
||||
15.2 - 2015-05-13
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix an error where the arbitary specifier (``===``) was not correctly
|
||||
allowing pre-releases when it was being used.
|
||||
|
||||
* Expose the specifier and version parts through properties on the
|
||||
``Specifier`` classes.
|
||||
|
||||
* Allow iterating over the ``SpecifierSet`` to get access to all of the
|
||||
``Specifier`` instances.
|
||||
|
||||
* Allow testing if a version is contained within a specifier via the ``in``
|
||||
operator.
|
||||
|
||||
|
||||
15.1 - 2015-04-13
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix a logic error that was causing inconsistent answers about whether or not
|
||||
a pre-release was contained within a ``SpecifierSet`` or not.
|
||||
|
||||
|
||||
15.0 - 2015-01-02
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add ``Version().is_postrelease`` and ``LegacyVersion().is_postrelease`` to
|
||||
make it easy to determine if a release is a post release.
|
||||
|
||||
* Add ``Version().base_version`` and ``LegacyVersion().base_version`` to make
|
||||
it easy to get the public version without any pre or post release markers.
|
||||
|
||||
* Support the update to PEP 440 which removed the implied ``!=V.*`` when using
|
||||
either ``>V`` or ``<V`` and which instead special cased the handling of
|
||||
pre-releases, post-releases, and local versions when using ``>V`` or ``<V``.
|
||||
|
||||
|
||||
14.5 - 2014-12-17
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Normalize release candidates as ``rc`` instead of ``c``.
|
||||
|
||||
* Expose the ``VERSION_PATTERN`` constant, a regular expression matching
|
||||
a valid version.
|
||||
|
||||
|
||||
14.4 - 2014-12-15
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Ensure that versions are normalized before comparison when used in a
|
||||
specifier with a less than (``<``) or greater than (``>``) operator.
|
||||
|
||||
|
||||
14.3 - 2014-11-19
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* **BACKWARDS INCOMPATIBLE** Refactor specifier support so that it can sanely
|
||||
handle legacy specifiers as well as PEP 440 specifiers.
|
||||
|
||||
* **BACKWARDS INCOMPATIBLE** Move the specifier support out of
|
||||
``packaging.version`` into ``packaging.specifiers``.
|
||||
|
||||
|
||||
14.2 - 2014-09-10
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add prerelease support to ``Specifier``.
|
||||
* Remove the ability to do ``item in Specifier()`` and replace it with
|
||||
``Specifier().contains(item)`` in order to allow flags that signal if a
|
||||
prerelease should be accepted or not.
|
||||
* Add a method ``Specifier().filter()`` which will take an iterable and returns
|
||||
an iterable with items that do not match the specifier filtered out.
|
||||
|
||||
|
||||
14.1 - 2014-09-08
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Allow ``LegacyVersion`` and ``Version`` to be sorted together.
|
||||
* Add ``packaging.version.parse()`` to enable easily parsing a version string
|
||||
as either a ``Version`` or a ``LegacyVersion`` depending on it's PEP 440
|
||||
validity.
|
||||
|
||||
|
||||
14.0 - 2014-09-05
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Initial release.
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,221 @@
|
||||
Metadata-Version: 2.0
|
||||
Name: packaging
|
||||
Version: 16.8
|
||||
Summary: Core utilities for Python packages
|
||||
Home-page: https://github.com/pypa/packaging
|
||||
Author: Donald Stufft and individual contributors
|
||||
Author-email: donald@stufft.io
|
||||
License: BSD or Apache License, Version 2.0
|
||||
Platform: UNKNOWN
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: Apache Software License
|
||||
Classifier: License :: OSI Approved :: BSD License
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 2
|
||||
Classifier: Programming Language :: Python :: 2.6
|
||||
Classifier: Programming Language :: Python :: 2.7
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.2
|
||||
Classifier: Programming Language :: Python :: 3.3
|
||||
Classifier: Programming Language :: Python :: 3.4
|
||||
Requires-Dist: pyparsing
|
||||
Requires-Dist: six
|
||||
|
||||
packaging
|
||||
=========
|
||||
|
||||
Core utilities for Python packages
|
||||
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
||||
`documentation`_
|
||||
|
||||
|
||||
Discussion
|
||||
----------
|
||||
|
||||
If you run into bugs, you can file them in our `issue tracker`_.
|
||||
|
||||
You can also join ``#pypa`` on Freenode to ask questions or get involved.
|
||||
|
||||
|
||||
.. _`documentation`: https://packaging.pypa.io/
|
||||
.. _`issue tracker`: https://github.com/pypa/packaging/issues
|
||||
|
||||
|
||||
Code of Conduct
|
||||
---------------
|
||||
|
||||
Everyone interacting in the packaging project's codebases, issue trackers, chat
|
||||
rooms, and mailing lists is expected to follow the `PyPA Code of Conduct`_.
|
||||
|
||||
.. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/
|
||||
|
||||
Changelog
|
||||
---------
|
||||
|
||||
16.8 - 2016-10-29
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix markers that utilize ``in`` so that they render correctly.
|
||||
|
||||
* Fix an erroneous test on Python RC releases.
|
||||
|
||||
|
||||
16.7 - 2016-04-23
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add support for the deprecated ``python_implementation`` marker which was
|
||||
an undocumented setuptools marker in addition to the newer markers.
|
||||
|
||||
|
||||
16.6 - 2016-03-29
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add support for the deprecated, PEP 345 environment markers in addition to
|
||||
the newer markers.
|
||||
|
||||
|
||||
16.5 - 2016-02-26
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix a regression in parsing requirements with whitespaces between the comma
|
||||
separators.
|
||||
|
||||
|
||||
16.4 - 2016-02-22
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix a regression in parsing requirements like ``foo (==4)``.
|
||||
|
||||
|
||||
16.3 - 2016-02-21
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix a bug where ``packaging.requirements:Requirement`` was overly strict when
|
||||
matching legacy requirements.
|
||||
|
||||
|
||||
16.2 - 2016-02-09
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add a function that implements the name canonicalization from PEP 503.
|
||||
|
||||
|
||||
16.1 - 2016-02-07
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Implement requirement specifiers from PEP 508.
|
||||
|
||||
|
||||
16.0 - 2016-01-19
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Relicense so that packaging is available under *either* the Apache License,
|
||||
Version 2.0 or a 2 Clause BSD license.
|
||||
|
||||
* Support installation of packaging when only distutils is available.
|
||||
|
||||
* Fix ``==`` comparison when there is a prefix and a local version in play.
|
||||
(`#41 <https://github.com/pypa/packaging/issues/41>`__).
|
||||
|
||||
* Implement environment markers from PEP 508.
|
||||
|
||||
|
||||
15.3 - 2015-08-01
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Normalize post-release spellings for rev/r prefixes. `#35 <https://github.com/pypa/packaging/issues/35>`__
|
||||
|
||||
|
||||
15.2 - 2015-05-13
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix an error where the arbitary specifier (``===``) was not correctly
|
||||
allowing pre-releases when it was being used.
|
||||
|
||||
* Expose the specifier and version parts through properties on the
|
||||
``Specifier`` classes.
|
||||
|
||||
* Allow iterating over the ``SpecifierSet`` to get access to all of the
|
||||
``Specifier`` instances.
|
||||
|
||||
* Allow testing if a version is contained within a specifier via the ``in``
|
||||
operator.
|
||||
|
||||
|
||||
15.1 - 2015-04-13
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Fix a logic error that was causing inconsistent answers about whether or not
|
||||
a pre-release was contained within a ``SpecifierSet`` or not.
|
||||
|
||||
|
||||
15.0 - 2015-01-02
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add ``Version().is_postrelease`` and ``LegacyVersion().is_postrelease`` to
|
||||
make it easy to determine if a release is a post release.
|
||||
|
||||
* Add ``Version().base_version`` and ``LegacyVersion().base_version`` to make
|
||||
it easy to get the public version without any pre or post release markers.
|
||||
|
||||
* Support the update to PEP 440 which removed the implied ``!=V.*`` when using
|
||||
either ``>V`` or ``<V`` and which instead special cased the handling of
|
||||
pre-releases, post-releases, and local versions when using ``>V`` or ``<V``.
|
||||
|
||||
|
||||
14.5 - 2014-12-17
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Normalize release candidates as ``rc`` instead of ``c``.
|
||||
|
||||
* Expose the ``VERSION_PATTERN`` constant, a regular expression matching
|
||||
a valid version.
|
||||
|
||||
|
||||
14.4 - 2014-12-15
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Ensure that versions are normalized before comparison when used in a
|
||||
specifier with a less than (``<``) or greater than (``>``) operator.
|
||||
|
||||
|
||||
14.3 - 2014-11-19
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* **BACKWARDS INCOMPATIBLE** Refactor specifier support so that it can sanely
|
||||
handle legacy specifiers as well as PEP 440 specifiers.
|
||||
|
||||
* **BACKWARDS INCOMPATIBLE** Move the specifier support out of
|
||||
``packaging.version`` into ``packaging.specifiers``.
|
||||
|
||||
|
||||
14.2 - 2014-09-10
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Add prerelease support to ``Specifier``.
|
||||
* Remove the ability to do ``item in Specifier()`` and replace it with
|
||||
``Specifier().contains(item)`` in order to allow flags that signal if a
|
||||
prerelease should be accepted or not.
|
||||
* Add a method ``Specifier().filter()`` which will take an iterable and returns
|
||||
an iterable with items that do not match the specifier filtered out.
|
||||
|
||||
|
||||
14.1 - 2014-09-08
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Allow ``LegacyVersion`` and ``Version`` to be sorted together.
|
||||
* Add ``packaging.version.parse()`` to enable easily parsing a version string
|
||||
as either a ``Version`` or a ``LegacyVersion`` depending on it's PEP 440
|
||||
validity.
|
||||
|
||||
|
||||
14.0 - 2014-09-05
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Initial release.
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
packaging/__about__.py,sha256=zkcCPTN_6TcLW0Nrlg0176-R1QQ_WVPTm8sz1R4-HjM,720
|
||||
packaging/__init__.py,sha256=_vNac5TrzwsrzbOFIbF-5cHqc_Y2aPT2D7zrIR06BOo,513
|
||||
packaging/_compat.py,sha256=Vi_A0rAQeHbU-a9X0tt1yQm9RqkgQbDSxzRw8WlU9kA,860
|
||||
packaging/_structures.py,sha256=RImECJ4c_wTlaTYYwZYLHEiebDMaAJmK1oPARhw1T5o,1416
|
||||
packaging/markers.py,sha256=EngqyXbedXJB0fq4yK5VXYQPCNKawROnzYOMj0RctR4,8185
|
||||
packaging/requirements.py,sha256=Qz_Cyr4PdiJ2VijHenjHJvvB5OIkT-qfooCpSsVjyPw,4271
|
||||
packaging/specifiers.py,sha256=SAMRerzO3fK2IkFZCaZkuwZaL_EGqHNOz4pni4vhnN0,28025
|
||||
packaging/utils.py,sha256=3m6WvPm6NNxE8rkTGmn0r75B_GZSGg7ikafxHsBN1WA,421
|
||||
packaging/version.py,sha256=OwGnxYfr2ghNzYx59qWIBkrK3SnB6n-Zfd1XaLpnnM0,11556
|
||||
packaging-16.8.dist-info/DESCRIPTION.rst,sha256=rrSXK03qZdVBh0rV4xPJRH_PL12XMLMwHMyGlRLVo_g,4885
|
||||
packaging-16.8.dist-info/METADATA,sha256=S5z5u23jmgFH3zlaVmve9Z68n7ePFukXHtBBYsPOn6w,5761
|
||||
packaging-16.8.dist-info/RECORD,,
|
||||
packaging-16.8.dist-info/WHEEL,sha256=o2k-Qa-RMNIJmUdIc7KU6VWR_ErNRbWNlxDIpl7lm34,110
|
||||
packaging-16.8.dist-info/metadata.json,sha256=qXyeYZICHm13h_FrirTTGiD9QAccI0hI7h0BeLxTr8s,1004
|
||||
packaging-16.8.dist-info/top_level.txt,sha256=zFdHrhWnPslzsiP455HutQsqPB6v0KCtNUMtUtrefDw,10
|
||||
packaging-16.8.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
packaging/__pycache__/__about__.cpython-34.pyc,,
|
||||
packaging/__pycache__/requirements.cpython-34.pyc,,
|
||||
packaging/__pycache__/utils.cpython-34.pyc,,
|
||||
packaging/__pycache__/version.cpython-34.pyc,,
|
||||
packaging/__pycache__/_structures.cpython-34.pyc,,
|
||||
packaging/__pycache__/__init__.cpython-34.pyc,,
|
||||
packaging/__pycache__/specifiers.cpython-34.pyc,,
|
||||
packaging/__pycache__/markers.cpython-34.pyc,,
|
||||
packaging/__pycache__/_compat.cpython-34.pyc,,
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user