A little text cloud generator, based on AMueller's excellent word cloud
Project description
| Linux | macOS | Windows | |
|---|---|---|---|
| PyPI |
text_cloud
A little text cloud generator in Python, that generates a cloud of sentences from a list of sentences given as ain input. This is based on the nifty package from AMueller's, the wordcloud. Read more about the wordcloud package on the [blog post][blog-post] or the [website][website].
The code is tested against Python 2.7, 3.4, 3.5, 3.6 and 3.7.
Installation
If you are using pip:
pip install textcloud
Installation notes
textcloud depends on numpy and pillow.
To save the textcloud into a file, matplotlib can also be installed. See examples below.
If there are no wheels available for your version of python, installing the package requires having a C compiler set up. Before installing a compiler, report an issue describing the version of python and operating system being used.
Examples
Check out [examples/simple.py][simple] for a short intro. A sample output is:
Or run [examples/masked.py][masked] to see more options. A sample output is:
Getting fancy with some colors:
Generating wordclouds for Arabic:
Licensing
The textcloud library is MIT licenced, but contains DroidSansMono.ttf, a true type font by Google, that is apache licensed.
The font is by no means integral, and any other font can be used by setting the font_path variable when creating a TextCloud object.
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 Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textcloud-0.0.3.tar.gz.
File metadata
- Download URL: textcloud-0.0.3.tar.gz
- Upload date:
- Size: 189.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
086aabdbcfba5b25eb6ff03186305ccde9d4f9f8f4911845c1e9ac169225ae5e
|
|
| MD5 |
ccb9e14c85bd91621092eba3f5eaf27e
|
|
| BLAKE2b-256 |
2786666f7a5c7ab6c0c957b2aad77629b10e8e2ebd40d627a3d432e539055ed0
|
File details
Details for the file textcloud-0.0.3-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: textcloud-0.0.3-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 124.9 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db9eb01cc0502bc4a29fe60a7c04b645d65be1fe7914cdfa2197f4fee67b986e
|
|
| MD5 |
d1d1229a201f1bdc4dc13812febc8839
|
|
| BLAKE2b-256 |
93d04c7529e5b4ade9ce1ef078feb9f6192512ded153c0473e83a7de598b278f
|
File details
Details for the file textcloud-0.0.3-cp37-cp37m-macosx_10_14_x86_64.whl.
File metadata
- Download URL: textcloud-0.0.3-cp37-cp37m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 125.1 kB
- Tags: CPython 3.7m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fd3a7cc3843e882d6de06f1e4b0498b955bd105bf4cef1e3bfcaf6f59124d83
|
|
| MD5 |
dc0a87375dc8a1dc7dfd1884c7a9606a
|
|
| BLAKE2b-256 |
19763328bab25ffeb33a103133463d4adc4ebae8b2ecb4302e84f34061244d39
|