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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 youtube_stats-0.1.4-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: youtube_stats-0.1.4-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3bcb72fcd8f05ccad17b73c5e20346d1d118c346a153cbf72e6e916cbc5e3b3
|
|
| MD5 |
c4c96781a339a38acd9c9a7c5c9af2dd
|
|
| BLAKE2b-256 |
cc49a427dae22bcea3b026b52af71f437e5a4f0d943279df09aec1fe21a8356c
|
File details
Details for the file youtube_stats-0.1.4-cp312-cp312-manylinux_2_38_x86_64.whl.
File metadata
- Download URL: youtube_stats-0.1.4-cp312-cp312-manylinux_2_38_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.38+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98a18fb87a518378df8f6be07171bbeab163a7ee40d3da6c329ce47c1245ef9a
|
|
| MD5 |
0c6c301cd85fd983e28e8f82211aa50e
|
|
| BLAKE2b-256 |
7ac2de59ae7531bf2155f711de5681025ca4463d2eaf171c0dcef5c308308ebf
|
File details
Details for the file youtube_stats-0.1.4-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: youtube_stats-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a522eb3cfbc088cdf68555c594790ebcf0cdc3d2b42d3ae45007b07bf08ff58a
|
|
| MD5 |
9eaec494556c115b47a7230a74857d84
|
|
| BLAKE2b-256 |
3ebd4021eb82d3cf1f9c8decb9514ea85617a8cd7f674cf546a6adae0199360e
|