Skip to main content

Calculate word counts in a text file!

Project description

pycounts_yz110

Calculate word counts in a text file!

Installation

$ pip install pycounts_yz110

Usage

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

from pycounts_yz110.pycounts import count_words
from pycounts_yz110.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_yz110 was created by Yuci Jenny Zhang. It is licensed under the terms of the MIT license.

Credits

pycounts_yz110 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_yz110-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycounts_yz110-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_yz110-0.1.0.tar.gz.

File metadata

  • Download URL: pycounts_yz110-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.8 Windows/11

File hashes

Hashes for pycounts_yz110-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a2e83e32972c9b241b3a5f3814e9326d6976e8238bce7a85b47c1e5de5936ffb
MD5 5fe94182644f492510ad0541466da3d0
BLAKE2b-256 fd0ea69fe7078f1addc016697c7e65cda96064e68847a764dc7e8e8d994ebd23

See more details on using hashes here.

File details

Details for the file pycounts_yz110-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pycounts_yz110-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.12.8 Windows/11

File hashes

Hashes for pycounts_yz110-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48fdd0e050d8a79fb08429c3826561927598ed9187354121a0b5fae0f12d4d78
MD5 639478ad1cf4d5ec84df3ce27f4d78c4
BLAKE2b-256 0cdf9f15507ead984295fdc94e5654cb846d52a72bdf5c193a414091c469ef6d

See more details on using hashes here.

Supported by

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