Skip to main content

No project description provided

Project description

UssdFlow

UssdFlow is a dynamic and robust Python library designed to simplify the creation, management, and serving of USSD menus. Integrating seamlessly with Africa's Talking USSD implementation and utilizing Redis for efficient caching, UssdFlow aims to provide developers with a powerful tool to build interactive and responsive USSD applications.

Key Features

  • Dynamic Menu Creation: Easily define and manage USSD menus with dynamic content and options.
  • Seamless Integration: Integrates directly with Africa's Talking USSD gateway for reliable and scalable USSD services.
  • Efficient Caching: Leverages Redis for high-performance caching, ensuring quick and efficient session management.
  • User Session Management: Handles user sessions effectively, tracking user progress through the USSD menus.
  • Flexible Configuration: Offers flexible configuration options to tailor the USSD experience to specific needs.
  • Error Handling: Robust error handling ensures smooth user interactions even when issues arise.

Installation To install UssdFlow, simply use pip:

pip install ussdflow

Getting Started

Here’s a quick example to get you started with UssdFlow:

from ussdflow import CacheManager, IngressData, USSDService

# Initialize the cache manager

cache_manager = CacheManager(cache_type="redis", host="localhost", port=6379)

# Initialize the USSD service

ussd_service = USSDService(
    menu_file_path="path/to/your/menu.json",
    cache_manager=cache_manager
)

# Sample USSD request

request = IngressData(
    session_id="1234",
    service_code="*123#",
    phone_number="254712345678",
    text=""
)

# Process the request

response = ussd_service.ingress(request)
print(response)

Contributing

We welcome contributions to UssdFlow! If you have suggestions, bug reports, or want to contribute code, please check our Contributing Guidelines.

License

UssdFlow is licensed under the MIT License. See the LICENSE file for more details.

By following this documentation, you should be able to integrate UssdFlow with Flask, FastAPI, and Django to create, manage, and serve USSD menus efficiently.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ussdflow-0.1.6.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

ussdflow-0.1.6-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file ussdflow-0.1.6.tar.gz.

File metadata

  • Download URL: ussdflow-0.1.6.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1024-azure

File hashes

Hashes for ussdflow-0.1.6.tar.gz
Algorithm Hash digest
SHA256 f3d5f68ccff323b8ad7496dc84a669fb99e515154d4de4aab6f68ef645ced5b2
MD5 c614d3648b7a06e760d10eb1f6d22ed4
BLAKE2b-256 22c55353c281a7e661bab1d454efca37e41935c1bffbbc0e4ca1594c6058b186

See more details on using hashes here.

File details

Details for the file ussdflow-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ussdflow-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1024-azure

File hashes

Hashes for ussdflow-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 72cb704378b679a31ab0e10d33ab0dee87c4d7401c59cac1a98294394818f8bb
MD5 707b2dd760cebf4f1612089a71f3d6ce
BLAKE2b-256 96ad06c63a9332aa86bb62a43bb5496fe7e50f0264bcdade3fa663146e9e8578

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page