Word-Counter
A Python Word Counter module
Installation
pip install wordcounter
Usage
Import the module after installation
import wordcounter
Create a object with sentence and delimiter as arguments to WordCounter class. Default value for delimiter is ‘ ‘ (a single space)
word_counter = WordCounter('The, quick, brown, fox, jumps, over, the, lazy, dog', delimiter=', ')
Get word count
word_counter.get_word_count()
Get count of specific words
word_counter.count('the') # a case insensitive count
# if you want to have a case sensitive search just set ignore_case=False
word_counter.count('the', ignore_case=False) # a case sensitive count
Get word frequencies
word_counter.get_word_frequencies()
Metadata
Release files for wordcounter 0.0.2.2
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 |
|---|---|---|---|---|
| wordcounter-0.0.2.2.tar.gz | 3.9 kB | Without provenance | Details for wordcounter-0.0.2.2.tar.gz |
Release files / wordcounter-0.0.2.2.tar.gz
| Download URL | wordcounter-0.0.2.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a13333bb03733237eee9b4cf132fb5593ce12f4b9d8d5f7f8e1df1943f163373
|
|
BLAKE2b-256 checksum How to use checksums |
7532528d26ac873dc904c8e8da4f899db5ed8014befb14e7838e3c20fc1f585d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for wordcounter 0.0.2.2
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.