Skip to main content

django-thjodskra is a simple app for integrating the icelandic national registry into your django project

Project description

django-thjodskra
================

django-thjodskra is a simple app for integrating the icelandic national registry into your project.
You still need to aquire the data files through the proper channel. This project only contains django models and functions for dealing with the archaic fileformat provided by the registry distributors.

###Installation:
pip install django-thjodskra

###Usage:
thjodskra.models.Person corresponds to rows in the national registry.

python manage.py import_entities
This should only be used for the initial import of registry data, i.e. when you have an empty DB and a big text file containing the complete registry.

python manage.py fetch_update
Fetches update file via FTP, this file can then be used with update_people

Requires django settings:

THJODSKRA = {
'host': [Address of your update provider],
'username': [FTP Username],
'password': [FTP Password],
'file': [Path and name of update file to fetch]
}

python manage.py update_entities [filename]
Imports people that have not yet been added to local database and updates the info of those who have.

This can then be added to any script or cronjob as needed.

Project details


Release history Release notifications

History Node

0.562

History Node

0.561

History Node

0.411

History Node

0.65

History Node

0.56

History Node

0.55

History Node

0.53

History Node

0.52

History Node

0.51

History Node

0.41

History Node

0.33

History Node

0.32

History Node

0.31

History Node

0.30

History Node

0.29

History Node

0.28

History Node

0.27

History Node

0.26

History Node

0.25

History Node

0.24

History Node

0.23

History Node

0.22

History Node

0.21

History Node

0.20

History Node

0.16

History Node

0.15

History Node

0.14

History Node

0.13

History Node

0.12

History Node

0.11

This version
History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-thjodskra-0.6.tar.gz (8.3 kB) Copy SHA256 hash SHA256 Source None Jan 5, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page