Library for loading of word lists
Project description
liblistloader
Library for loading word lists from files. Built for libnamegen
Features
- Easy to use
- Imported as module
- Always tested before release
- Officially supports latest two versions of Python 3
Included word lists
liblistloader.desiquintans_nounlist
: The Great Noun List by desiquintans.com
How to Install
Run the command pip install liblistloader
. If you want to specify a specific Python version to use for pip, use a command such as pip3
or pip3.8
.
Documentation
API
To import a single list, type import liblistloader.[word list]
. Then, you can get a list, each item being a word in the word list, by typing liblistloader.[word list].words
.
WARNING! These lists are VERY long! For example, desiquintans_nounlist is 6,801 words long! Therefore, liblistloader.desiquintans_nounlist.words
returns a list with 6,801 items in it. I would not recommend the following code for your sanity:
import liblistloader.desiquintans_nounlist
for word in liblistloader.desiquintans_nounlist.words:
print(word)
Output (total 6,801 lines):
ATM
CD
SUV
TV
aardvark
abacus
abbey
abbreviation
abdomen
...
Import all noun lists and pick a random word from a few:
import random
import liblistloader
print("desiquintans_nounlist: " + random.choice(liblistloader.desiquintans_nounlist.words))
Output (will vary because a random word is being picked):
desiquintans_nounlist: velocity
License
liblistloader is licensed under the GPLv3 license. For more information, please refer to LICENSE
.
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
Built Distribution
Hashes for liblistloader-1.0.1.post2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ae960143fbcc38047da6d812d2738623324f6a90306ab19cf270085fcc130fa |
|
MD5 | b3db484361d76c9d969443a12f233ac1 |
|
BLAKE2b-256 | 2b48763d74e3e0318e0a1ba06992983106c59b3bbb4923fbb19ca396185c651f |
Hashes for liblistloader-1.0.1.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 242ddca30f0e20a92610e79e232f1d396e11ce6bd500183bfe3c5e5349d63c22 |
|
MD5 | ce4884cafe7558178b77d6a8a40edc9f |
|
BLAKE2b-256 | 35f486b7dcf603f2d9b74d9d98e3356ac8bc609a32edd3b15baf584893ba3b70 |