Skip to main content

vidyo

PyPi version PyPI pyversions License Documentation Status

A simple way to get information on YouTube videos.

Features

  • Pythonic syntax lets you feel right at home
  • Lightweight nature means you don't have to worry about excessive dependencies
  • Simple to use objects take the hassle out of API inconsistencies

Installation

You need Python 3.7.0 or greater to run vidyo. You will also need to have a Google Developers project with the YouTube Data API enabled. You can find instructions on how to do that in the documentation.

It is recommended you install vidyo in a virtual environment. To do this, run the following:

# Windows
> py -3.9 -m venv .venv
> .venv\Scripts\activate
> pip install vidyo

# Linux\macOS
$ python3.9 -m venv .venv
$ source ./.venv/bin/activate
$ pip install vidyo

To install vidyo outside of a virtual environment instead, run the following:

# Windows
> py -3.9 -m pip install vidyo

# Linux/macOS
$ python3.9 -m pip install vidyo

You can also install the development version by running the following (this assumes you're on Linux/macOS):

$ git clone https://github.com/parafoxia/vidyo
$ cd vidyo
$ git checkout develop  # Any valid branch name can go here.
$ python3.9 -m pip install -U .

Usage examples

The following example shows you how display the title and number of views of the first YouTube video and then download its thumbnail.

from vidyo import Client

# Load your API key from a file.
with open("secrets/api-key") as f:
    key = f.read()

client = Client(key)
video = client.get_video("jNQXAC9IVRw")
print(f"{video.title} has {video.views:,} views.")
video.get_thumbnail().save("thumbnail.jpg")

License

The vidyo module for Python is licensed under the BSD-3-Clause License.

Metadata

Release files for vidyo 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vidyo 0.1.0
File Size Uploaded Provenance Actions
vidyo-0.1.0.tar.gz 7.9 kB Without provenance Details for vidyo-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vidyo 0.1.0
File Interpreter ABI Platform Actions
vidyo-0.1.0-py3-none-any.whl Python 3 none any Details for vidyo-0.1.0-py3-none-any.whl

Total release size: 15.2 kB

Release files / vidyo-0.1.0.tar.gz

Download URL vidyo-0.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e45da5b8d6d5870cf0637e07a24ed26fc631de2cd432b1c6be5483ce232a3ac7
BLAKE2b-256 checksum
How to use checksums
c8642c75058853a3cc76b9cecc125386b2f5d9b999c647bec2491fb12b28b411
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

Release files / vidyo-0.1.0-py3-none-any.whl

Download URL vidyo-0.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
775c5bee53cd4c6bf5a550c92a45c591f49de8531720a7b51c7ee54f01b62d18
BLAKE2b-256 checksum
How to use checksums
a4ec964cef848a82ec395b2d11dc103b73e5a488f63e8647e94c06f968159030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6

Security for vidyo 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page