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.3-cp312-cp312-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

youtube_stats-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

youtube_stats-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for youtube_stats-0.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 27f41b9a0e5b2fe0491c5e80e78f4fbd9a36cd508e75f1c8d35573e697b9d08d
MD5 c4bd99cd948f15ed8b7740e167577cf0
BLAKE2b-256 529c0c7a8b84c5c6c3ddbe314ac2ae77a06a6d3c803ef3968ffb4a5fc9d38369

See more details on using hashes here.

File details

Details for the file youtube_stats-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for youtube_stats-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 08a3d07b7fbe3cef8277899fa4aae810a7d236cbf0853af4be05146f5c5cdc27
MD5 0b2aab8b91f7149921d00308d5b8a9ad
BLAKE2b-256 1d052e5f40a3da6d62b8febbfd6aabe2cf2a47dc46f806d389daaf5b4c21c899

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for youtube_stats-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6de40b32320bb1072662b1750a7039793c427d280f76d858070a57859a346c2
MD5 ca3cd95a76fea6f326ca3567ccb5d047
BLAKE2b-256 35ae6b9f36e14d79a962f00cfd3858859e60466cb9b803571ec641de1fb2b04c

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