### 介绍
他的由来很简单,有时服务器之间会做文件的传输, 但可能是种种原因,或因为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 http://127.0.0.1:9090/
```
你可以打开浏览器去下载上传,也可以直接用curl来进行上传
```
curl -F "file=@app.py" http://127.0.0.1:9090/
```
下载的方法
```
curl -O http://127.0.0.1:9090/app.py
```
下面是浏览器的截图...

### to do list
1. fix run path
2. 配套一个客户端,支持断点续传和多线程下载。
他的由来很简单,有时服务器之间会做文件的传输, 但可能是种种原因,或因为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 http://127.0.0.1:9090/
```
你可以打开浏览器去下载上传,也可以直接用curl来进行上传
```
curl -F "file=@app.py" http://127.0.0.1:9090/
```
下载的方法
```
curl -O http://127.0.0.1:9090/app.py
```
下面是浏览器的截图...

### to do list
1. fix run path
2. 配套一个客户端,支持断点续传和多线程下载。
Metadata
Release files for fileporter 1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fileporter-1.8.tar.gz | 4.0 kB | Without provenance | Details |
Release files / fileporter-1.8.tar.gz
| Download URL | fileporter-1.8.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa7d09113429efeea30c2645797d553335122f3c033e4d2cc0ca66ff8e025ba6
|
|
BLAKE2b-256 checksum How to use checksums |
8284fd40f71d532747f6204f2d986ca41a8d472288e7eddea27fc590c1acce5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fileporter 1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.