Skip to main content

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]: [vumi_middleware]:

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 vumi-unidecode-middleware, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size vumi_unidecode_middleware-0.0.2-py2-none-any.whl (5.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size vumi_unidecode_middleware-0.0.2.tar.gz (3.9 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