Skip to main content

Fast, simple message transforms

Project description

History
-------

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


Download files

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

Source Distribution

message-transform-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

message_transform-1.0.0-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file message-transform-1.0.0.tar.gz.

File metadata

File hashes

Hashes for message-transform-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c436ecf19fc107e8a4a24c4ff60d93873c9c01cad1bf0898156362151b7ae023
MD5 ee6b88380ae10a4940813b2b0111cb0e
BLAKE2b-256 fb006c84abb26a6b99d885d0cb0a2812d1f5951daae16c1216b45ec9e23beb23

See more details on using hashes here.

File details

Details for the file message_transform-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for message_transform-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 81ad6546dbe627630b3041d93c9562c7e80b89a994302b3241af885c99051efc
MD5 1c59ed0c0e0332162ea32efa79c81352
BLAKE2b-256 c989e106bd432946f1ade736690be4481d2bcf0886f59cbf90f5771ba76c80ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page