Vumi middleware that runs message content through unidecode
Project description
# vumi-unidecode-middleware [Vumi][vumi] middleware that runs message content through unidecode
## Using the middleware
The path to the middleware class is vumi_unidecode_middleware.UnidecodeMiddleware.
There are two optional config parameters.
message_direction must be one of inbound, outbound, or both. This limits whether to transform inbound, outbound, or both inbound and outbound messages. Defaults to both
ignore_characters is a string of characters that, excluding ASCII characters, will be excluded from being converted. Defaults to no characters.
For more information on how to run vumi middleware, please consult the [vumi middleware documentation][vumi_middleware].
## Testing
To run the tests, install the dependancies and use the trial test runner:
pip install -e . trial vumi_unidecode_middleware
[vumi]: https://github.com/praekelt/vumi [vumi_middleware]: https://vumi.readthedocs.io/en/latest/middleware/index.html
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
Hashes for vumi_unidecode_middleware-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef1ffa059984045545769878561df051032bfb171108422ec4f641cde478a69e |
|
MD5 | 4aa320349849aac4dbfab713d9df933c |
|
BLAKE2b-256 | 97810e5336900412933d48543bf69e0a331e0e175c3ca7e5dfdf63276d85e5e7 |
Hashes for vumi_unidecode_middleware-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07f9356675e571ac4af064f2eef1256f4826d94765a77281ce6dd25a48fd7dca |
|
MD5 | ef19061df4bba615c0bc083cd091ac62 |
|
BLAKE2b-256 | 13d04f5d7b0fee587a1dfea1f2fb9e498f90d2628d375b2559942e78cea92a7a |