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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a51c9669213a24068ac762675ab5026eebc92f791fd2eb8ad3dd69f99c9d3be |
|
MD5 | fb22f1a899d3193bba98befb85255fad |
|
BLAKE2b-256 | 62afdb1db27c2429f6285029f4d1f5bbc2114fe76d703dffe90a27e7362aff0d |
Hashes for vumi_unidecode_middleware-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c522283c1f20c8c17531e838c24f866e67efd38d32353e4e0f05cdae64f2916 |
|
MD5 | c800ace9bc1045abe26f9dfc02f92cf3 |
|
BLAKE2b-256 | a9ccfaef2ca8a55422d191e5f4c2ca1c34667ded09a9d3e6467cdd0fd6f6b9ea |