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.0.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.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tempspace_cli-1.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 589e2b7b657c709cb668055568578230975b842e8a9e9813c850ad4e6d2b8bf0
MD5 71cdcf0acbf75cbc3bb7461a92e9633c
BLAKE2b-256 ab15b9e271563d744ef360290860c7482282295112455a33b4b41d1e00aa439b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tempspace_cli-1.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a12be7ab23be5e9a57aa59f756cc880b1c20387c0700661d3d6dcc6b8284278
MD5 60e438885e71b90329cbad521860dcfe
BLAKE2b-256 5be957f1228455cfd35f29d61e9bcf5b55f1f59ced4095eeb42bbc6c1f1fa494

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