Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

简易文件服务器

使用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!叫做文件正在写入

Metadata

Release files for FiletransferApp 0.0.2b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FiletransferApp 0.0.2b2
File Size Uploaded
FiletransferApp-0.0.2b2.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FiletransferApp 0.0.2b2
File Interpreter ABI Platform
FiletransferApp-0.0.2b2-py3-none-any.whl Python 3 none any Details

Total release size: 23.9 kB

Release files / FiletransferApp-0.0.2b2.tar.gz

Download URL FiletransferApp-0.0.2b2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b55798842adf2c113946dcd499ff41122b680eb5504733519a5ae8f96a4f4c3b
BLAKE2b-256 checksum
How to use checksums
1b6716855e4d89cbbf689f37ef316ba9d2eba88b9b4f0daebbf5479036ce10d9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / FiletransferApp-0.0.2b2-py3-none-any.whl

Download URL FiletransferApp-0.0.2b2-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49674c056e62e9accb260099d87b8f95e1f71de08ef02f3f806ea3fd86c2c411
BLAKE2b-256 checksum
How to use checksums
081e0dda30c568f8fad8b73b0a09860d5b3f5c43ee0f685e60c1436dbdb5ea4f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2b2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page