PyTagCloud
PyTagCloud let you create simple tag clouds inspired by http://www.wordle.net/
Currently, the following output formats have been written and are working:
PNG images
HTML/CSS code
If you have ideas for other formats please let us know.
Installation
You can install PyTagCloud either via the Python Package Index (PyPI) or from source.
To install using pip:
$ pip install -U pytagcloud
To install using easy_install:
$ easy_install -U pytagcloud
Downloading and installing from source
Download the latest version of PyTagCloud from http://pypi.python.org/pypi/pytagcloud/
You can install it by doing the following,:
$ tar xfz pytagcloud-*.tar.gz $ cd pytagcloud-*/ $ python setup.py build # python setup.py install # as root
Requirements
Install pygame >= 1.9.1:
$ apt-get install python-pygame
Install simplejson:
$ pip install simplejson
Quick start
You probably want to see some code by now, so here’s an example:
from pytagcloud import create_tag_image, make_tags from pytagcloud.lang.counter import get_tag_counts YOUR_TEXT = "A tag cloud is a visual representation for text data, typically\ used to depict keyword metadata on websites, or to visualize free form text." tags = make_tags(get_tag_counts(YOUR_TEXT), maxsize=120) create_tag_image(tags, 'cloud_large.png', size=(900, 600), fontname='Lobster')
More examples can be found in test.py.
Example
Contributing
Development of pytagcloud happens at Github: https://github.com/atizo/PyTagCloud
You are highly encouraged to participate in the development of pytagcloud. If you don’t like Github (for some reason) you’re welcome to send regular patches.
Metadata
Release files for pytagcloud 0.3.5
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 |
|---|---|---|---|---|
| pytagcloud-0.3.5.tar.gz | 754.7 kB | Without provenance | Details for pytagcloud-0.3.5.tar.gz |
Release files / pytagcloud-0.3.5.tar.gz
| Download URL | pytagcloud-0.3.5.tar.gz |
|---|---|
| Size | 754.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d56539f0c80ed96f0d320fa0667db3f2d0cc3d2925f84522b82f48f6c0973e9
|
|
BLAKE2b-256 checksum How to use checksums |
a6368626ddead8006c0dbab0a4994737db10463b9c5f837f1fbbd2bbf5bfa27c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytagcloud 0.3.5
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.