Git Product home page Git Product logo

lil-sussy / django-crud-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.29 MB

This project is design to work with as many as different data sources type you want. You fetch your data, transforms it into a python object (I'm using petl as an example) give it to me, I send it back to the front-end. A config file allows you to configure which user has READ/WRITE/UPDATE/DELETE access to your different type of data. In this pro

Home Page: https://ett.cringeapp.net

License: Apache License 2.0

Python 34.83% TypeScript 3.79% HTML 0.55% CSS 23.39% JavaScript 6.64% Svelte 30.79%

django-crud-app's Introduction

A simple and generic Django and sveltejs Table CRUD app

This project is design to work with as many as different data sources type you want.

You fetch your data, transforms it into a python object (I'm using petl as an example) give it to me, I send it back to the front-end. A config file allows you to configure which user has READ/WRITE/UPDATE/DELETE access to your different type of data.

In this project users are authentified using my school's CAS url as an example.

How to use it ?

Step 1

Edit the config.py file /datahub/ and specify your views (your tables). Each view should refer to a single data source, meaning each view is a single table. Generic table which columns may be from different data sources are not supported yet. Be sure to specify the method and the url with passwords and everything for each view like shown in the example.

Step 2 Permissions and roles

Still in the /datahub/config.py file you can specify in your views persmissions for each custom roles.

Step 3 Roles users

Edit the config.py in /users/ to specify which users has which roles

Feel free to instead edit /users/authentification.py to allow role creation and handling with cas auth (natively supported by the project).

Go further

To this day only SQL is natively supported by this project, however the is scalable and any data source that looks pretty much like a table is supported by this project.

How to add support for a new datasource ?

Step 1

/datahub/pipelines/ is the directoy including every data sources pipelines supported to this day. If your needs aren't met feel free to add your own {data_source_type}_pipeline.py file to this directory.

Step2

Edit /datahub/pipelines/hub.py functions to include your new pipeline. Make sure that your pipeline returns a python dict in case of fetching and a boolean for action performing requests.

django-crud-app's People

Contributors

lil-sussy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.