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
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
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.8.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file django_sourcerer-1.8.tar.gz
.
File metadata
- Download URL: django_sourcerer-1.8.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6ee2fdef8a7abd60ba5971c20ffc9b651aa18c15520ae4dfa06451c00d856df |
|
MD5 | 7da65e95aa6e8d45423b3f6397ac0acf |
|
BLAKE2b-256 | edbfec1731cbdc608d6ece3dd7c78847e8731531eafc19dff145fc7a62e4ca74 |
File details
Details for the file django_sourcerer-1.8-py3-none-any.whl
.
File metadata
- Download URL: django_sourcerer-1.8-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a2c98a1a1084a03542cbf716aa1172969d4f533eed61f431e2bffc311542094 |
|
MD5 | c4092e2a285e59f87d2f25fb03abab4c |
|
BLAKE2b-256 | 5b8703e15bad9fb824e940ad9b96225c4ceebfdfb02536825857a06fc24d616f |