Back to services

copyparty

Portable file server with accelerated resumable uploads, deduplication, WebDAV, FTP, zeroconf, media indexer, video thumbnails, audio transcoding, and write-only folders, in a single file with no mandatory dependencies.

View alternatives to copyparty
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

copyparty is an open-source (MIT license) portable file server from Norway. Its goal is to let you upload and download files, with resumable transfers, from any browser. The server only needs Python (either 2 or 3), and all other dependencies are optional. The whole program can be packaged as a single file that you download and run directly. The project also offers a read-only online demo server so you can try it out first.

Key Features

  • Multi-protocol support: HTTP(S), WebDAV (read/write), SFTP, FTP(S), TFTP, SMB/CIFS. The official documentation notes that SMB is insecure and slow, and does not recommend using it over the public internet.
  • Accelerated, resumable uploads: Drag and drop files or folders into the browser to upload them, with chunked uploads and resume support. You can also download a file while it is still being uploaded (race the beam), and the control panel shows the estimated completion time for each incoming file.
  • Upload management: You can undo or delete files you uploaded by mistake (unpost), and you can set an expiry time on uploaded files so they are deleted automatically when it runs out.
  • File management: Cut/paste, rename and delete, batch rename with F2, and download folders as zip or tar archives.
  • Sharing: Generate temporary share links for files or folders, with filekey/dirkey support to prevent anyone from brute-forcing file names.
  • Deduplication and indexing: Symlink-based upload deduplication. Files can be indexed and searched by size, date, path or name, mp3 tags and more. Drag a file into the browser to check whether the server already has it.
  • Media features: Generates thumbnails and lets you browse them in a grid view. The built-in media player supports almost all audio formats, and also offers m3u8 playlists, an equalizer and dynamic range compression.
  • Text and documents: The text viewer can stream log files in real time. The Markdown viewer comes with two editors. Through WOPI, you can edit Office documents in the web interface.
  • Feeds: You can monitor a folder with an RSS reader, or browse and download files from an e-book reader via OPDS.
  • Permissions and authentication: Permissions are set per folder and per user. It supports automatic login or access restriction by IP range (CIDR), and can connect to identity providers such as OAuth or use generic header authentication. Password hashing is also supported.
  • Extensions and integrations: Actions such as uploading and renaming can trigger event hooks (which can also send ZeroMQ messages). It supports file-parsing plugins and behavior-handling plugins, can export Prometheus metrics, and can use cloud storage such as AWS S3 as a storage backend.
  • LAN conveniences: Automatically announces the service on the local network via mDNS and SSDP (zeroconf), and can print a QR code for quick access.

Target Users and Use Cases

It suits individual users, home NAS users and self-hosting enthusiasts who want to set up a file server quickly. It is also a good fit when you need to transfer files between devices temporarily, or to give other people a place to upload and download files. The project also provides an Android app (one-tap upload) and an iOS shortcut.

Installation and Deployment

  • Simplest way: Download copyparty-sfx.py and run it directly with Python. It is a self-extracting file; if you would rather avoid self-extraction, you can use copyparty.pyz (a zipapp) instead, at slightly lower performance.
  • Install with pip: python3 -m pip install --user -U copyparty
  • Windows: Use copyparty.exe (Win8+) or copyparty32.exe (Win7+); no Python installation is needed.
  • Packages: Arch Linux (pacman -S copyparty), Homebrew (brew install copyparty ffmpeg), Gentoo ::guru, Nix, and a NixOS module.
  • It can also be installed and run on Android and iOS, or placed behind a reverse proxy and published to the internet through a Cloudflare Tunnel.

Technical Requirements

  • Server: Python 2 or 3. All other dependencies are optional and enable extra features such as thumbnails and audio tags.
  • Client: Almost any browser works. You can also connect with WebDAV, FTP and other clients, sync folders, or mount it as a local drive.

Notable Characteristics

  • Very high performance: the project claims roughly 8 GiB/s for downloads and 1 GiB/s for uploads with the default configuration.
  • A single file with no installation required, making it highly portable and able to run on all sorts of unexpected devices.
  • Configuration can be done with command-line arguments, a config file, or a mix of both; volume flags (volflags) give fine-grained control over upload rules, automatic compression, file permissions, ownership and more.