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

After those commands you can query to shell as following script:

from django_sourcerer.models import Models
Models.objects.values()

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

Uploaded Source

Built Distribution

django_sourcerer-1.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_sourcerer-1.3.tar.gz
  • Upload date:
  • Size: 6.6 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.3.tar.gz
Algorithm Hash digest
SHA256 2c2613f4c64c0736133e879ea7389b5ce9cfbf06112a7d8464b5f5c46ed1b0c8
MD5 baf18d25230b2546dc6105d4ae386961
BLAKE2b-256 1d8152175f0ed1124eb3faf592485a83acf52d7cadbe5ce47a458c4f31128bc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_sourcerer-1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3d9f8680acfcbc429d496a6af2bce998914fd4034a2e5f4ea36dfb5d441677cc
MD5 6a232839fb2e303ba907ad9cdad2ef37
BLAKE2b-256 f07a30decb30e9d5a5d2e6fb0d6c37b0fa412d13d5b6a16196bb0d3975f4ad0d

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