Commit 09c94485 authored by hoverhell's avatar hoverhell

Release 1.3.0

parent c0f97b33
.. :changelog:
Release History
---------------
1.3.0 (2014-12-25)
++++++++++++++++++
- Initial PyPi release
......@@ -12,47 +12,49 @@ Contains:
* **bubble**: syntactic sugar for super(...)
* **window**: iterator over a 'window' of N adjacent elements
* **SmartDict**: attr→item dict subclass (e.g. for `d.key` instead of
`d['key']`)
`d['key']`)
* **DebugPlug**: recursive duck-object for debug and testing
purposes
purposes
* **repr_call**: convenient syntactically-appropriate representation of
call arguments (also used in DebugPlug)
call arguments (also used in DebugPlug)
* **fxrange**, **frange**, **dxrange**, **drange**: `xrange()` / `range()`
equivalents for float (without error accumulation) and Decimal
equivalents for float (without error accumulation) and Decimal
* **dict_fget**, **dict_fsetdefault**: versions of `dict.get` and
`dict.setdefault` with lazy-computation of the default value
`dict.setdefault` with lazy-computation of the default value
* **interp**, **edi**: two versions (simplified and format-supporting) of
convenient string interpolation (or simplified templating)
convenient string interpolation (or simplified templating)
* **split_list**: simple one-pass splitting of list into two by a condition
* **use_cdecimal**: forced instance-wide use (by monkey-hack) of `cdecimal`
instead of `decimal` (for performance)
instead of `decimal` (for performance)
* **use_exc_ipdb**: set unhandled exception handler to run `ipdb.pm()`
* **use_exc_log**: set unhandled exception handler to log (by `logging`) the
exception and the stack trace including (when possible) the local
variables.
exception and the stack trace including (when possible) the local
variables.
* **use_colorer**: monkey-patch `logging` for colored logging
* **obj2dict**: recursive converter of tree-structure of classes into a
tree-structure of dicts, e.g. for pretty-printing the result
tree-structure of dicts, e.g. for pretty-printing the result
* **mk_logging_property**: make a property that debug-logs the value and
caller info when set
caller info when set
Also, in separate submodules:
* **psql**: helpers for saving Django ORM objects into an SQL 'COPY'-like
file and loading it in one SQL command (for high-performance loading of
large amounts of data into the database)
file and loading it in one SQL command (for high-performance loading of
large amounts of data into the database)
* **lzmah**: lzma compress (as function and as an executable file); also
provides a function `unjsllzma` to stream-read (json) lines from a
pylzma-compressed file
provides a function `unjsllzma` to stream-read (json) lines from a
pylzma-compressed file
* **lzcat**: lzcat for pylzma-specific format (as function and as an
executale file)
executale file)
* **runlib**: various things for runscripts:
* **init_logging**: logging.basicConfig with useful defaults (for
development runscripts).
* **sigeventer**: list-based signal handler for SIGINT and SIGTERM (for
appending handler functions, similarly to `atexit`)
* **make_manhole**: init a Twisted SSH manhole with set up locals,
key-based auth, etc.
* **init_logging**: logging.basicConfig with useful defaults (for
development runscripts).
* **sigeventer**: list-based signal handler for SIGINT and SIGTERM (for
appending handler functions, similarly to `atexit`)
* **make_manhole**: init a Twisted SSH manhole with set up locals,
key-based auth, etc.
* **twisted_aux**: use_exc_log-equivalent for twisted (and a helper to
remove the default logger).
# coding: utf8
""" A collection of useful helpers """
__version__ = "1.3.0"
## NOTE: no modules imported here should import `decimal` (otherwise
## `use_cdecimal` might become problematic for them)
......
#!/usr/bin/env python
<<<<<<< HEAD
version = '1.3'
=======
try:
from pyaux import __version__ as version
except Exception as _exc:
print "Pkg-version error:",_exc
version = '1.3.0'
import os
>>>>>>> Release 1.3.0
LONG_DESCRIPTION = """
Collection of helpers and useful things for Python
""" ## TODO: describe. everything.
## XX: automatically use contents of the 'README.md' instead?
""" + open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='pyaux',
version=version,
description='pyaux', ## XX
long_description=LONG_DESCRIPTION,
#classifiers=[],
#keywords='...,...',
author='HoverHell',
author_email='[email protected]',
url='https://github.com/HoverHell/pyaux',
packages=['pyaux'], #find_packages(),
entry_points={
'console_scripts': [
'lzcat.py = pyaux.lzcat:_lzcat_main',
'lzma.py = pyaux.lzmah:_lzma_main',
'fjson_yaml = pyaux.bin.fjson_yaml:main',
],
},
install_requires=['ipdb',],
extras_require={
## Things that are useful to simply have around:
'recommended': [
'atomicfile', 'cdecimal', 'ipython', 'django',
#'requests', 'pycurl',
],
},
dependency_links=[
# 'https://github.com/sashka/atomicfile/tarball/master#egg=atomicfile', # on pypi
],
#package_data={},
#include_package_data=True,
#zip_safe=False,
setup_kwargs = dict(
name='pyaux',
version=version,
description='pyaux', ## XX
long_description=LONG_DESCRIPTION,
# classifiers=[],
# keywords='...,...',
author='HoverHell',
author_email='[email protected]',
url='https://github.com/HoverHell/pyaux',
download_url='https://github.com/HoverHell/pyaux/tarball/%s' % (version,),
packages=['pyaux'], # find_packages(),
entry_points={
'console_scripts': [
'lzcat.py = pyaux.lzcat:_lzcat_main',
'lzma.py = pyaux.lzmah:_lzma_main',
'fjson_yaml = pyaux.bin.fjson_yaml:main',
],
},
install_requires=[],
extras_require={
## Things that are useful to simply have around:
'recommended': [
'ipdb',
'atomicfile', 'cdecimal', 'ipython', 'django',
#'requests', 'pycurl',
],
},
dependency_links=[
# 'https://github.com/sashka/atomicfile/tarball/master#egg=atomicfile', # on pypi
],
#package_data={},
#include_package_data=True,
#zip_safe=False,
)
if __name__ == '__main__':
setup(**setup_kwargs)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment