Django app that import and correlating data from external sources.
Project description
innovativeproject-django-sourcerer
Links
- Pypi https://pypi.org/project/django-sourcerer/
- Source code https://github.com/nokia-wroclaw/innovativeproject-django-sourcerer
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
Release history Release notifications | RSS feed
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.6.tar.gz
(7.6 kB
view details)
Built Distribution
File details
Details for the file django_sourcerer-1.6.tar.gz
.
File metadata
- Download URL: django_sourcerer-1.6.tar.gz
- Upload date:
- Size: 7.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8537dcc7404bbea186be33aa858d220a7b7a8130b1d852df98f818768d778c96 |
|
MD5 | 06b05affeb99cd7cee40d6572c05cc71 |
|
BLAKE2b-256 | 6d3a78e5f2d7e6db8ebaa382c2f2f185a473b9e3e84571c30320d0d3cd01157c |
File details
Details for the file django_sourcerer-1.6-py3-none-any.whl
.
File metadata
- Download URL: django_sourcerer-1.6-py3-none-any.whl
- Upload date:
- Size: 11.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40bceb28d3b0fa174a7f96f0f69a76ccab66a62e99b2aeb601a1ac8e9d5663f5 |
|
MD5 | aaafaf2de02afaffb96cfd9f23c4f343 |
|
BLAKE2b-256 | 7fadcf5af303f26b1b87b5895adf620ebfde7f76cf87d2ea9d82cf04ee5cb59f |