aninidhi
Track which anime have official Hindi dubs — by release date, season, and platform — as a Python library and a CLI.
v0.0.1: ships with a small bundled sample dataset so it works fully offline out of the box. Point it at your own hosted
anime.json(see "Staying fresh" below) once your data pipeline is live, and every query below automatically prefers the fresh remote copy.
Install
pip install aninidhi
Use it as a library
import aninidhi
aninidhi.get_latest(limit=5) # most recently dubbed anime
aninidhi.search("naruto") # title search
aninidhi.get_season(2024, "winter") # a MyAnimeList season's anime
aninidhi.get_by_platform("crunchyroll")
aninidhi.list_all() # everything, dubbed or not
Every function returns a list of plain dicts matching this shape:
{
"id": 1,
"title": "Naruto",
"genres": ["Action", "Adventure", "Fantasy"],
"season": "fall",
"season_year": 2002,
"hindi_available": true,
"hindi_dub_release_date": "2006-08-01",
"platform": "Hungama TV",
"episodes": 220,
"mal_id": 20,
"poster_url": null,
"notes": "..."
}
Use it from the command line
aninidhi latest -n 5
aninidhi search "spy x family"
aninidhi season 2024 winter
aninidhi platform crunchyroll
aninidhi all --json
aninidhi refresh --url https://raw.githubusercontent.com/you/aninidhi-data/main/anime.json
Staying fresh
aninidhi never requires a server. Point it at any publicly readable
JSON file (a GitHub raw URL is the easiest option, and pairs well with a
daily GitHub Action that regenerates anime.json) and it does the rest:
export ANINIDHI_SOURCE_URL="https://raw.githubusercontent.com/you/aninidhi-data/main/anime.json"
- If a source URL is set and the local cache (
~/.cache/aninidhi/anime.json) is more than a day old, the next call refreshes it automatically. - If refreshing fails (offline, source down), it silently falls back to whatever's cached, then to the bundled sample data. A query never raises just because the network is unavailable.
- Force an immediate refresh any time with
aninidhi.refresh(force=True)oraninidhi refreshon the CLI.
Development
git clone https://github.com/YOUR-USERNAME/aninidhi.git
cd aninidhi
pip install -e .
python -m unittest discover -s tests
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 aninidhi-0.0.1.tar.gz.
File metadata
- Download URL: aninidhi-0.0.1.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
623f0dd1131c85878762e5dc4a1344ccecfaae35e1849fae8d8fcdb1a5d8331b
|
|
| MD5 |
5487787164484b7f2b615ac3ea39f7b7
|
|
| BLAKE2b-256 |
e41e578cf3e05472259e7131ec4b76e483b7a50b071143635e9f29c684a60856
|
File details
Details for the file aninidhi-0.0.1-py3-none-any.whl.
File metadata
- Download URL: aninidhi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c792d655edc66d2b98a495aa555947c18f33f52a1466ce42bce3883bb1b8f1c4
|
|
| MD5 |
33dc0d5395765715fab1dcb5cb1b6b12
|
|
| BLAKE2b-256 |
77f80ecace8ddb1c0571e473f7cca4a4ba589fb4477cb19ef7f3cc453d708ad2
|