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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7867085a47168db925617ec2c67e8f2b9abf193347f4dded1a5ab8af38c14eb
|
|
| MD5 |
d34fe9c85ae96229a8a75dbf3491f9d6
|
|
| BLAKE2b-256 |
187a6206357f6c1efd4b2700fb9fdef7aa0c1f1419708b420262a27952d65564
|
Provenance
The following attestation bundles were made for pypeertube-1.1.1.tar.gz:
Publisher:
build.yml on CaramelConnoisseur/PyPeertube
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pypeertube-1.1.1.tar.gz -
Subject digest:
d7867085a47168db925617ec2c67e8f2b9abf193347f4dded1a5ab8af38c14eb - Sigstore transparency entry: 1200744036
- Sigstore integration time:
-
Permalink:
CaramelConnoisseur/PyPeertube@a3f1744e50ee271470eddd8051a8c5dda18d2d50 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/CaramelConnoisseur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@a3f1744e50ee271470eddd8051a8c5dda18d2d50 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a23b3d1a3884f09ef36120e68739c8d54815de89710c0975e354e890c5bd0d35
|
|
| MD5 |
78c1b86c672e3d79e42108311a0cc41f
|
|
| BLAKE2b-256 |
a2335ebef12478a9c04f6c7edc9d83b200876b40524d9bdbb5e0e49277c1c73e
|
Provenance
The following attestation bundles were made for pypeertube-1.1.1-py3-none-any.whl:
Publisher:
build.yml on CaramelConnoisseur/PyPeertube
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pypeertube-1.1.1-py3-none-any.whl -
Subject digest:
a23b3d1a3884f09ef36120e68739c8d54815de89710c0975e354e890c5bd0d35 - Sigstore transparency entry: 1200744848
- Sigstore integration time:
-
Permalink:
CaramelConnoisseur/PyPeertube@a3f1744e50ee271470eddd8051a8c5dda18d2d50 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/CaramelConnoisseur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@a3f1744e50ee271470eddd8051a8c5dda18d2d50 -
Trigger Event:
release
-
Statement type: