Skip to main content

Caddy file server in Python with many additional features!

Project description

pyup

Getting Started

  • On the server host machine:
  1. Clone the repo:
git clone https://github.com/Alyetama/pyup.git
  1. Rename and update .env:
mv .env.example .env
nano .env  # or any other text editor
  1. 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.4.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

pyup-0.1.4-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page