Python package to parse menues from www.my-stuwe.de
This package contains a collection of functions to crawl and parse the website of the Studierendenwerk Tübingen-Hohenheim.
These instructions will get you a copy of the stuweparser package on your local machine. If you only want to use stuweparser as a python package use pip3 in order to install it into your python3 environment. If you want to inspect and change the code download and install it via git clone and python3 setup.py. For details see below.
You need python 3.4 or newer and git installed on your machine. We recommend to install Minicoda (https://conda.io/miniconda.html) before installing stuweparser or to create a virtualenv within your personal folder.
If you want to develop stuweparser you should additionally install:
pip3 install --user tox pylint pytest pycodestyle sphinx
If you want to use the package you can install the package by running
git clone https://github.com/trybnetic/stuweparser.git cd stuweparser python3 setup.py install
Documentation and Examples
Documentation and examples can be found in the doc/ folder after cloning the repository.
If you have installed sphinx you should be able to build the documentation with:
cd doc/ make html
The entry point for the html documentation is doc/build/html/index.html.
Running the tests
If you have cloned stuweparser from github, you can start the tests by executing the following within the outer stuweparser folder:
For full tests you can run:
tox -e test
For manually checking coding guidelines run:
pycodestyle stuweparser tests pylint --ignore-patterns='.*\.so' --rcfile=setup.cfg -j 2 stuweparser tests
For more details on which tests run in the continuous testing environment look at the file tox.ini.
This project is licensed under the MIT License - see the LICENSE.txt file for details
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.