Skip to main content

py_functions

Python library that takes in a list/tuple and returns a hash map with an element:count of element in the list/tuple as a key:value pair

py_counter


DESCRIPTION:

py_counter is used to make element counting easier to perform duplicate element finding, or simply count of elements(integers or strings) in a list/tuple easier.


USAGE:
import package name
Create an instance of the class and assign it to a variable
Call the counter method referencing the variable instance that we created by passing a list or tuple as parameter.


SYNTAX:

import py_counter
variable_name = py_counter.py_counter()
print(variable_name.counter([list])) (or)
print(variable_name.counter([list]))


EXAMPLE CODE:

import py_counter
word = py_counter.py_counter()
print(word.counter([1,2,3,4,5,5]))

Metadata

Release files for py-counter 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-counter 2.0
File Size Uploaded Provenance Actions
py_counter-2.0.tar.gz 2.4 kB Without provenance Details for py_counter-2.0.tar.gz

Release files / py_counter-2.0.tar.gz

Download URL py_counter-2.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
695001532aaff7db1c44f0c9ec2c934ea056e2e9a1b44496d1a9f9bf27623779
BLAKE2b-256 checksum
How to use checksums
27e561696c7478e90777c79f4a70e865ea770384e338c5117634f13674d9bbdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.1

Security for py-counter 2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page