Skip to content

😴 This is an experimental reimplementation of courtbot using python.

License

Notifications You must be signed in to change notification settings

CodeforSouth/courtbot-python

 
 

Repository files navigation

Courtbot-Python {Miami Version}

Court Bot gives residents easy-to-understand information about resolving citations and timely reminders about upcoming court dates.

It started in Atlanta and then in Tusla. We want to bring it to Miami under our Justice Discovery work. This repository is an experimental re-implementation of courtbot using python. It uses the oscn PyPI library and twilio.

Development

Requirements

  • python
  • A twilio account
  • PostgreSQL

Install & Set up locally

  1. pip install -r requirements.txt (if you get an error, make sure postgresql is installed, then add the folder containing pg_config to your path export PATH=”/usr/local/bin:/Library/PostgreSQL/9.6/bin:$PATH”)
  2. cp .env-dist .env and put your own values into .env
  3. python manage.py runserver

Use ngrok to test twilio callbacks

To test twilio callbacks, run ngrok to set up a public domain for your localhost:8000 ...

ngrok http 8000

... then use the public domain url for your number's Messaging "a messages comes in" webhook. E.g., http://34ae567a.ngrok.io/sms/twilio

Note: super annoying, but every time you restart ngrok you'll have to update your twilio number's messaging webhook again, and you'll need to change your ALLOWED_HOSTS to include the new ngrok host. Unless you pay for ngrok.

About

😴 This is an experimental reimplementation of courtbot using python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 59.0%
  • HTML 36.4%
  • CSS 4.6%