Skip to main content

A Django USSD Framework.

Project description

A Django USSD framework package.

Requirements

  • Python 3.8+

  • Django 4.2, 4.1, 4.0, 3.2

We highly recommend and only officially support the latest patch release of each Python and Django series.

Installation

  1. Install using pip

    pip install splathash
  2. Add “splathash” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...,
        "splathash",
    ]
  3. Include the splathash URLconf in your project urls.py like this:

    path("splathash/", include("splathash.urls")),
  4. Run python manage.py migrate to apply migrations.

  5. Start the development server and visit http://127.0.0.1:8000/splathash/playground/ to test your USSD endpoint (you’ll need to login with a user in the admin panel first).

Contributing and development

  1. To start contributing to Splathash, clone the repository’s develop branch:

    git clone -b develop https://github.com/nalo-solutions/splathash
  2. Create a virtual env with all development dependencies.

    cd splathash
    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt

3. In the main project directory, you’ll find the splathash folder, which serves as both the main package itself and a Django app within the testproject Django project. Additionally, the testapp is another Django app within the testproject setup. This project is designed to facilitate testing of the splathash package within a Django project. To run the development server, use the following command:

python manage.py runserver
  1. Run the tests with:

    pytest

Committing your code

Before committing please make sure you have installed the pre-commit hooks in your local git repository:

pre-commit install

This will ensure that your code is cleaned before you commit it.

Creating releases

  1. Update the version number with this command(Replace <part> with the part of the version you want to increment. For example: patch, minor or major):

    bump2version <part>
  2. Merge new a release into main to trigger the workflow.

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

splathash-1.0.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

splathash-1.0.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file splathash-1.0.0.tar.gz.

File metadata

  • Download URL: splathash-1.0.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for splathash-1.0.0.tar.gz
Algorithm Hash digest
SHA256 45b70301d645909b82b900d7a96aa9a0252c35b541f77d30a21c4454b7433c4a
MD5 faeb06a9c5034964311a762887cbae07
BLAKE2b-256 f03835262dc5912a4625e796aaab7992262f6401b9dad15f0a5c93b5cfdacadc

See more details on using hashes here.

File details

Details for the file splathash-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: splathash-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for splathash-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbf3ac697cd6705d7f35fbb46927c2598bcd2aa175ae4acf0f261a55bc7f484b
MD5 9353ae8ea744810f9595fdaf9ebaf256
BLAKE2b-256 d040dc8ed7adb139560ed801dd1f016128b3ad1968082211b01d51de4c11692c

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