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.9.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

django_sourcerer-1.9-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_sourcerer-1.9.tar.gz
  • Upload date:
  • Size: 7.3 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.9.tar.gz
Algorithm Hash digest
SHA256 757b75bc8d979c6b036637688a6533231a9091eea6f549a382940904e2d2383a
MD5 4510ec6895360291470ad22bae51ef42
BLAKE2b-256 6401eb772d2e6cfd54efcc8c35694defc579e28374a82a2bc62efa50e0ee65d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_sourcerer-1.9-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 755a7d01af5813e5c381dad4730e51c4920216f9b7e97bf3380ac6d2c27ef1a8
MD5 66af547214632ec57a627e97917e6cd3
BLAKE2b-256 5316be66babdb768eb3a07c410c477d9e72673d761aa592186758ab16fb2c0d6

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