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

Requirements

  • python-requests

Usage

$ pip install -r requirements.txt
$ ./peertube-uploader.py 
usage: peertube-uploader.py [-h] [-u USERNAME] [-p PASSWORD] [-c CLIENT_ID]
                            [-s CLIENT_SECRET] [-t ACCESS_TOKEN] -f FILE
                            [-j JSON] [-n NAME] [-ch CHANNEL] [-e ENDPOINT]
                            [--private] [--skip {same_name_on_server}]
                            [--nocomments] [--subs CODE FILE]

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:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Username
  -p PASSWORD, --password PASSWORD
                        Password
  -c CLIENT_ID, --client_id CLIENT_ID
                        Client ID to use
  -s CLIENT_SECRET, --client_secret CLIENT_SECRET
                        Client secret to use
  -t ACCESS_TOKEN, --access_token ACCESS_TOKEN
                        Access token to use
  -f FILE, --file FILE  File to upload
  -j JSON, --json JSON  Path to JSON containing extra upload params
  -n NAME, --name NAME  Name of the uploaded video
  -ch CHANNEL, --channel CHANNEL
                        Channel ID to upload to
  -e ENDPOINT, --endpoint ENDPOINT
                        Host name
  --private             Set video as private
  --skip {same_name_on_server}
                        Skip upload under certain conditions
  --nocomments          Disable comments
  --subs CODE FILE      Select the language-code and caption file. One file
                        per language.You can use this multiple times (once per
                        language). Allowed keys are a3,af,am,ar,as,az,be,bg,br
                        ,bs,ca,cs,cy,cz,da,de,ee,el,en,eo,es,et,eu,fa,fi,fo,fr
                        ,ga,gd,gl,gv,he,hi,hr,hu,ia,id,in,is,it,iu,iw,ja,ka,kl
                        ,kn,ko,ks,kw,ky,lo,lt,lv,mi,mk,ml,mr,ms,mt,nb,nl,nn,no
                        ,nr,ny,oc,or,pa,pd,ph,pl,pp,pt,ro,ru,rw,sd,sh,si,sk,sl
                        ,sp,sq,sr,ss,st,sv,ta,te,tg,th,tl,tn,tr,ts,tt,uk,ur,uz
                        ,ve,vi,wa,xh,yi,zh,zu

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

peertube_uploader-0.0.1-py3.6.egg (25.3 kB view details)

Uploaded Egg

File details

Details for the file peertube_uploader-0.0.1-py3.6.egg.

File metadata

  • Download URL: peertube_uploader-0.0.1-py3.6.egg
  • Upload date:
  • Size: 25.3 kB
  • Tags: Egg
  • 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.0.1-py3.6.egg
Algorithm Hash digest
SHA256 76e2f48ae8547340bae96893017d4f03ea3152552513c33b6dae9ff1cdb79b40
MD5 d752bd9549017808f52b8783c7b1bba0
BLAKE2b-256 501c7a1581544a13a976a4d3107a3dfbeaca15721d11db53505b4d43c7d81047

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