Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Uberspace/bahnbusiness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BahnBusiness

Discountinued since bahn.de now requires a captcha for login.

A library to collect ticket PDFs from bahn.business for bookkeeping purposes.

Configuration

Provide your bahn.business credentials in a file called .bahnbusiness-login. It may be located either in the current working directory or in your home directory.

[bahnbusiness]
username=someuser
password=fancypw

Usage

The main idea behind this module is to be used as a library, it can also be invoked directly:

$ pip install bahnbusiness
$ python -m bahnbusiness
(...)

Development

Setup

$ virtualenv venv --python python3.6
$ source venv/bin/activate
$ pip install -r requirements-dev.txt
$ python setup.py develop

Tests

Since this library is highly dependent on the bahn website and provides very little functionality on its own, the provided tests are quite minimal. Also, a valid login is needed to execute them.

Publishing

Assuming you have been handed the required credentials, a new version can be released as follows.

  1. adapt the version in setup.py, according to semver
  2. commit this change as Version 1.2.3
  3. tag the resulting commit as v1.2.3
  4. push the new tag as well as the master branch
  5. update the package on PyPI:
rm dist/*
python setup.py sdist
twine upload dist/*

About

Scrape the bahn.de business website for tickets and other information.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages