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.6.2

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.6.2
File Size Uploaded
siva_toolkit-0.6.2.tar.gz 6.6 kB Details

Built distribution (wheel)

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

Total release size: 14.3 kB

Release files / siva_toolkit-0.6.2.tar.gz

Download URL siva_toolkit-0.6.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8a8d600869cee659bdb2a20bd74e1f845632f3b1cf21b7ec120aa4eddba419e0
BLAKE2b-256 checksum
How to use checksums
76ce3f3636b20825fccf54cad582df97659df3c77f8061aa2d9c435dce19673a
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.6.2-py3-none-any.whl

Download URL siva_toolkit-0.6.2-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c85be5bab672716f6d2ffe9825bb322921861960eedc367fa648b7c65c1e311
BLAKE2b-256 checksum
How to use checksums
fde429ee37ece714fe89894518fc9d359f9bec74ca3d18075461006b4f29455a
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

0.7.1

2 release files

This release

0.6.2 This release

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