Skip to main content

A simple file transfer service for temporary file sharing

Project description

Simple File Transfer (SFT)

A simple, temporary file transfer service for sharing files between machines.

Installation

pip install simple-file-transfer

Quick Start

Server Setup

pip install simple-file-transfer
sft serve --port 12345

Upload a File (Machine A)

sft upload ./my-file.tgz 1h

Output:

Uploaded my-file.tgz 5GB sha256:...
The file will be deleted in 1h (2025-01-01 00:01:00)
To download your file, enter: sft download 763298

Download a File (Machine B)

sft download 763298

Output:

File downloaded my-file.tgz 5GB sha256:...
The file will be deleted in 55min (2025-01-01 00:01:00)

Configuration

By default, SFT connects to sft.pzjj.org:12345. To use a different server, set the SFT_SERVICE environment variable:

export SFT_SERVICE=your-server.com:12345

Or use the --service flag:

sft upload --service your-server.com:12345 ./file.txt 1h

Time Formats

Supported time formats for expiry:

  • 1h - 1 hour
  • 30m - 30 minutes
  • 2d - 2 days
  • 1w - 1 week

Docker Deployment

docker build -t sft-server .
docker run -p 12345:12345 -v /data/sft:/data sft-server

Features

  • Simple CLI interface
  • Automatic file expiry
  • SHA256 checksums for integrity
  • Minimal dependencies
  • Easy deployment For detailed deployment instructions, see DEPLOYMENT.md.

Project details


Download files

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

Source Distribution

simple_file_transfer-0.2.1.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_file_transfer-0.2.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file simple_file_transfer-0.2.1.tar.gz.

File metadata

  • Download URL: simple_file_transfer-0.2.1.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for simple_file_transfer-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5e71c8f0287ff1791acb027938791241579c309a3e3751ef39678b4c29356ab6
MD5 845f74d6a8932c248de36c10429a51a2
BLAKE2b-256 101b8cf701ef43bae3434acf8f9f12633e3af3247bf2372ed314fbca7262689f

See more details on using hashes here.

File details

Details for the file simple_file_transfer-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_file_transfer-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f9d9c62cbcdfbb94acb18ea16eba7c19f0b16e1ff0add35d26df626d5bac24a
MD5 068015f9d09759afefce9066215aeaf9
BLAKE2b-256 ae050478392925ab360bd7e619e0201bb1360dd7d00b46128d1d846ef4f59ac0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page