CLI for https://bgm.tv
Features:
- Add collection
- List and edit collections
- Show calendar
- Search
- Login
Login: bgm login
Authorize the app in the browser and paste the code to the terminal.
Auth code will be saved in ~/.config/bangumi/auth.yaml
bgm --help
bgm cal
bgm ls
Bangumi API: https://bangumi.github.io/api
Input your own client id and app secret in settings.py
- python 3.11
- poetry for packaging and dependency management
- typer for CLI library
Install dependencies: poetry install
Build: poetry build
Install wheel: pip install dist/{name}.whl
api.py
available APIs and actual request implementationauth.py
authorize and store tokenscli.py
the CLI implementationclient.py
API request client. A wrapper onapi.py
collection.py
helper functions handling bgm.tv collectionssettings.py
app secret etc.types.py
data types
- Combine edit and add collection