# 🛠️ toolsan
<div align="center">




**A Python toolkit that inspires.**
</div>
---
## 📦 Installation
```bash
pip install toolsan
🚀 Quick Start
import toolsan as ts
# Colored output
ts.superprint("Hello, world!", color=ts.green, style=ts.bold)
# Calculator
print(ts.calculate("sin(30) + 5! / 2")) # 60.5
# Progress bar
for i in range(101):
ts.progress_bar(i, 100, prefix="Loading:", suffix="Done")
# Web scraping
text = ts.get("https://example.com")
print(text[:100])
# AI (if you have an API key)
ts.key("sk-...")
print(ts.answer("What is Python?"))
🌟 Features
Module Description 🧮 Math calculate(), armean(), matmul(), cosine_similarity() and 20+ functions 🎨 Console superprint(), loadspin(), progress_bar(), marquee() with colors 🌐 Web get(), open(), ip(), random_agent(), article parsing 🧠 AI answer() for chat with neural networks (OpenRouter) 🗄️ Database connect(), save(), delete() — simple JSON database without SQL 📊 Utilities rand_password(), date(), levenshtein(), translate()
🧩 Module Details
🎨 Console & Animations
# Animated printing
ts.superprint("🔥 Hello!", delay=0.1, color=ts.red, style=ts.bold)
# Progress bar
for i in range(101):
ts.progress_bar(i, 100, prefix="Processing:", suffix="Complete")
time.sleep(0.05)
# Marquee
ts.marquee("🚀 toolsan — your code, your rules!", delay=0.08, width=30)
# Spinner
ts.loadspin(3, speed=10, color=ts.cyan)
# Countdown
ts.countdown(5, color=ts.yellow)
🧮 Mathematics
# Basic operations
print(ts.armean(1, 2, 3, 4, 5)) # 3.0
print(ts.median(1, 2, 3, 4, 5)) # 3.0
print(ts.clamp(15, 0, 10)) # 10
print(ts.lerp(0, 100, 0.5)) # 50.0
# Vectors and matrices
a = [1, 2, 3]
b = [4, 5, 6]
print(ts.dot(a, b)) # 32
print(ts.cosine_similarity(a, b)) # 0.974...
print(ts.matmul([[1,2]], [[3],[4]])) # [[11]]
🌐 Web
# Get article text
text = ts.get("https://news.ycombinator.com")
print(text[:200])
# Open in browser
ts.open("https://google.com")
# Random User-Agent
print(ts.random_agent())
# Add scheme to URL
print(ts.addscheme("google.com")) # https://google.com
# Get IP
print(ts.ip('local')) # 192.168.1.x
print(ts.ip('public')) # 123.45.67.89
🧠 AI (via OpenRouter)
# Set API key
ts.key("sk-...")
# Simple query
print(ts.answer("What is Python?"))
# Dialog with history
print(ts.answer("Tell me more", memory=True))
🗄️ Database (JSON)
# Connect to file
db = ts.connect("data.json")
# Add data
ts.content(db, "user", "Alice")
ts.content(db, "age", 25)
# Save
ts.save(db, "data.json")
# Delete key
ts.delete(db, "age")
🧰 Utilities
# Password generator
print(ts.rand_password(16)) # G7k!9q#2Lp$5Xr@8
# Date formatting
print(ts.date("Today: Day.Month.Year")) # Today: 17.08.2026
# Levenshtein distance
print(ts.levenshtein("cat", "bat")) # 1
# Word similarity
print(ts.sim("cat", "bat", threshold=0.5)) # True
# Translation
print(ts.translate("Hello, world!", dest="ru")) # Привет, мир!
# Word inflection (Russian)
print(ts.incline("кот", "gent")) # кота
🧩 Decorators
@ts.head(obj='*')
def my_func():
print("Hello, world!")
@ts.benchmark
def slow_func():
time.sleep(1)
🤝 Contributing
- Fork the repository
- Create a branch: git checkout -b feature/my-idea
- Push changes: git push origin feature/my-idea
- Open a Pull Request
📄 License
MIT License — use it as you like!
👨💻 Author
VLAD — a developer who started writing this library at age 12 and never stopped.
⭐ Support
If you like toolsan — star it on GitHub and share with friends!
Thanks for using toolsan! 🚀
---
Metadata
Release files for toolsan 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toolsan-1.1.0.tar.gz | 19.3 kB | Without provenance | Details for toolsan-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toolsan-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for toolsan-1.1.0-py3-none-any.whl |
Total release size: 37.1 kB
Release files / toolsan-1.1.0.tar.gz
| Download URL | toolsan-1.1.0.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bb7e3f292236904cd366241f1d64c201a59dddfe2ee2eea70567ee62db737e4
|
|
BLAKE2b-256 checksum How to use checksums |
ac9ce0e5a7b22731b355e804c5ef0ae09d43c8d24ec8e5cac81da00e115aee89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / toolsan-1.1.0-py3-none-any.whl
| Download URL | toolsan-1.1.0-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05d69255324ddca945ecb8ebf05c532985679d245c31b08f6751fb971a390bab
|
|
BLAKE2b-256 checksum How to use checksums |
f415b85fb54de62e251f277ae942deeb9333bed96cf344abf868ffccbe81d5ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for toolsan 1.1.0
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.