Skip to main content

A command-line tool for uploading files to Tempspace.

Project description

🚀 Tempspace

Tempspace is a terminal-style file sharing service that allows you to upload files and share them via a link, with features like password protection, one-time downloads, and automatic expiration.

Screenshot

✨ Features

  • Multiple Upload Methods: Use the web interface, cURL, or the official CLI tool.
  • Security: Optional password protection, one-time downloads, and rate limiting.
  • Modern UI: A terminal-inspired design with QR code generation and upload history.
  • File Management: Support for large files, multiple expiry options, and automatic cleanup.

🚀 Getting Started

Method 1: Using the Web Interface

The easiest way to use Tempspace is through the web interface.

  1. Open the service URL (e.g., http://localhost:8000) in your browser.
  2. Drag and drop a file or click to browse.
  3. Configure the expiry time and an optional password.
  4. Upload and share the generated link.

Method 2: Using cURL

You can use cURL to upload files directly from your terminal.

# Basic upload
curl -F "file=@/path/to/file.txt" -F "hours=6" https://tempspace.fly.dev/upload

# With a password
curl -F "file=@/path/to/secret.txt" -F "password=secret123" https://tempspace.fly.dev/upload

Method 3: Using the Official CLI Tool

For a more integrated terminal experience, you can install the official CLI tool from PyPI.

Installation

pip install tempspace-cli

Usage

# Basic upload
tempspace /path/to/document.pdf -t 6h

# With a password
tempspace /path/to/secret.txt -p "mypassword"

# Point to a self-hosted server
tempspace /path/to/file.txt --url http://localhost:8000

🔧 Self-Hosting

You can run your own instance of Tempspace.

Installation

# Clone the repository
git clone https://github.com/your-repo/tempspace.git
cd tempspace

# Install dependencies
pip install -r requirements.txt

# Configure
cp .env.example .env
nano .env  # Change the admin password

Running the Server

python main.py

The server will be available at http://localhost:8000.

🛡️ Admin & Configuration

For advanced configuration, such as setting up a reverse proxy, managing admin endpoints, and more, please refer to the project's documentation or open an issue.

🤝 Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

📝 License

This project is licensed under the MIT License.

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

tempspace_cli-1.1.2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

tempspace_cli-1.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file tempspace_cli-1.1.2.tar.gz.

File metadata

  • Download URL: tempspace_cli-1.1.2.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tempspace_cli-1.1.2.tar.gz
Algorithm Hash digest
SHA256 3ef9886027800d184beaddc640b0ed8628d886e75afef4d0ea8da9cb50b3e334
MD5 234109b3b5557490ffe3f8ae308ed9bd
BLAKE2b-256 c010bb73c3a0629947f702ed4809fdb47ef075078f701ab21b124027a6c38b77

See more details on using hashes here.

File details

Details for the file tempspace_cli-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: tempspace_cli-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tempspace_cli-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f892ff736e89752af11d77356aedfd85191fab29c26f23954f5e45c999f7faf8
MD5 384198eee79ace2c5aad9275fc002eed
BLAKE2b-256 fa790fc220d9480c82940a1506a1fd8bdba603ff7fd74988b3fc9d5b2a2a2681

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