This package supplies some utilities for developing tools of hinatazaka46.
The following features are included:
- Converting member's ID to her name in both Japanese and Romaji.
- Getting hash tags of members' blog, official message app, and instagram from member's ID.
Run the following command to install this package.
pip install "git+https://github.com/ryoryo25/hinatazaka46-python.git@$(curl -s https://api.github.com/repos/ryoryo25/hinatazaka46-python/releases/latest | jq -r '.tag_name')"
Simply import this package like this:
import hinatazaka46 as hinata
The following classes are added.
Enum class of case of string. This enum has the following items.
Plain
CamelCase
SnakeCase
KebabCase
The following functions are supported.
Converts member's ID to her name.
Arguments:
VAR: TYPE | default value | description |
---|---|---|
id: int |
- | Member's id |
en: bool |
False |
Name in Romaji or not |
case: StringCase |
StringCase.Plain |
Select string case such as camel case ... |
Return value: member's name
Converts member's name to her ID.
Arguments:
VAR: TYPE | default value | description |
---|---|---|
name: str |
- | Member's name |
en: bool |
False |
Name in Romaji or not |
Return value: member's ID
Gets member's blog hash tag from her ID.
Arguments:
VAR: TYPE | default value | description |
---|---|---|
id: int |
- | Member's ID |
Return value: member's blog hash tag starts with '#'
Gets member's her official message app hash tag from her ID.
Arguments:
VAR: TYPE | default value | description |
---|---|---|
id: int |
- | Member's ID |
Return value: member's official message app hash tag starts with '#'
Gets member's instagram hash tag from her ID.
Arguments:
VAR: TYPE | default value | description |
---|---|---|
id: int |
- | Member's ID |
Return value: member's instagram hash tag starts with '#'
NOTE: returns empty string if the member doesn't have a official instagram account.
Gets member's instagram username from her ID.
Arguments:
VAR: TYPE | default value | description |
---|---|---|
id: int |
- | Member's ID |
Return value: member's instagram username
NOTE: returns None
if the member doesn't have a official instagram account.
Generates all existing instagram accounts.
Arguments: None
Return value: generator for instagram accounts