gobbet - Random news articles in any language
Wikinews is a wonderful free source of long-form text in a variety of world languages. gobbet provides you with access to words, sentences and paragraphs taken from Wikinews articles in any of its supported languages. This can be used as filler text for type specimens, web layouts, etc.
Example usage
from gobbet import get_news, unicode_ranges
words, headlines, paragraphs = get_news("el") # ISO language code
# words is a Wordlist object; like Counter, but with a few more methods
words = (
words.filter_popularity(2) # Only words which occur >=2 times
.filter_length(5) # ... of five letters or more ...
.filter_unicodes(unicode_ranges["Greek"]) # .. in Greek script
)
# Want to find some kerning pair words?
bigrams = words.bigrams()
# bigrams['οώ'] === {'προώθησε', 'προώθηση', 'προώθησης', 'προώρων'}
# headlines and paragraphs are just lists, but...
from gobbet import filter_length, filter_unicodes
renderable = filter_unicodes(headlines, [font.getBestCmap().keys()])
License
gobbet was written by Simon Cozens. See LICENSE for the terms of this library.
Note that Wikinews text is provided under the CC-BY 2.5 license, and your application must comply with the terms of that license in its use of the content.
Metadata
Release files for gobbet 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gobbet-0.0.3.tar.gz | 4.8 kB | Without provenance | Details for gobbet-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gobbet-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for gobbet-0.0.3-py3-none-any.whl |
Total release size: 10.3 kB
Release files / gobbet-0.0.3.tar.gz
| Download URL | gobbet-0.0.3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df1178e40f16852cb4dd733c395e3e75679cfde22941bf4d701f23a3b75e8c01
|
|
BLAKE2b-256 checksum How to use checksums |
9b9ceee2a1031d8ec85d33281cc5c2afb2f74ba4b305ff890528dc294c0e95c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / gobbet-0.0.3-py3-none-any.whl
| Download URL | gobbet-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01691bf482f9db285b761e24199c81495044cb70812a636c14997f437aafe1ab
|
|
BLAKE2b-256 checksum How to use checksums |
bec9fddf5520318718a5cbf119015059689a175446965ae204d38a33750120f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for gobbet 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.