Science Score: 54.0%

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

  • CITATION.cff file
    Found 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
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: swesmith
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 25.7 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 12 months ago · Last pushed 11 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: SWE-smith
  • Login: swesmith
  • Kind: organization

Scaling Data for Software Engineering Agents

Citation (CITATION.cff)

cff-version: 1.2.0
authors:
- family-names: "Mueller"
  given-names: "Andreas C"
  orcid: "https://orcid.org/0000-0002-2349-9428"

title: "Wordcloud"
version: 1.9.1
date-released: 2023-4-27
url: "https://github.com/amueller/wordcloud"

GitHub Events

Total
  • Delete event: 52
  • Create event: 50
Last Year
  • Delete event: 52
  • Create event: 50

Dependencies

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 *
pyproject.toml pypi
  • matplotlib *
  • numpy >=1.6.1
  • pillow *
requirements-dev.txt pypi
  • codecov * development
  • coverage * development
  • flake8 >=3.8.0 development
  • pytest * development
  • pytest-cov * development
  • pytest-sugar * development
  • setuptools >=28.0.0 development
  • twine * development
  • wheel >=0.38.1 development
requirements.txt pypi
  • cython *
  • matplotlib >=1.5.3
  • numpy >=1.6.1
  • pillow *
setup.py pypi