Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hroncok/utvsapi-ripozo
A REST-like read-only API for ÚTVS ČVUT implemented in ripozo
https://github.com/hroncok/utvsapi-ripozo
Last synced: 15 days ago
JSON representation
A REST-like read-only API for ÚTVS ČVUT implemented in ripozo
- Host: GitHub
- URL: https://github.com/hroncok/utvsapi-ripozo
- Owner: hroncok
- License: gpl-2.0
- Created: 2016-04-25T22:18:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-05T15:06:03.000Z (over 8 years ago)
- Last Synced: 2024-12-13T20:50:05.602Z (20 days ago)
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
utvsapi-ripozo
==============A REST-like read-only API for [ÚTVS ČVUT](https://rozvoj.fit.cvut.cz/Main/rozvrhy-utvs-db)
implemented in [ripozo](http://ripozo.readthedocs.org/en/latest/).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 `utvsapitoken`, `flask-ripozo`, `ripozo-sqlalchemy`, `Flask-SQLAlchemy`
and `mysqlclient` (you'll need mysql devel package for that). You might do it with virtualenv:pyvenv venv
. venv/bin/activate
pip install utvsapitoken flask-ripozo ripozo-sqlalchemy Flask-SQLAlchemy mysqlclientStart the service in debug mode:
PYTHONPATH=. python3 utvsapi/main.py
Or run with gunicorn:
pip install gunicorn
PYTHONPATH=. gunicorn utvsapi.main:appLicense
-------Copyright (C) 2016 Miro Hrončok
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.See LICENSE file for full license text.