Skip to content

praekeltfoundation/vumi-unidecode-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vumi-unidecode-middleware

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.

Testing

To run the tests, install the dependancies and use the trial test runner:

pip install -e .
trial vumi_unidecode_middleware

About

Vumi middleware that runs unidecode on the message content

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages