Skip to main content

Calculate word counts in a text file.

Project description

pycounts_ic

Calculate word counts in a text file!

Installation

$ pip install pycounts_ic

Usage

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

from pycounts.pycounts import count_words
from pycounts.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 was created by Tomas Beuzen. It is licensed under the terms of the MIT license.

Credits

pycounts 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_ic-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_ic-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.11 Darwin/22.5.0

File hashes

Hashes for pycounts_ic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed0ac1a8d4dc7b72f9b0f6216a7ba76a5da3ae259bd38a9de3615614380ff7c6
MD5 348a23c8f220587f169b667eb482943b
BLAKE2b-256 d61ada9e11f07a2395c8411191b824fb3c4c36eaf13a60c7b4b3ff577c19c67b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_ic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.11 Darwin/22.5.0

File hashes

Hashes for pycounts_ic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c454d71de8bb39abbaf33e5d8e2000f516a357579671e5b251dc57d3b01a41
MD5 dba86fe62a54c1ffdad110dac6135234
BLAKE2b-256 44cf0697b216cf90eb70c173feb94155a243810474a82c193b5d304b1c3d964e

See more details on using hashes here.

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