Skip to main content

A script to make uploading to peertube instances easier.

Project description

PeerTube Uploader

A script to make uploading to peertube instances easier.

For documentation on the API used see https://docs.joinpeertube.org/api-rest-reference.html

Installation

pip install peertube-uploader

Development

pip install -r requirements.txt

Usage

One installed you can run the ptu command.

$ ptu 
usage: main.py [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]
               [-u USERNAME] [-p PASSWORD] [-e ENDPOINT] [-c CLIENT_ID]
               [-s CLIENT_SECRET] [-t ACCESS_TOKEN]

A script to make uploading to peertube instances easier. For documentation on
the API used see https://docs.joinpeertube.org/api-rest-reference.html

optional arguments:
  --version             show program's version number and exit
  -v, --verbose         Increase verbosity of output. Can be repeated.
  -q, --quiet           Suppress output except warnings and errors.
  --log-file LOG_FILE   Specify a file to log output. Disabled by default.
  -h, --help            Show help message and exit.
  --debug               Show tracebacks on errors.
  -u USERNAME, --username USERNAME
                        Username (alternatively use PEERTUBE_USERNAME env var)
  -p PASSWORD, --password PASSWORD
                        Password (alternatively use PEERTUBE_PASSWORD env var)
  -e ENDPOINT, --endpoint ENDPOINT
                        URL to a server e.g https://peertube.cpy.re/
                        (alternatively use PEERTUBE_ENDPOINT env var)
  -c CLIENT_ID, --client_id CLIENT_ID
                        Client ID to use. Can also be generated or be defined
                        in env var PEERTUBE_CLIENT_ID
  -s CLIENT_SECRET, --client_secret CLIENT_SECRET
                        Client secret to use. Can also be generated or be
                        defined in env var PEERTUBE_CLIENT_SECRET
  -t ACCESS_TOKEN, --access_token ACCESS_TOKEN
                        Access token to use. Can also be generated or be
                        defined in env var PEERTUBE_ACCESS_TOKEN

Commands:
  complete       print bash completion command (cliff)
  help           print detailed help for another command (cliff)
  import         Trigger an import of a URI (peertube-uploader)
  upload-video   Upload videos from the file-system (peertube-uploader)

Thanks

Thanks to all the contributors.

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

peertube-uploader-0.1.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peertube_uploader-0.1.2-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file peertube-uploader-0.1.2.tar.gz.

File metadata

  • Download URL: peertube-uploader-0.1.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for peertube-uploader-0.1.2.tar.gz
Algorithm Hash digest
SHA256 30756de6a4ee535041883ee15ea1b3badba5edce6d5801e4769b934ff93fa7f0
MD5 766fe215e0e14877d3637376592314b7
BLAKE2b-256 bedffc51a66b560925f7fb5220d1491305b072cf8823e6de9eed49fd3b55b6a9

See more details on using hashes here.

File details

Details for the file peertube_uploader-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: peertube_uploader-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for peertube_uploader-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97feecfbbc99b47e8c9f00b09e3d397f5e0e2c034a37e690fd883791c0db6269
MD5 e2b7be472d52a8107bed082262ce5655
BLAKE2b-256 a83c0f05165b7daf1626eabeacd97778202f8eef7013f36fa670b7f581bcf18b

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