Scripts to maintain German law git repository
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

BundesGit Gesetze Tools

These scripts are used to keep the law repository up to date.

Install requirements:

pip install -r requirements.txt

For help see their docstring, command line help or source code.

Downloads all laws as XML files from and extracts them to a directory.

Converts all XML laws to Markdown and copies them with other files related to the law into specified working directory.

Scrapes the table of contents of all issues of the Bundesgesetzblatt and dumps the result to JSON.

Scrapes the table of contents of all available issues of the Bundesanzeiger and dumps the result to JSON.

Checks the repositories working directory for changes, tries to find relations to table of content entries in BGBl and BAnz data, commits the changes to a branch and merges the branch into master.