Giter Club home page Giter Club logo

metadata-extractor's Introduction

metadata-extractor

Setup

Assuming you have python3 and pip installed, you should get up a virtualenv for this project. If you don't have a preferred way to set that up run the following commands from the root directory of this project:

python3 -m venv ./.venv/djangodev

source ./.venv/djangodev/bin/activate

pip install -r requirements.txt

This will install Django and sqlalchemy in a local venv.

Once you have everything set up locally run:

python manage.py runserver

from metadata-extractor/metadb to start the django server locally on port 8000. To customize the port simply include the new port at the end of the previous command.

To get the metadata From a database please send a get request with a URL Encoded database connection string at whatever port on localhost you spun up the server on.

http://localhost:8000/metadata/postgresql%3A%2F%2Fpostgres%3Secretb%40HOSTNAME%3A5432%2FDBNAME%3Fsslmode%3Ddisable

It should return a list of the following objects mapping to your Database:

    {
       "columns": [
           {
               "col_name": "",
               "col_type": ""
           },
       ],
       "name": "",
       "num_rows": "",
       "database": "",
       "schema": ""
   },

One thing I wasn't sure of was what the schema field meant, none of the databases I tried had a value for the field table.schema, but I believe with clarification I could fill that out.

metadata-extractor's People

Contributors

adam-macioszek avatar

Stargazers

 avatar

Watchers

Carter avatar  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.