Skip to main content

Youtube Stats

A Rust library with Python bindings for Youtube stats

Installation

pip install youtube_stats

Local Development

Clone the repo

git clone git@github.com:beatgig/youtube_stats.git
cd youtube_stats

Configuration

Create a .env file in the root of the project with the following contents:

YOUTUBE_API_KEY=YOUR_API_KEY

Build Locally and Install the Extension in Python Environment

poetry run maturin develop

Run Tests

pytest -s test/

Usage

Python

from youtube_stats import YoutubeStats

stats = YoutubeStats()
stats.get_stats("https://www.youtube.com/watch?v=dQw4w9WgXcQ")

Rust

use youtube_stats::YoutubeStats;

let stats = YoutubeStats::new();
stats.get_stats("https://www.youtube.com/watch?v=dQw4w9WgXcQ");

Deployment

Any push to main will trigger a GitHub Actions workflow that will build and publish the Python package to PyPI.

License

MIT

Metadata

Release files for youtube-stats 0.1.4

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

Built distributions (wheels)

Table of built distributions (wheels) for youtube-stats 0.1.4
File Interpreter ABI Platform Actions
youtube_stats-0.1.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for youtube_stats-0.1.4-cp312-cp312-win_amd64.whl
youtube_stats-0.1.4-cp312-cp312-manylinux_2_38_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.38+ x86-64 Details for youtube_stats-0.1.4-cp312-cp312-manylinux_2_38_x86_64.whl
youtube_stats-0.1.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for youtube_stats-0.1.4-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 6.5 MB

Release files / youtube_stats-0.1.4-cp312-cp312-win_amd64.whl

Download URL youtube_stats-0.1.4-cp312-cp312-win_amd64.whl
Size 1.4 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
c3bcb72fcd8f05ccad17b73c5e20346d1d118c346a153cbf72e6e916cbc5e3b3
BLAKE2b-256 checksum
How to use checksums
cc49a427dae22bcea3b026b52af71f437e5a4f0d943279df09aec1fe21a8356c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / youtube_stats-0.1.4-cp312-cp312-manylinux_2_38_x86_64.whl

Download URL youtube_stats-0.1.4-cp312-cp312-manylinux_2_38_x86_64.whl
Size 3.8 MB
Tags CPython 3.12 Linux glibc 2.38+ x86-64
SHA-256 checksum
How to use checksums
98a18fb87a518378df8f6be07171bbeab163a7ee40d3da6c329ce47c1245ef9a
BLAKE2b-256 checksum
How to use checksums
7ac2de59ae7531bf2155f711de5681025ca4463d2eaf171c0dcef5c308308ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / youtube_stats-0.1.4-cp312-cp312-macosx_11_0_arm64.whl

Download URL youtube_stats-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a522eb3cfbc088cdf68555c594790ebcf0cdc3d2b42d3ae45007b07bf08ff58a
BLAKE2b-256 checksum
How to use checksums
3ebd4021eb82d3cf1f9c8decb9514ea85617a8cd7f674cf546a6adae0199360e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for youtube-stats 0.1.4

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.4 This release

3 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