Skip to main content

Django app that import and correlating data from external sources.

Project description

innovativeproject-django-sourcerer

Links

Install

pip install django-sourcerer

Usage

Add django_sourcerer text to settings.py under INSTALLED_APPS list.

INSTALLED_APPS=[
    ... 
    'django_sourcerer'
]

Add also to settings.py information that where the config file is located.

SOURCERER_CONFIG_FILES = [
    "project_path/example.yaml"
]

Then run following commands:

./manage.py makemigrations django_sourcerer
./manage.py migrate

For update objects from source type following command:

./manage.py update_objects

Library works with 'csv' datas now. It will be updated for json&xls formats.

Example .yaml File

name: <name of data source>
source: <endpoint of data source>
format: csv
columns:
  - external_name: <column name>
    type: <column type e.g : int>
  - external_name: <column name>
    type: <column type e.g : str>

Requires

  • Python 3

Project details


Download files

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

Source Distribution

django_sourcerer-1.7.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

django_sourcerer-1.7-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file django_sourcerer-1.7.tar.gz.

File metadata

  • Download URL: django_sourcerer-1.7.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for django_sourcerer-1.7.tar.gz
Algorithm Hash digest
SHA256 e6f260a423707c6b74610a5f862f9f01d9920c9dea0e27c0f95f9c1801b8d99e
MD5 30205f85fd28876a4116b99d0dd6bb8b
BLAKE2b-256 1ccda3bd12248580d96a9a3f9cafafac2236a0c5e3d54089d852d1471b63098c

See more details on using hashes here.

File details

Details for the file django_sourcerer-1.7-py3-none-any.whl.

File metadata

  • Download URL: django_sourcerer-1.7-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for django_sourcerer-1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a84be79444121924ff8b6a2ec057142d202984cd9a0699daca54ca49a34177c4
MD5 4f439dba21b6eaef040e71818f4d2c48
BLAKE2b-256 189488f179eff22b7fb93d33d9268dccf38072a8f2ac32330ef0a109c4a0355e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page