Giter Site home page Giter Site logo

patrickcarriello / ms-access-http-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vikilpet/ms-access-http-server

0.0 1.0 0.0 9 KB

MS Access HTTP Server (Python)

Home Page: https://vikilpet.wordpress.com/2019/08/29/ms-access-http-server/

Python 100.00%

ms-access-http-server's Introduction

MS Access HTTP Server (Python)

Obtaining data from a Microsoft Access database using an HTTP request. Output format: JSON, CSV, HTML. You can also make requests to add, modify and update data.

HTML output example:

JSON:

Adding a record:

Usage

Run http_query.py, type URL in browser:

http://127.0.0.1:80/db_test?mime=html&headers=true&sql=SELECT TOP 3 * FROM Suppliers

Parameters:

  • mime - output format (html, json or csv).
  • headers - column headers.
  • sql - actual query. When you generate queries in your application, don't forget to encode in URL-friendly format

Setup

Requirements: Windows 7 and above, Python 3.7 Download project, install requirements: pip install -r requirements.txt Change settings in settings.ini

Section web server - settings for the HTTP server.

  • bind_ip - local IP address to which the server is bound. By default it is 127.0.0.1 so server will only respond to requests received from the same computer.
  • white_list - list of IP adresses separated by commas from which connections are allowed.

Then you need to add the databases. Each database (mdb or accdb file) is a separate section with a unique name. Settings:

  • db - full path to file.
  • driver - ODBC driver name.
  • uid - user.
  • pwd - password if required.
  • systemdb - .mdw file if required.

Optionally you can add test queries to be executed at startup of msaccess.py:

  • test_run - SQL query for selection (SELECT).
  • text_exec - SQL query for add/modify/delete (INSERT/UPDATE/DELETE).

ms-access-http-server's People

Contributors

vikilpet avatar

Watchers

James Cloos 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.