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.2.1.tar.gz (8.9 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.2.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tempspace_cli-1.2.1.tar.gz
  • Upload date:
  • Size: 8.9 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.2.1.tar.gz
Algorithm Hash digest
SHA256 8e9f1c3147850f8efe841c99eb825875f0fd799f82e9423c43a744fdd74a6ca4
MD5 751cbf5db763f3844a0d7297877965c0
BLAKE2b-256 36cfe8fe83ed9e050b541c16abfe3247aba20f9363f13797cef34c33f8dae932

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tempspace_cli-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 864355c6d81769503ba9f197db42e1229599099fe8219f7ef05cda58e8262c75
MD5 6933666b46652ae852ebee0bed14cd79
BLAKE2b-256 aad017606d0c4691e1c33aa81e2ee37823b941a1cab738d81ae84624d19e7199

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