Skip to main content

innovativeproject-django-sourcerer

Install

pip install django-sourcerer

Usage

Add django_sourcerer and rest_framework texts to settings.py under INSTALLED_APPS list.

INSTALLED_APPS=[
    ... 
    'django_sourcerer',
    'rest_framework'
]

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

For view in API Framework add following lines of code to your urls.py :

from django.urls import path, include
from django_sourcerer.urls import django_sourcerer_urls

urlpatterns = [
    path('', include(django_sourcerer_urls().urls))
]

Then just start the API ./manage.py runserver .

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

Metadata

Release files for django-sourcerer 2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sourcerer 2.1
File Size Uploaded Provenance Actions
django_sourcerer-2.1.tar.gz 7.7 kB Without provenance Details for django_sourcerer-2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-sourcerer 2.1
File Interpreter ABI Platform Actions
django_sourcerer-2.1-py3-none-any.whl Python 3 none any Details for django_sourcerer-2.1-py3-none-any.whl

Total release size: 19.4 kB

Release files / django_sourcerer-2.1.tar.gz

Download URL django_sourcerer-2.1.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0fadbfd81208f4f164fb28455735f26dfe845058d3fa64b41db86f0dcf46f38b
BLAKE2b-256 checksum
How to use checksums
800678f6b8059dda363467523bfb0a0b3d44a210e70902109d2b692dfcd52884
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / django_sourcerer-2.1-py3-none-any.whl

Download URL django_sourcerer-2.1-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c198e9c78b3f3241c15bfcb79e3f4fcc6b048ade976c590ecead4716bce90642
BLAKE2b-256 checksum
How to use checksums
df3a4f3dc90e8f27d41571c1e879f18912f7f9ab0ffd15b4bd5ffadf7fddee19
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for django-sourcerer 2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page