GithubHelp home page GithubHelp logo

amsterdam / dso-import Goto Github PK

View Code? Open in Web Editor NEW
0.0 15.0 0.0 65 KB

Import van historische BAG (rest gaat via dataservices-airflow)

License: Mozilla Public License 2.0

Python 97.19% Makefile 2.01% Shell 0.80%
bag team-datadiensten

dso-import's Introduction

dso-import

This wil run the import for data needed in de dso-api.

For this import it uses the dynamically created models in dso-api.

For the historical bag import files need to be retrieved frm the GOB objectstore,

Therefore we need to set the GOB_OBJECTSTORE_PASSWORD:

GOB_OBJECTSTORE_PASSWORD=secret

And the database url where this should be imported :

export DATABASE_URL=postgres://dso_api:insecure@localhost:5415/dso_api

Then run the following command from the src directory:

python manage.py run_import bagh 

Or if the tables need to be recreated manually

python manage.py run_import bagh  --create

The historical bag import is meant to run with the acceptance or production database.

If not run with create tables will not be deleted and only the changed rows will be updated or new rows will be added. With the exception of the N-N table bagh_verblijfsobjectpandrelatie. That content completely replaced every time.

dso-import's People

Contributors

bheupers avatar dependabot[bot] avatar jjmurre avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.