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.1.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

splathash-1.1.0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: splathash-1.1.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for splathash-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1257ac148c7141551454b7399b1ea8bec995c7ddf939222004bc8ea13426594d
MD5 e54db023e55e5e587bf78fc45b8778a5
BLAKE2b-256 f48302b471edb70b090f5bae42c4b23c0578c5900bb7c9e5ab915412a64f4e25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: splathash-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for splathash-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df986b88f421429e6f0f49f2d05eb345f3de7eb17eb6dca465262e4c109695ff
MD5 c12f5ae2c613632556b06dfc9ff32610
BLAKE2b-256 7b249186337c6830f27f4f008913e5338c797f5752475ee7ef0b05461d8ff028

See more details on using hashes here.

Supported by

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