Skip to main content
Quarantined

This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.

numprint

Tiny, dependency-free helpers for multiplication tables and parity checks.

Install

pip install git+https://github.com/Hritik00s/numprint.git

Usage

from numprint import print_tables, is_even, parity

print_tables(50)     # 50 x 1 ... 50 x 50
print_tables(30)     # 30 x 1 ... 30 x 30

is_even(4)           # True
is_odd(4)            # False
parity(7)            # 'odd'

Or from the command line:

$ numprint 12
12 x 1 = 12
12 x 2 = 24
...
12 x 12 = 144

API

Function Description
print_tables(n, upto=None) Print the table of n. upto defaults to n.
table(n, upto=None) Same, returned as a list of strings.
is_even(n) True if n is even.
is_odd(n) True if n is odd.
parity(n) 'even' or 'odd'.

Development

pip install -e ".[dev]"
pytest

License

MIT

Metadata

Release files for numprint 1.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 numprint 1.2.0
File Size Uploaded Provenance
numprint-1.2.0.tar.gz 15.7 kB Without provenance Details

Release files / numprint-1.2.0.tar.gz

Download URL numprint-1.2.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
55a2c1e71513b89a1b6046108f1652e964e8a8525091057265ca3bcad718d3e6
BLAKE2b-256 checksum
How to use checksums
780d2734dc3781dd2e7af61255caa40853515111a8228eb445ef47faaccc7f98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for numprint 1.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.

Release history Release notifications | RSS feed

This release
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