Skip to main content

TTRW

It's a simple python package that returns a string with a few random words similar to name generator for twitch.tv clips. Words are chosen from built in dictionary and capitalized. The first one is an adverb, the second is an adjective and the third is a noun.

You can also choose to get single word (adjective/adverb/noun).

There are english and polish dictionaries available (Polish words without national/accented characters).

>>> ttrw.get_random_words()  
VerySadFish
$ python -m ttrw
SlightlyHandsomePotato

Installation:

Use pip:

pip install ttrw

Usage:

Sample usage:

import ttrw

print("Available languages:")
print(ttrw.languages)

print(ttrw.get_random_words())
print(ttrw.get_random_words("en"))
print(ttrw.get_random_words(lang="pl"))

print(ttrw.random_noun())
print(ttrw.random_adjective(lang="pl"))

You can also just execute the module in terminal:

python -m ttrw
python -m ttrw en
python -m ttrw pl

References:

English dictionary is based on WordNet®.
Polish Dictionary is based on ArkadiaWiki and https://sjp.pl/.

Licenses for each dictionary are in their respective folders.

License:

Code is under MIT license. See "LICENSE" file.

Release files for ttrw 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ttrw 1.3
File Size Uploaded
ttrw-1.3.tar.gz 363.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ttrw 1.3
File Interpreter ABI Platform
ttrw-1.3-py3-none-any.whl Python 3 none any Details

Total release size: 727.4 kB

Release files / ttrw-1.3.tar.gz

Download URL ttrw-1.3.tar.gz
Size 363.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c67de1695e052a269e098a3cc919c51a2caa2db28716944a73c5691b3706faff
BLAKE2b-256 checksum
How to use checksums
8c3ab71c62b35efa26b47d232001806e196178df632e06bb9103d3d1a884dcb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release files / ttrw-1.3-py3-none-any.whl

Download URL ttrw-1.3-py3-none-any.whl
Size 364.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9f6569f02ac6490960525c4d6937651fa9560413a92ab82c074e1d49d91e16a
BLAKE2b-256 checksum
How to use checksums
ad76f2b7013e01e6fecbc26a965b3f77954d8f2b7e500d8ed1760f5a5a89c3b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page