Skip to content

Frameworkless python HTTP server for persisting POST'ed form data with Ajax front-end sample code.

Notifications You must be signed in to change notification settings

uglycoyote/GenericFormDataServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenericFormDataServer

Generic Form Data server for python 2.x by Mike Cline

see the blog post about this here

extremely simple HTTP server supporting the following queries:

POST /post

post form data. Dictionary of key-value pairs from form data will be added to local data store

GET /data

returns the saved data as json, as a list of dictionaries of posted form data

POST /remove

removes any posts matching the query, e.g., if you post ID=938593 to /remove, it will remove any items from the data store where ID=938593. If you post multiple key-value pairs, then it will only remove the elements which match all of the values.

also serves files from the running directory

index.html

Sample html form for use with GenericFormDataServer.py

dynamic.html

Sample html and javascript for single-page web app talking to GenericFormDataServer via ajax get/post requests. Displays notes as grey bubbles.

About

Frameworkless python HTTP server for persisting POST'ed form data with Ajax front-end sample code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages