Skip to main content

DSA utility library — input helpers, algorithms, data structures, and AI assistant

Project description

supermegaexplosion

DSA utility library — interactive input helpers, string/math/array algorithms, data structures, and an AI assistant powered by Google Gemini.

from libbs import *

show_commands()          # list everything available
input_matrix()           # interactively type a matrix
is_palindrome("racecar") # True
sieve(100)               # primes up to 100
max_subarray_sum([-2,1,-3,4,-1,2,1,-5,4])  # 6
ListNode.from_list([1,2,3,4,5])

# AI assistant (requires API key + dependency)
respond_help("How to reverse a linked list?")

Install

pip install supermegaexplosion              # core (zero deps)
pip install supermegaexplosion[ai]          # with AI assistant (google-genai)

AI Setup

Get a free API key from https://aistudio.google.com/ and set it:

set GEMINI_API_KEY=your_api_key_here

Then use respond_help("your question") — free tier gives 60 requests/min, 1500/day.

Adding New Functions

Run the interactive helper:

python -m libbs.tools.add_func

It appends the function to the right module, updates the catalog, bumps the version, and optionally rebuilds + uploads to PyPI.

License

MIT

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

supermegaexplosion-0.3.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

supermegaexplosion-0.3.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file supermegaexplosion-0.3.1.tar.gz.

File metadata

  • Download URL: supermegaexplosion-0.3.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.4

File hashes

Hashes for supermegaexplosion-0.3.1.tar.gz
Algorithm Hash digest
SHA256 70bafec0d130146aca608cfa25053be951eb3c8ac310c5b7af2be1f89f52e906
MD5 d79e0f0f9f8a63f03f686bee9ecef080
BLAKE2b-256 9cc58e3aa3a89bb4cdf5725eee9886a67ddbe376e393b248e554b5eb02d4fc79

See more details on using hashes here.

File details

Details for the file supermegaexplosion-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for supermegaexplosion-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0ac09bc24d05ceffdabf6f48ab82ed17d6a8ead95b2800fc0ab114dffddc021
MD5 ae51386de949ad41ae11e0e5169d70e1
BLAKE2b-256 2eb48f66016cda5154fd7c4f861720e48a676806a10927fd9b81e874c1807491

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