semvec/pypi-packages huggingface dataset:
nsms 1.0.4
Provides a skeleton RapidSMS project using Nyaruka's best practices.
License: BSD

NyarukaSMS
----------------------------------------

NyarumaSMS aims to provide a quick start for a basic python based SMS app using the tools Nyaruka uses to build its systems.  This includes setting up rapidsms, rapidsms-httprouter, smartmin and our parsing and localization libraries.  

Getting Started
----------------

To get started, follow these steps::

  % virtualenv env
  % source env/bin/activate
  % pip install nsms
  % start-nsms [project-name]
  % pip install -r pip-requires.txt
  % cd [project-name]
  % python manage.py syncdb
  % python manage.py migrate
  % python manage.py runserver

Sample Application
-------------------

NSMS comes with a simple SMS application to track the mileage on vehicles.  The SMS format for the application is as follows.

Registering Cars
~~~~~~~~~~~~~~~~

Each user of the system much register the car they are using, they do so by sending::

  car [license plate]

This register a car to the phone.  From now on all mileage reports will be associated with the car with the passed in license plate.  The license plate must be 8 characters.

Adding Mileage Reports
~~~~~~~~~~~~~~~~~~~~~~~

Once a user has registered their car, they can report mileage by sending the message::

  miles [mileage (integer)]

This records a new mileage report for the car associated with this connection.  If the connetion has not registered a car then this will be an error.

Best Practices
===============

This application aims to demonstrate the following best practices:
 
* Comprehensive unit coverage.  We aim for 100% unit test coverage of our apps, and so should you.  This app shows you how easily that can be done
* DRY. We use Smartmin to allow us to add a lot of functionality without adding much code
* Language Templates.  We let our customers edit the translations for all our messages through a web UI, including using standard Django templates for formatting.
* Tolerant Parsing.  Though still a work in progress, our rapidsms_parser module provides an easy way to programmatically parse SMS messages and give good error messaging in the process.
* User Management.  We provide our customers with basic user management, using groups and SmartMin permissions to easily manage these.
wsgi_party 0.1b1
A partyline middleware for WSGI with good intentions.
License: BSD

WSGI Party: partyline middleware for WSGI with good intentions
==============================================================

wsgi_party's goals for Python web developers:

1. Refactor legacy projects one route at a time; graft instead of rewrite.
2. Try new ideas from meetups/conferences in isolation; increase velocity.
3. Integrate multiple web frameworks; use the right tool for the job.

wsgi_party is for WSGI framework developers. See individual frameworks and
extensions for support. The initial intent was to build URLs across independent
applications, but other exchanges are possible if they are supported by all
frameworks in use.

The wsgi_party module provides the WSGIParty middleware which allows all
mounted applications to hook in handlers for cross-application communication
within a single WSGI process. Mount individual applications in a dispatcher,
then wrap the dispatcher with WSGIParty. Applications can then ask each other
for information with simple in-process messages. Messages are synchronous and
namespaced, and must be explicitly supported by Python web frameworks or their
extensions.

BSD licensed. Install with::

    pip install wsgi_party

Read the docs at: http://readthedocs.org/docs/wsgi_party/

This project started as a collaboration between Michael Merickel & Chris
McDonough (Pyramid core developers) and Ron DuPlain (a Flask core developer).
See AUTHORS for a full list of contributors.