Caddy file server in Python with many additional features!
Project description
pyup
Getting Started
- On the server host machine:
- Clone the repo:
git clone https://github.com/Alyetama/pyup.git
- Rename and update
.env
:
mv .env.example .env
nano .env # or any other text editor
- Create a docker volume, then run the container:
docker volume create fileserver_mongodb_volume
docker-compose up -d
- Copy the
.env
file from the server host to the client machine (where you will upload from), then, run:
mv .env ~/.pyup
Install
pip install pyup
Basic Usage
usage: pyup [-h] [-d DOMAIN_NAME] [-k] [--overwrite] [-l] [--no-notifications] [-v {0,1,2,3,4,5}] [-p]
[--save-logs]
[files ...]
positional arguments:
files Files to upload
options:
-h, --help show this help message and exit
-d DOMAIN_NAME, --domain-name DOMAIN_NAME
The domain name to use for the URL
-k, --keep-name Keep the original file name
--overwrite Overwrite if name is kept and the file name already exists on the server
-l, --local-only Allow uploads from local IP addresses only
--no-notifications Suppress notifications (notifications are supported on macOS only)
-v {0,1,2,3,4,5}, --verbosity-level {0,1,2,3,4,5}
Set the logging verbosity level
-p, --parallel Upload files in parallel
--save-logs Save logs to a file
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
pyup-0.1.3.tar.gz
(6.5 kB
view details)
Built Distribution
pyup-0.1.3-py3-none-any.whl
(6.9 kB
view details)
File details
Details for the file pyup-0.1.3.tar.gz
.
File metadata
- Download URL: pyup-0.1.3.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Darwin/21.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 096f3d38376837d056ce2fe3b38c1034219db68e4ae7771fddcddcc73c1b1318 |
|
MD5 | 1cfdfe449b23ed1da6fd8caa820f335d |
|
BLAKE2b-256 | 517c3a713eff63a145278d3a856c35b181d12387536a35afc7f86e359c088ea1 |
File details
Details for the file pyup-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pyup-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Darwin/21.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4553cb631d0ee1423a4092c103e3a9fe7079973e35ddd24fb997a91e58b82edf |
|
MD5 | bba78c7d9551d7b1254fbe7710847400 |
|
BLAKE2b-256 | 56c3806690f73dc3d06060a558c27ebd4258e77d2e5d22661b2a28e6a2ef7f8b |