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.pyavailable APIs and actual request implementationauth.pyauthorize and store tokenscli.pythe CLI implementationclient.pyAPI request client. A wrapper onapi.pycollection.pyhelper functions handling bgm.tv collectionssettings.pyapp secret etc.types.pydata types
- Combine edit and add collection


