Skip to main content

Calculate word counts in a text file!

Project description

pycounts_polluxtroy3758

Calculate word counts in a text file!

Installation

$ pip install pycounts_polluxtroy3758

Usage

pycounts_polluxtroy3758 can be used to count words in a text file and plot results as follows:

from pycounts_polluxtroy3758.pycounts import count_words
from pycounts_polluxtroy3758.plotting import plot_words
import matplotlib.pyplot as plt

file_path = "test.txt"  # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

pycounts_polluxtroy3758 was created by polluxtroy3758. It is licensed under the terms of the MIT license.

Credits

pycounts_polluxtroy3758 was created with cookiecutter and the py-pkgs-cookiecutter template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycounts_polluxtroy3758-0.2.0.tar.gz (86.3 kB view details)

Uploaded Source

Built Distribution

pycounts_polluxtroy3758-0.2.0-py3-none-any.whl (87.5 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_polluxtroy3758-0.2.0.tar.gz.

File metadata

  • Download URL: pycounts_polluxtroy3758-0.2.0.tar.gz
  • Upload date:
  • Size: 86.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.10.60.1-microsoft-standard-WSL2

File hashes

Hashes for pycounts_polluxtroy3758-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b224413b2b33defabad021b006c5b2ebfd27a27e916a5649e68927eb7468f361
MD5 39bd12dd4754956649342f4d769776e7
BLAKE2b-256 9417e976d9e12aee42f6fc2c082678cf5996503537da7318208be11557a02ff3

See more details on using hashes here.

Provenance

File details

Details for the file pycounts_polluxtroy3758-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycounts_polluxtroy3758-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a4c15ca1e737aa0099c62badaf4d1dac57511cdda3a339c319445e81adc9657
MD5 6580ce06847bff0c92f5e477233691c4
BLAKE2b-256 7b79dcf036c29b44b88aa756128db87c281696e6d7a2e64990e50aa497a94a78

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page