Skip to main content

Python module to interact with a Peertube instance's API.

Project description

PyPeertube

Python module to interact with a Peertube instance's API.

Example

Search for videos tagged animal or dog and containing puppy in the title or description, printing the video's title and link of each result.

from pypeertube.client import ApiClient
from pypeertube.videos import search_videos

PEERTUBE_URL = "https://my.peertube.tld"
PEERTUBE_USERNAME = "my_username"
PEERTUBE_PASSWORD = "my_password"
SEARCH_STRING = "Puppy"
SEARCH_TAGS = ["animal", "dog"]

with ApiClient(PEERTUBE_URL, PEERTUBE_USERNAME, PEERTUBE_PASSWORD) as client:
    for video in search_videos(client, SEARCH_STRING, tags_or=SEARCH_TAGS):
        print(f"{video.name}: {client.base_url}/w/{video.short_uuid}")

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

pypeertube-1.0.1.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

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

pypeertube-1.0.1-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file pypeertube-1.0.1.tar.gz.

File metadata

  • Download URL: pypeertube-1.0.1.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pypeertube-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f3ce305eacbc0e738ac45e48261873bd4804e218608d89391a14cfbb030dd8b2
MD5 5c7c93d30dd9c3572046b72d8cbdacdd
BLAKE2b-256 1febfd0cff5371403bb194d8355e1e974285104ee914d154093a9d2c4adfb3f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypeertube-1.0.1.tar.gz:

Publisher: build.yml on CaramelConnoisseur/PyPeertube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pypeertube-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pypeertube-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pypeertube-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da6ec9a455f7af587ffb00f5a693da9439d3a3017a64f97bb48344d5d148a4f7
MD5 4d7636e50c19c0f876942a939a261fff
BLAKE2b-256 96fbc57bcb83451f8cef3f7cbbc24640c742fffad2f91a84319df3f787a87096

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypeertube-1.0.1-py3-none-any.whl:

Publisher: build.yml on CaramelConnoisseur/PyPeertube

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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