/Ussd-builder

Python USSD menu builder

MIT LicenseMIT

USSD menu builder

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Description

In the course of creating USSD applications one of the biggest challenge I faced was handling navigation. Using conditionals presents the following challenges:

  • With complex nested menus, conditionals quickly grow into messy spaghetti code. case in point
  • Having to write a conditional for every user input is not scalable

Inspiration

Overall the conditionals approach is not it! In my search for a a better implementation I came across this node js ussd builder library that uses state machines to create USSD menus. A state is created for each menu. Each state has a unique name and a set of rules used to link to the other states based on the user input. So this is an attempt to implement a similar solution with Python.

License

license