Skip to content

pyramid_oereb is an open-source implementation of the server side part for the Swiss "Cadastre of Public-law Restrictions on landownership" (PLR-cadastre).

License

Notifications You must be signed in to change notification settings

michmuel/pyramid_oereb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyramid_oereb (ÖREB-Server)

Build Status Requirements Status

pyramid_oereb is an open-source implementation of the server side part for the swiss "Cadastre of Public-law Restrictions on landownership" (PLR-cadastre).

It is written in Python and designed as a plugin for the Pyramid Web Framework. This allows pyramid_oereb to be included in any Pyramid web application.

Please refer to the documentation for detailed information and instructions for installation and configuration.

If you are interested in contributing or extending the project, take a look at the contribution page.

Local testing (quick preview)

Run dev server

Following packages are required: python3-venv postgresql-client libpq-dev

Run:

git clone [email protected]:openoereb/pyramid_oereb.git
cd pyramid_oereb
make serve

JSON reduced extract is accessible at: http://localhost:6543/oereb/extract/reduced/json/CH113928077734.

When running in to issues installing libpq-dev :

The following packages have unmet dependencies:
 libpq-dev : Depends: libpq5 (= 10.12-0ubuntu0.18.04.1) but 12.3-1.pgdg18.04+1 is to be installed

Try to install a specific version (adapt the version to your requirement):

sudo apt install libpq5=10.12-0ubuntu0.18.04.1

Run tests

To check your code, run make checks. It will run style checks and tests. It's also possible to run sub-target independently:

  • make checks-style to run only style-related checks (linting, attributes).
  • make tests to run tests. Python 3.7 is used by default. But you can run tests with another version by running: PYTHON_TEST_VERSION=python3.x make tests. You can also set this variable in the Makefile.

After running tests, the coverage is available in the folder coverage_report.

About

pyramid_oereb is an open-source implementation of the server side part for the Swiss "Cadastre of Public-law Restrictions on landownership" (PLR-cadastre).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 87.7%
  • Mako 11.4%
  • Other 0.9%