Utilities to be used in LibreLingo-related-packages
Project description
librelingo_utils
Utilities for implementing LibreLingo-related packages
librelingo_utils.utils
calculate_number_of_levels
calculate_number_of_levels(nwords, nphrases)
Calculates how many levels a skill should have
clean_word
clean_word(word)
Remove punctuation and other special characters from a word.
get_dumb_opaque_id
get_dumb_opaque_id(name, id_, salt="")
Generate a unique, opaque ID based on a name, and id_ and a salt id
get_opaque_id
get_opaque_id(obj, salt="")
Generate a unique, opaque ID based on a type and a type specific id
audio_id
audio_id(language_id, text)
Generate the ID that will identify the audio file of a sentence.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
librelingo_utils-0.1.4.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for librelingo_utils-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7ef0a012a147c368090fb91f8d8abbab967f446aa9ab0fad2fd709890e443bb |
|
MD5 | 8d8906db704b68a276bd06f6a2e9bdd1 |
|
BLAKE2b-256 | 4a81c0dee2758896ea20fada3a62bb4a2d99553e9c62f555f3e85bc0e60b224b |