First place — Montreal AI x Law Hackathon (May 9)
LinkedIn post: https://www.linkedin.com/posts/montreal-ai-x-law-hackathon_le-9-mai-dernier-nous-%C3%A9tions-ravies-d-activity-7460446147787128832-0bwn
Short prototype built during the Montreal AI x Law hackathon. This repository contains a Python-based prototype that ties together an "open justice" data helper, an SMS/webhook interface, and a small web service used during the competition. The project won 1st place at the hackathon.
Key files
main.py— application entrypoint (starts the web service)openjustice.py— helper(s) for interacting with open justice / legal datasms.py— SMS integration helpers (e.g., Twilio webhook handlers)config.py— configuration values and environment keystests/— unit tests (seetests/test_session.pyandtests/test_webhook.py)requirements.txt— Python dependenciesDockerfile— Docker container definition
Requirements
- Python 3.8+ (use a virtual environment)
- Dependencies listed in
requirements.txt
Quick start (local)
- Create and activate a virtualenv:
python -m venv .venv
source .venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run the service (development):
python main.pyDocker
Build the image:
docker build -t justiceline .Run the container (example):
docker run -p 8000:8000 justicelineTests
Run the test suite with pytest:
pytest -q