Skip to main content

Calculate word counts in a text file!

Project description

pycounts_jd

Calculate word counts in a text file!

Installation

$ pip install pycounts_jd

Usage

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

from pycounts.pycounts import count_words
from pycounts.plotting imoprt 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_jd was created by Jianru Olyvia. It is licensed under the terms of the MIT license.

Credits

pycounts_jd 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_jd-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycounts_jd-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Windows/10

File hashes

Hashes for pycounts_jd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc30b39aff1772dace2743cac5ba923422f3a0f7f835e5f5503467b44df5ed98
MD5 aa821ae6ac1895769d817b0c0b28da28
BLAKE2b-256 bf4b7366064c0a24d8bc9e79dbd208b9c1bb65a256ed613c6a84153a8e1f5c13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycounts_jd-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.1.13 CPython/3.9.10 Windows/10

File hashes

Hashes for pycounts_jd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31007bab0fd12f7fea749eee10bfa30beec36bfb04c42cc45d4bd2f1eea1dbe2
MD5 a69d1b0348a9a6f588069f3796c348f6
BLAKE2b-256 2fffcb3ab2451ea68f63939515d68c97f2b8be7bde660a7e6b00eaca58e1ff20

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