py-wordcloud

A little word cloud generator in Python

https://github.com/amueller/word_cloud

Science Score: 46.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 71 committers (1.4%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.6%) to scientific vocabulary

Keywords from Contributors

closember word2vec jax data-mining document-similarity fasttext gensim information-retrieval topic-modeling word-embeddings
Last synced: 6 months ago · JSON representation

Repository

A little word cloud generator in Python

Basic Info
Statistics
  • Stars: 10,438
  • Watchers: 215
  • Forks: 2,339
  • Open Issues: 139
  • Releases: 5
Created over 13 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Citation

README.md

licence DOI

word_cloud

A little word cloud generator in Python. Read more about it on the blog post or the website.

The code is tested against Python 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13.

Installation

If you are using pip:

pip install wordcloud

If you are using conda, you can install from the conda-forge channel:

conda install -c conda-forge wordcloud

Installation notes

wordcloud depends on numpy, pillow, and matplotlib.

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 for a short intro. A sample output is:

Constitution

Or run examples/masked.py to see more options. A sample output is:

Alice in Wonderland

Getting fancy with some colors: Parrot with rainbow colors

Generating wordclouds for Arabic:

Arabic wordlcloud

Command-line usage

The wordcloud_cli tool can be used to generate word clouds directly from the command-line:

$ wordcloud_cli --text mytext.txt --imagefile wordcloud.png

If you're dealing with PDF files, then pdftotext, included by default with many Linux distribution, comes in handy:

$ pdftotext mydocument.pdf - | wordcloud_cli --imagefile wordcloud.png

In the previous example, the - argument orders pdftotext to write the resulting text to stdout, which is then piped to the stdin of wordcloud_cli.py.

Use wordcloud_cli --help so see all available options.

Licensing

The wordcloud 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 WordCloud object.

Owner

  • Name: Andreas Mueller
  • Login: amueller
  • Kind: user
  • Location: Los Gatos
  • Company: Microsoft

Scikit-learn core-developer, Principal Research SDE @microsoft

GitHub Events

Total
  • Create event: 1
  • Release event: 1
  • Issues event: 15
  • Watch event: 327
  • Issue comment event: 16
  • Push event: 6
  • Pull request review comment event: 1
  • Pull request review event: 5
  • Pull request event: 25
  • Fork event: 53
Last Year
  • Create event: 1
  • Release event: 1
  • Issues event: 15
  • Watch event: 327
  • Issue comment event: 16
  • Push event: 6
  • Pull request review comment event: 1
  • Pull request review event: 5
  • Pull request event: 25
  • Fork event: 53

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 464
  • Total Committers: 71
  • Avg Commits per committer: 6.535
  • Development Distribution Score (DDS): 0.619
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Andreas Mueller a****r@a****e 177
Jean-Christophe Fillion-Robin j****r@k****m 56
Raphael Boidol r****l@t****m 21
The-RCCG r****f@o****m 18
Thomas J. Fan t****n@g****m 15
Paul Nechifor i****l@g****m 13
Font Tian f****n@1****m 13
Jojo le Barjos j****s@g****m 12
Amr Keleg a****d@l****m 10
Peter P****2 6
Remi Rampin r****n@g****m 5
Marianne Corvellec m****c@e****g 5
Juan Medina j****a@g****m 5
Icyblade Dai i****y@g****m 5
Eric Guan g****1@g****m 5
Caleigh m****c@g****m 5
Baze Petrushev b****v@g****m 5
Dmitry Logvinenko d****o@v****u 5
Hong Xu h****g@t****t 4
Karol M. Langner k****r@g****m 4
Krishna Bhamidipati N****t 4
defacto133 d****3@g****m 3
Ian Ozsvald i****n@i****m 3
Carl Gieringer 7****r 3
Freddie Wu f****u@c****n 3
rupert r****t@l****r 3
Russell Melick r****k@k****m 2
Chandler May c****4@g****m 2
Divakar d****h@g****m 2
Dmitry Logvinenko 5****n@g****m 2
and 41 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 107
  • Total pull requests: 86
  • Average time to close issues: 10 months
  • Average time to close pull requests: 6 months
  • Total issue authors: 100
  • Total pull request authors: 49
  • Average comments per issue: 4.86
  • Average comments per pull request: 1.84
  • Merged pull requests: 27
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 11
  • Pull requests: 28
  • Average time to close issues: 30 days
  • Average time to close pull requests: about 1 month
  • Issue authors: 11
  • Pull request authors: 14
  • Average comments per issue: 0.36
  • Average comments per pull request: 0.07
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • rjalexa (4)
  • amueller (3)
  • varac (2)
  • mporwal011 (1)
  • Manamama (1)
  • kito323 (1)
  • MarcViebahn (1)
  • T4rQu1N (1)
  • dwpr (1)
  • Guillaume-Fgt (1)
  • gabriel-enrique (1)
  • cezar77 (1)
  • KonradHoeffner (1)
  • irn-bru (1)
  • ArpiJakab (1)
Pull Request Authors
  • thomasjpfan (21)
  • amueller (8)
  • TianFengshou (5)
  • dependabot[bot] (3)
  • matink8790 (2)
  • Amirhadi-Hosseini (2)
  • dwvisser (2)
  • darkaico (2)
  • cxwx (2)
  • Hmidrza696 (2)
  • deepak8058 (2)
  • jhamon (2)
  • boidolr (2)
  • amir13860922 (2)
  • chaseleif (2)
Top Labels
Issue Labels
Need Contributor (4) bug (3) question (1) Feature Request (1) foreign languages support (1)
Pull Request Labels
dependencies (3) foreign languages support (2) github_actions (2)

Packages

  • Total packages: 17
  • Total downloads:
    • pypi 1,821,423 last-month
  • Total docker downloads: 934,889,638
  • Total dependent packages: 169
    (may contain duplicates)
  • Total dependent repositories: 6,725
    (may contain duplicates)
  • Total versions: 63
  • Total maintainers: 6
pypi.org: wordcloud

A little word cloud generator

  • Versions: 21
  • Dependent Packages: 159
  • Dependent Repositories: 6,629
  • Downloads: 1,821,423 Last month
  • Docker Downloads: 934,889,638
Rankings
Dependent repos count: 0.1%
Dependent packages count: 0.1%
Average: 0.2%
Stargazers count: 0.3%
Downloads: 0.3%
Docker downloads count: 0.3%
Forks count: 0.3%
Maintainers (3)
Last synced: 6 months ago
alpine-v3.18: py3-wordcloud-pyc

Precompiled Python bytecode for py3-wordcloud

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 0.6%
Forks count: 0.9%
Stargazers count: 1.7%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.18: py3-wordcloud

A little word cloud generator in Python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 0.6%
Forks count: 0.9%
Stargazers count: 1.7%
Maintainers (1)
Last synced: 6 months ago
alpine-edge: py3-wordcloud-pyc

Precompiled Python bytecode for py3-wordcloud

  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 0.9%
Stargazers count: 1.7%
Average: 4.2%
Dependent packages count: 14.1%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: wordcloud
  • Versions: 10
  • Dependent Packages: 9
  • Dependent Repositories: 48
Rankings
Forks count: 2.3%
Stargazers count: 3.1%
Average: 4.2%
Dependent repos count: 5.2%
Dependent packages count: 6.5%
Last synced: 6 months ago
alpine-edge: py3-wordcloud

A little word cloud generator in Python

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 0.8%
Stargazers count: 1.6%
Average: 4.3%
Dependent packages count: 14.6%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.17: py3-wordcloud

A little word cloud generator in Python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 0.9%
Stargazers count: 1.6%
Average: 7.4%
Dependent packages count: 27.3%
Maintainers (1)
Last synced: 6 months ago
spack.io: py-wordcloud

A little word cloud generator in Python.

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 0.7%
Stargazers count: 1.0%
Average: 14.8%
Dependent packages count: 57.3%
Maintainers (1)
Last synced: 6 months ago
anaconda.org: wordcloud

A little word cloud generator in Python.

  • Versions: 3
  • Dependent Packages: 1
  • Dependent Repositories: 48
Rankings
Forks count: 6.5%
Stargazers count: 8.0%
Average: 22.6%
Dependent repos count: 24.8%
Dependent packages count: 51.2%
Last synced: 6 months ago
alpine-v3.20: py3-wordcloud

A little word cloud generator in Python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.19: py3-wordcloud

A little word cloud generator in Python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 7 months ago
alpine-v3.22: py3-wordcloud

A little word cloud generator in Python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.20: py3-wordcloud-pyc

Precompiled Python bytecode for py3-wordcloud

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 7 months ago
alpine-v3.22: py3-wordcloud-pyc

Precompiled Python bytecode for py3-wordcloud

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.19: py3-wordcloud-pyc

Precompiled Python bytecode for py3-wordcloud

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.21: py3-wordcloud

A little word cloud generator in Python

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago
alpine-v3.21: py3-wordcloud-pyc

Precompiled Python bytecode for py3-wordcloud

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Dependent packages count: 0.0%
Average: 100%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/test.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • docker://quay.io/pypa/manylinux2014_aarch64 * composite
doc/requirements-doc.txt pypi
  • arabic_reshaper *
  • imageio *
  • jieba *
  • matplotlib *
  • multidict *
  • numpydoc *
  • python-bidi *
  • scipy *
  • sphinx *
  • sphinx-argparse *
  • sphinx-issues *
  • sphinx_gallery *
  • sphinx_rtd_theme *
requirements-dev.txt pypi
  • codecov * development
  • coverage * development
  • flake8 ==3.8.0 development
  • mock * development
  • pytest * development
  • pytest-cov * development
  • pytest-sugar * development
  • setuptools >=28.0.0 development
  • twine * development
  • wheel ==0.34.1 development
requirements.txt pypi
  • matplotlib >=1.5.3
  • numpy >=1.6.1
  • pillow *
setup.py pypi
  • matplotlib *
  • numpy >=1.6.1
  • pillow *
.github/workflows/build_and_publish.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v3 composite
  • actions/upload-artifact v3 composite
  • pypa/cibuildwheel v2.16.2 composite
  • pypa/gh-action-pypi-publish v1.5.0 composite
pyproject.toml pypi
  • matplotlib *
  • numpy >=1.6.1
  • pillow *