A file useful simple transfer service app
Project description
简易文件服务器
使用python django 总共三个映射,默认80端口
/postfile/ 上传接口
/upload/ 上传页面接口
/public/ 上传文件列表接口
/还有个主页访问获取当前网卡ip
会在运行目录生成server.log日志
安装
[编译版本]pip install .
[测试版本]pip install -i https://test.pypi.org/simple/ FiletransferApp
[发行版本]pip install FiletransferApp
[不可用]setup.py install[原因:会安装为egg包,Django目前无法识别包文件]
运行
python -m app.filetransfer #默认运行
python -m app.filetransfer -h #帮助
卸载
pip uninstall filereansferapp
windows使用
[上传]浏览器打开http://localhost/upload/
[浏览和下载]浏览器打开http://localhost/public/
其他机器访问localhost换成当前网卡的ip
linux 使用
[上传]curl http://localhost/postfile/ -F "file=@/path"
[上传]curl localhost/postfile/ -F "file=@/root/demo"
[上传多个]curl localhost/postfile/ -F "file=@filename1" -F "file=@filename2"
[浏览] curl http://localhost/public/
[下载] wget http://localhost/public/filename
path是绝对路径,也可以用当前路径 filename填你要下载的文件名 有一种no files for upload!叫做文件正在写入
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file FiletransferApp-0.0.2b2.tar.gz.
File metadata
- Download URL: FiletransferApp-0.0.2b2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b55798842adf2c113946dcd499ff41122b680eb5504733519a5ae8f96a4f4c3b
|
|
| MD5 |
9554f55b02ad8840832be718e20d3666
|
|
| BLAKE2b-256 |
1b6716855e4d89cbbf689f37ef316ba9d2eba88b9b4f0daebbf5479036ce10d9
|
File details
Details for the file FiletransferApp-0.0.2b2-py3-none-any.whl.
File metadata
- Download URL: FiletransferApp-0.0.2b2-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49674c056e62e9accb260099d87b8f95e1f71de08ef02f3f806ea3fd86c2c411
|
|
| MD5 |
752c56ff7199641493d263761ae4caef
|
|
| BLAKE2b-256 |
081e0dda30c568f8fad8b73b0a09860d5b3f5c43ee0f685e60c1436dbdb5ea4f
|