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.1.1.tar.gz (26.3 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.1.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pypeertube-1.1.1.tar.gz
Algorithm Hash digest
SHA256 d7867085a47168db925617ec2c67e8f2b9abf193347f4dded1a5ab8af38c14eb
MD5 d34fe9c85ae96229a8a75dbf3491f9d6
BLAKE2b-256 187a6206357f6c1efd4b2700fb9fdef7aa0c1f1419708b420262a27952d65564

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pypeertube-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.9 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a23b3d1a3884f09ef36120e68739c8d54815de89710c0975e354e890c5bd0d35
MD5 78c1b86c672e3d79e42108311a0cc41f
BLAKE2b-256 a2335ebef12478a9c04f6c7edc9d83b200876b40524d9bdbb5e0e49277c1c73e

See more details on using hashes here.

Provenance

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