Skip to main content

Fast, simple message transforms

Project description


released 26-July-2017

- Initial Release

Author: Dana M. Diederich
License: MIT
Description: message-transform

Fast, simple message transformations



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'}


Open up a pull request via, please consider adding tests for any new functionality. To set up the dev environment (assuming you're using [virtualenvwrapper](

$ mkvirtualenv message-transform
$ pip install -r dev-requirements.txt
$ py.test


This is a very light-weight and fast library that does some basic but reasonably powerful message transformations.



Takes two and only two arguments, both dictionaries, and mutates the message according to the transform.


None known.


Copyright (c) 2012, 2013, 2016, 2017 Dana M. Diederich. All Rights Reserved.


Dana M. Diederich

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for message-transform, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size message_transform-1.0.0-py2.py3-none-any.whl (4.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size message-transform-1.0.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page