Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

youtube_stats-0.1.4-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

youtube_stats-0.1.4-cp312-cp312-manylinux_2_38_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.38+ x86-64

youtube_stats-0.1.4-cp312-cp312-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file youtube_stats-0.1.4-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for youtube_stats-0.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c3bcb72fcd8f05ccad17b73c5e20346d1d118c346a153cbf72e6e916cbc5e3b3
MD5 c4c96781a339a38acd9c9a7c5c9af2dd
BLAKE2b-256 cc49a427dae22bcea3b026b52af71f437e5a4f0d943279df09aec1fe21a8356c

See more details on using hashes here.

File details

Details for the file youtube_stats-0.1.4-cp312-cp312-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for youtube_stats-0.1.4-cp312-cp312-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 98a18fb87a518378df8f6be07171bbeab163a7ee40d3da6c329ce47c1245ef9a
MD5 0c6c301cd85fd983e28e8f82211aa50e
BLAKE2b-256 7ac2de59ae7531bf2155f711de5681025ca4463d2eaf171c0dcef5c308308ebf

See more details on using hashes here.

File details

Details for the file youtube_stats-0.1.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for youtube_stats-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a522eb3cfbc088cdf68555c594790ebcf0cdc3d2b42d3ae45007b07bf08ff58a
MD5 9eaec494556c115b47a7230a74857d84
BLAKE2b-256 3ebd4021eb82d3cf1f9c8decb9514ea85617a8cd7f674cf546a6adae0199360e

See more details on using hashes here.

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