Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hroncok/utvsapi-django
A REST-like read-only API for ÚTVS ČVUT implemented in Django REST framework
https://github.com/hroncok/utvsapi-django
Last synced: 15 days ago
JSON representation
A REST-like read-only API for ÚTVS ČVUT implemented in Django REST framework
- Host: GitHub
- URL: https://github.com/hroncok/utvsapi-django
- Owner: hroncok
- License: mit
- Created: 2016-05-01T17:58:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-05T15:01:45.000Z (over 8 years ago)
- Last Synced: 2024-12-13T20:49:39.532Z (20 days ago)
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
utvsapi-django
==============A REST-like read-only API for [ÚTVS ČVUT](https://rozvoj.fit.cvut.cz/Main/rozvrhy-utvs-db)
implemented in [Django REST framework](http://www.django-rest-framework.org/).To use this, create file named `mysql.cnf` with your MySQL credentials, see an example here:
[client]
host = localhost
user = username
database = dbname
password = insecurepasswordThis has been developed and run on Python 3 only, legacy Python might not work.
Install depnedncies (you'll need mysql devel package for that). You might do it with virtualenv:
pyvenv venv
. venv/bin/activate
pip install Django==1.9 django-filter djangorestframework drf-hal-json mysqlclient utvsapitokenStart the service in debug mode:
python3 ./manage.py runserver
Or run with gunicorn:
pip install gunicorn
gunicorn utvsapi.wsgiLicense
-------This software is licensed under the terms of the MIT license, see LICENSE for full text and copyright information.