Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

support download/upload/browser,use tornado

Project description

### 介绍

他的由来很简单,有时服务器之间会做文件的传输, 但可能是种种原因,或因为scp麻烦,或对端没有外网,或各种.....

### 安装
```
git clone git@github.com:rfyiamcool/fileporter.git
cd fileporter;python setup.py install

或者.

pip install fileporter
```
### 方法

运行

```
[ruifengyun@devops fileporter ]$ python fileporter.py 9090
INFO:root:Serving HTTP on 0.0.0.0 port 9090 ...

and ,same as SimpleHTTPServer method

[ruifengyun@devops ~ ]$ python -m fileporter.server 8080
INFO:root:Serving HTTP on 0.0.0.0 port 8080 ...


```

你可以打开浏览器去下载上传,也可以直接用curl来进行上传

```
curl -F "file=@app.py" http://127.0.0.1:9090/
```

下载的方法

```
curl -O http://127.0.0.1:9090/app.py
```

下面是浏览器的截图...
![Alt text](fileporter.jpg)


### to do list
1. fix run path

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fileporter, version 1.7
Filename, size File type Python version Upload date Hashes
Filename, size fileporter-1.7.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page