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.0.tar.gz (10.4 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.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: supermegaexplosion-0.3.0.tar.gz
  • Upload date:
  • Size: 10.4 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.0.tar.gz
Algorithm Hash digest
SHA256 8d49d171841ffdb0a9da694ea35199ac72c41379d5c967c77c05b81e1a2ea3b7
MD5 8be1284289f5f82dd41f713bc332b457
BLAKE2b-256 f3225ef1893004596ab7061a0d158331526c22a2c8ce1b94efe4760420395f4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supermegaexplosion-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25189c80a0e7f271ac7a1fdec08097ae75134d3ec22fb2e575a7dea8bc6cf4a7
MD5 be93eaf5cf98c218296e580c9a53b84c
BLAKE2b-256 5b1940eddadb037a378b90ebf518347bfdec957609328f241f081e578ad5e9ac

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