Fast, simple message transforms
Project description
History
-------
1.1.0
+++++
released 13-June-2018
- remove reliance on 'six' package
- much better specials handling
- fixed a bug in integer handling
1.0.8
+++++
released 3-November-2017
- Fix a bug where transform_control args were being lost
1.0.6
+++++
released 2-November-2017
- Fix a dependency problem
1.0.5
+++++
released 2-November-2017
- Key-side transforms
- Fix some type related bugs
1.0.4
+++++
released 1-November-2017
- Properly handling specials
1.0.0
+++++
released 26-July-2017
- Initial Release
Home-page: https://github.com/dana/python-message-transform
Author: Dana M. Diederich
Author-email: dana@realms.org
License: MIT
Description: message-transform
=================
Fast, simple message transformations
Usage
=====
Usage::
from message_transform import mtransform
mtransform({'a':'b'},{'x':'y'}) => {'a':'b','x':'y'}
mtransform({'a':'b'},{'x':'y','c':{'d':'e'}}) => {'a':'b','x':'y','c':{'d':'e'}}
mtransform({'a':'b'},{'x':' specials/$message->{a}'}) => {'a':'b','x':'a'}
Contributing
============
Open up a pull request via https://github.com/dana/python-message-transform, please consider adding tests for any new functionality. To set up the dev environment (assuming you're using [virtualenvwrapper](http://docs.python-guide.org/en/latest/dev/virtualenvs/#virtualenvwrapper))::
$ mkvirtualenv message-transform
$ pip install -r dev-requirements.txt
$ py.test
Description
===========
This is a very light-weight and fast library that does some basic but reasonably powerful message transformations.
Function
========
Function::
mtransform(message,transform)
Takes two and only two arguments, both dictionaries, and mutates the message according to the transform.
Bugs
====
None known.
Copyright
=========
Copyright (c) 2012, 2013, 2016, 2017 Dana M. Diederich. All Rights Reserved.
Author
======
Dana M. Diederich diederich@gmail.com dana@realms.org
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: License :: OSI Approved :: MIT License
-------
1.1.0
+++++
released 13-June-2018
- remove reliance on 'six' package
- much better specials handling
- fixed a bug in integer handling
1.0.8
+++++
released 3-November-2017
- Fix a bug where transform_control args were being lost
1.0.6
+++++
released 2-November-2017
- Fix a dependency problem
1.0.5
+++++
released 2-November-2017
- Key-side transforms
- Fix some type related bugs
1.0.4
+++++
released 1-November-2017
- Properly handling specials
1.0.0
+++++
released 26-July-2017
- Initial Release
Home-page: https://github.com/dana/python-message-transform
Author: Dana M. Diederich
Author-email: dana@realms.org
License: MIT
Description: message-transform
=================
Fast, simple message transformations
Usage
=====
Usage::
from message_transform import mtransform
mtransform({'a':'b'},{'x':'y'}) => {'a':'b','x':'y'}
mtransform({'a':'b'},{'x':'y','c':{'d':'e'}}) => {'a':'b','x':'y','c':{'d':'e'}}
mtransform({'a':'b'},{'x':' specials/$message->{a}'}) => {'a':'b','x':'a'}
Contributing
============
Open up a pull request via https://github.com/dana/python-message-transform, please consider adding tests for any new functionality. To set up the dev environment (assuming you're using [virtualenvwrapper](http://docs.python-guide.org/en/latest/dev/virtualenvs/#virtualenvwrapper))::
$ mkvirtualenv message-transform
$ pip install -r dev-requirements.txt
$ py.test
Description
===========
This is a very light-weight and fast library that does some basic but reasonably powerful message transformations.
Function
========
Function::
mtransform(message,transform)
Takes two and only two arguments, both dictionaries, and mutates the message according to the transform.
Bugs
====
None known.
Copyright
=========
Copyright (c) 2012, 2013, 2016, 2017 Dana M. Diederich. All Rights Reserved.
Author
======
Dana M. Diederich diederich@gmail.com dana@realms.org
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: License :: OSI Approved :: MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for message_transform-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3224ad19e0fe5a6711cc205857cba724d761056a84967e50d28aaec564e879a |
|
MD5 | abd0c9606303091ced79a353df648bbe |
|
BLAKE2b-256 | 194ebcc544407f9795bd2ce7665717912a251579895dda9d87213da7ca0eb569 |