Utilities to be used in LibreLingo-related-packages
Project description
librelingo_utils
librelingo-utils contains utility functions that are meant to make it easier to create Python software that works with LibreLingo courses.
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, text)
Generate the ID that will identify the audio file of a sentence.
iterate_phrases
iterate_phrases(course)
"Flatten" a course into a sequence of phrases
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-2.4.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for librelingo_utils-2.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a5de4b97273991b1d43fde444891126647ce46442b092f485d67d7d267e55d1 |
|
MD5 | c82979a1d4472710a44a5b015c26aed0 |
|
BLAKE2b-256 | 1b1dc3fd224d21d89e7e6ef4df869782f74d0de2d4b080ae4cc67ef1f76ca2cc |