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
Built Distribution
Close
Hashes for peertube_uploader-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97feecfbbc99b47e8c9f00b09e3d397f5e0e2c034a37e690fd883791c0db6269 |
|
MD5 | e2b7be472d52a8107bed082262ce5655 |
|
BLAKE2b-256 | a83c0f05165b7daf1626eabeacd97778202f8eef7013f36fa670b7f581bcf18b |