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.0.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.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypeertube-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 809cdf4316514d21df42626c5d1b384e8ba5637ecff239046ab9f268928e836b
MD5 95f153dfa73b08217ebbe6f9dd13347a
BLAKE2b-256 fa80e0cf096545c97a0e64231879f3321517704f4dac78a797a4448575d5632e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypeertube-1.0.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: pypeertube-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1850fef2611abe8066f64c16e77aecee956493b703b7541b628b4465e03dc5b1
MD5 aba5b1d8dd53831bebdd36c9c7934e78
BLAKE2b-256 9e1c6e62e85484df25f573ea660aedddd6dbdcdaac594b2e547377774b7bc63a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypeertube-1.0.0-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