Skip to main content

pythonnnn

Modular DSA/DAA library for competitive programming and coursework: graph/tree helpers, fast I/O, and a large doc() lookup for solutions, pseudocode, and MCQs.

Install

pip install pythonnnn

Requires Python 3.6+ and networkx.

Quick start

import pythonnnn
from pythonnnn import doc, scan, GraphOps, TreeOps

# Print a solution (fuzzy name match)
doc("shell sort", "python")
doc("shell sort", "python_iteration")

# Pseudocode / theory
doc("radix sort", "theory")
doc("1.1", "theory")

# MCQs by topic
doc("", "mcq")
doc("matrix chain", "mcq")
doc("lcs", "mcq")

# Graph helper (NetworkX-backed)
g = GraphOps()
g.add(0, 1)
g.add(1, 2)
print(g.bfs(0))

doc() languages

Second argument Output
baby (default) Short / baby-friendly code
python Full Python solution
python_iteration Version that prints iteration steps (where available)
theory Pseudocode and exam notes
mcq Topic-wise MCQ questions and answers

Aliases and unit indices work (e.g. doc("4.12"), doc("kmp"), doc("6.69")).

Modules

  • pythonnnn.doc — doc() lookup (~300+ problems)
  • pythonnnn.GraphOps / MatrixGraph — graph utilities
  • pythonnnn.TreeOps / Node — tree utilities
  • pythonnnn.Scanner — competitive-programming style input

License

MIT

Metadata

Release files for pythonnnn 2.2.4

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

Source distribution (sdist)

Source distribution for pythonnnn 2.2.4
File Size Uploaded Provenance Actions
pythonnnn-2.2.4.tar.gz 61.9 kB Without provenance Details for pythonnnn-2.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pythonnnn 2.2.4
File Interpreter ABI Platform Actions
pythonnnn-2.2.4-py3-none-any.whl Python 3 none any Details for pythonnnn-2.2.4-py3-none-any.whl

Total release size: 124.7 kB

Release files / pythonnnn-2.2.4.tar.gz

Download URL pythonnnn-2.2.4.tar.gz
Size 61.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4b18fb6885c1cfb9df971b61e12af21e321b16755603c4aa310a571063276acb
BLAKE2b-256 checksum
How to use checksums
1ee619c319c47b61b63afb6a77b0553929505265a3100bec66832304408731f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Release files / pythonnnn-2.2.4-py3-none-any.whl

Download URL pythonnnn-2.2.4-py3-none-any.whl
Size 62.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c8a6bfbb59205b0ac0659cb2e97663954e20b92355204dcc95e2f64ab2acedb
BLAKE2b-256 checksum
How to use checksums
5e7b1774b3864dd8e6f245d3576c4240842b63675b061fc91b4a2763197a8b8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Security for pythonnnn 2.2.4

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