Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neilkuan/flask-uploadfile
This for easy upload file via python flask .
https://github.com/neilkuan/flask-uploadfile
docker flask python
Last synced: about 1 month ago
JSON representation
This for easy upload file via python flask .
- Host: GitHub
- URL: https://github.com/neilkuan/flask-uploadfile
- Owner: neilkuan
- License: apache-2.0
- Created: 2020-07-22T09:58:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-07T04:59:17.000Z (6 months ago)
- Last Synced: 2024-05-07T05:36:42.297Z (6 months ago)
- Topics: docker, flask, python
- Language: Python
- Homepage:
- Size: 119 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-uploadfile
[![CodeFactor](https://www.codefactor.io/repository/github/neilkuan/flask-uploadfile/badge/master)](https://www.codefactor.io/repository/github/neilkuan/flask-uploadfile/overview/master)
[![codecov](https://codecov.io/gh/neilkuan/flask-uploadfile/branch/master/graph/badge.svg)](https://codecov.io/gh/neilkuan/flask-uploadfile)
![Publish Docker](https://github.com/neilkuan/flask-uploadfile/workflows/Publish%20Docker/badge.svg)
[![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0)### This for easy upload file via python flask .
- enable login page
- uploadfile
- downloadfile
- docker image
### you can run in docker .### also can run in local
```bash
$ git clone https://github.com/neilkuan/flask-uploadfile.git$ cd flask-uploadfile/
$ export URL='0.0.0.0'
$ python app.py
open your browser http://localhost:8080
# default login admin/admin
```### Usage Docker
```bash
docker run -d -p 8080:8080 ghcr.io/neilkuan/flask-uploadfile/flask-uploadfile:latest
```### Usage Docker-compose
```bash
docker-compose up -d
```### Use curl and wget , uploadfile and downloadfile and deletefile
```bash
$ touch aa.tar$ curl -X POST -F file=@"aa.tar" http://localhost:8080/uploadfile
$ wget http://localhost:8080/downloadfile/aa.tar
$ curl -X DELETE http://localhost:8080/deletefile/aa.tar
```## Note for run testing need to do first export ENV
```bash
export PASSWORD=admin
```