Skip to main content

Siva-amazing-toolkit

Siva Toolkit

A Python utility package for web search, weather information, calculations, and QR code scanning.

Siva Toolkit is a Python package that brings together practical utilities behind a simple, easy-to-use API. It is designed for developers building Python applications, automation scripts, and AI assistants.

✨ Features

  • 🌐 Internet Search — Search the web using DuckDuckGo.
  • 🌦️ Weather Information — Retrieve current weather conditions for a location.
  • 🧮 Calculator — Evaluate mathematical expressions with AST-based parsing.
  • 📷 QR Code Scanner — Scan and decode QR codes using a webcam.

📦 Installation

Install Siva Toolkit using pip:

pip install siva-toolkit

🚀 Quick Start

from siva_toolkit import (
    internet_search,
    scan_qr_code,
    get_weather,
    calculate
)

# Search the internet
print(internet_search("minecraft"))

# Scan a QR code using your webcam
scan_qr_code()

# Get current weather in Rawang
print(get_weather("Rawang"))

# Perform a calculation
print(calculate("1+1"))

📚 Usage

Search for information on the web.

from siva_toolkit import internet_search

results = internet_search("Python programming")

print(results)

Specify the maximum number of results:

results = internet_search(
    "Minecraft updates",
    max_results=3
)

print(results)

Parameters

Parameter Description Default
query Search query Required
max_results Maximum number of results 5

🌦️ Weather

Retrieve current weather information for a location.

from siva_toolkit import get_weather

print(get_weather("Rawang"))
print(get_weather("Kuala Lumpur"))

The function returns a text summary from the wttr.in weather service.

🧮 Calculator

Evaluate arithmetic expressions.

from siva_toolkit import calculate

print(calculate("1+1"))
print(calculate("25 * 4"))
print(calculate("(100 - 20) / 4"))
print(calculate("2 ** 8"))

Supported operators include:

Operator Operation
+ Addition
- Subtraction
* Multiplication
/ Division
// Floor division
% Modulo
** Exponentiation

The calculator uses Python's AST parser and an allowlist of arithmetic operators rather than eval().

📷 QR Code Scanner

Scan QR codes using your webcam.

from siva_toolkit import scan_qr_code

result = scan_qr_code()

print("QR Code:", result)

Select a different camera if needed:

scan_qr_code(camera_index=1)

How it works:

  1. Opens the selected camera.
  2. Detects QR codes in the video feed.
  3. Highlights detected QR codes.
  4. Returns the decoded content.

Press Q to close the scanner.

🤖 Built for Python Projects

Siva Toolkit can be integrated into a variety of projects, including:

  • AI assistants and tool-calling systems
  • Automation scripts
  • Developer utilities
  • Computer vision experiments
  • Personal Python applications

For example, an AI assistant can use the package's functions as tools:

from siva_toolkit import (
    internet_search,
    get_weather,
    calculate
)

weather = get_weather("Rawang")
search_results = internet_search("Minecraft")
answer = calculate("25 * 4")

print(weather)
print(search_results)
print(answer)

⚙️ Dependencies

The package uses libraries and services for its functionality, including:

  • requests for HTTP requests
  • ddgs for DuckDuckGo searches
  • opencv-python for QR code detection

Dependencies should be installed automatically by pip if they are correctly declared in the package metadata.

Requirements: A supported Python version, internet access for online services, and a webcam for QR code scanning.

📝 Notes

  • Weather and internet search depend on external services and network availability.
  • QR scanning requires a working camera and the necessary camera permissions.
  • QR codes are returned as decoded text; their contents are not automatically executed.
  • Calculator errors are returned as descriptive messages.

👨‍💻 Author

Siva

Siva Toolkit — Simple tools. Flexible integration.

Metadata

Release files for siva-toolkit 0.7.1

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

Source distribution (sdist)

Source distribution for siva-toolkit 0.7.1
File Size Uploaded
siva_toolkit-0.7.1.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for siva-toolkit 0.7.1
File Interpreter ABI Platform
siva_toolkit-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / siva_toolkit-0.7.1.tar.gz

Download URL siva_toolkit-0.7.1.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ee366eb7abfd2e5b478aa72a2e90f2161d974de930ea8b53177aab3e3908c711
BLAKE2b-256 checksum
How to use checksums
1abf0c04528e044f9cb263e98ade4c24e637a926d7f912a420c0f19afe7c6a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Release files / siva_toolkit-0.7.1-py3-none-any.whl

Download URL siva_toolkit-0.7.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daaed6f4fe60d11d431ff73fc52703c7c3114a4e108457dbb9e15e056c2a4106
BLAKE2b-256 checksum
How to use checksums
a5752fd29bcc7e7569db91d5db7dc66f60315c3a4e5efa701cefe4a15e51f314
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.6.2

2 release files

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