Skip to main content

Mostx : Quiz Generator

import mostx

print(sorted(mostx.get_available_langs()))
# => ['chinese', 'english', 'japanese', 'korean', ]

qgen = mostx.QuizGenerator(lang='english')
q = qgen.generate(choices='ABC', n_adjectives=1)

for s in q.statements:
    print(s)
# B is quieter than A
# C is quieter than A
# B is quieter than C
print(q.question)  # => Which is the noisiest?
print(tuple(q.choices))  # => ('A', 'B', 'C')
print(q.answer)  # => A

Metadata

Release files for mostx 0.1.0

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

Source distribution (sdist)

Source distribution for mostx 0.1.0
File Size Uploaded
mostx-0.1.0.tar.gz 3.9 kB Details

Release files / mostx-0.1.0.tar.gz

Download URL mostx-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0c77ecf0af148e6f96b4cbcb1243725db363d7464445892c47cbcd7825c6c77b
BLAKE2b-256 checksum
How to use checksums
d418f31161746008164270cf207d09b0e237a7825029647aab1e43f9e01702a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

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