Skip to content
/ shiftpy Public

Python restful API to help sending data to Redshift

License

Notifications You must be signed in to change notification settings

guitmz/shiftpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shiftpy

Python restful API to help sending data to Redshift

Running it

You need to edit const.py to match your settings. I recommend running it as a Docker container:

$ docker pull guitmz/shiftpy
  
$ docker run -d -p 5000:5000 guitmz/shiftpy

 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

But you can also run it like this:

$ git clone https://github.com/guitmz/shiftpy.git && cd shiftpy

$ export FLASK_APP=app.py

$ flask run

  * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Usage

curl -XPOST -H "Content-Type: application/json" \
     http://127.0.0.1:5000/send_to_redshift/ -d \
     '{"s3path": "accounts/accounts_oct_26.csv", "table_name":"accounts"}'

About

Python restful API to help sending data to Redshift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages