Expand description
Modules§
- bundled
- This is the bundled sentences from sentences-bundle.hitokoto.cn.
Structs§
- Hitokoto
- Hitokoto data.
- Hitokoto
Types random - Hitokoto type set.
Enums§
- Hitokoto
Commit From - Where the hitokoto commit from.
- Hitokoto
Type - Hitokoto type.
- Language
language - This is a full copy from lingua Language. For reducing dependencies in the final product.
Functions§
- bundled_
version - Visit
https://sentences-bundle.hitokoto.cn/version.jsonto check this is the latest version. - get_
all_ hitokoto - Get all hitokoto in an iterator.
- get_
hitokoto_ by_ id - Get hitokoto by id. If not found, return
None. - random_
hitokoto random - This is equivalent to requesting ‘https://v1.hitokoto.cn/?c=’
- random_
hitokoto_ option random - This is an optional version for random_hitokoto, with no panic. If the types are empty, it will return None.