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.
✨ 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.
- Open the service URL (e.g.,
http://localhost:8000) in your browser. - Drag and drop a file or click to browse.
- Configure the expiry time and an optional password.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tempspace_cli-1.2.2.tar.gz.
File metadata
- Download URL: tempspace_cli-1.2.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dc57429bfdf05d0d360ef94732cca322ef3e7b0219bc676074f822b36c6e8af
|
|
| MD5 |
033e2566fd213d97eb0b403aef76dca8
|
|
| BLAKE2b-256 |
fcdf4add6a627b783368b66a6af689546afde0f738fdc53c2c29214620db8cb4
|
File details
Details for the file tempspace_cli-1.2.2-py3-none-any.whl.
File metadata
- Download URL: tempspace_cli-1.2.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
119eae29a37b2fe06cb6804a3d8ddcd4689ac0e7f4c2e315f6ea6882007febc8
|
|
| MD5 |
cb5657c3550eb0d07aa57315b7e60e6f
|
|
| BLAKE2b-256 |
7ca770c5c3197e8e346ab71f55d766d29457dfff1ca0b4019f6755017a5b3130
|