Satya - Educational Python interpreter for data structures and algorithms in natural language.
Project description
satya-1
Write and learn data structures and algorithms in easy, everyday language—no complex code, just simple commands.
Installation
pip install satya-1
Basic Usage
from satya import SatyaInterpreter
interpreter = SatyaInterpreter()
print(interpreter.run("Create linked list with 3 nodes"))
print(interpreter.run("Add satya, 1, 2, 3"))
print(interpreter.run("Remove 2nd element"))
print(interpreter.run("List show"))
More Use Cases
Stack Operations
interpreter.run("Create stack")
interpreter.run("Push X")
interpreter.run("Pop")
interpreter.run("Stack show")
Queue Operations
interpreter.run("Create queue")
interpreter.run("Enqueue 5,6,7")
interpreter.run("Dequeue")
interpreter.run("Queue show")
Graph Operations
interpreter.run("Create graph")
interpreter.run("Add edge A B")
interpreter.run("Add edge B C")
interpreter.run("Show graph")
interpreter.run("DFS A")
interpreter.run("BFS A")
Math & Logic
interpreter.run("Is 121 palindrome?")
interpreter.run("Factorial of 5")
interpreter.run("Fibonacci till 10")
interpreter.run("Sort 5 1 3 2")
interpreter.run("Search 3 in 1 2 3 4")
interpreter.run("Is 153 armstrong?")
interpreter.run("Is 29 prime?")
Advantages
- Natural Language Interface: Use plain English to interact with data structures and algorithms.
- Educational: Great for teaching and learning basic data structures and algorithms.
- Quick Prototyping: Instantly test logic and structure operations without boilerplate code.
- Extensible: Easily add new commands or extend existing ones for custom educational needs.
- No Dependencies: Pure Python, no external requirements.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
satya_1-0.1.3.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file satya_1-0.1.3.tar.gz.
File metadata
- Download URL: satya_1-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21392e35df336e1dd4746ac384a2991f138067319ce9eff2cd6e6e31d7c16174
|
|
| MD5 |
e5cd6e8da681a4b9303bd3a219940d4f
|
|
| BLAKE2b-256 |
a0f5841fde91ac9b08f34a190ffd04494e04c85721b706e340f71f5cf1948fb0
|
File details
Details for the file satya_1-0.1.3-py3-none-any.whl.
File metadata
- Download URL: satya_1-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7bc6574764f889c1ff77de94fec4439721f598b820671ab2d1b476bdd9e49cd
|
|
| MD5 |
ff91339df88ae5584f2ef938399e28e4
|
|
| BLAKE2b-256 |
f548fc4e6875eafd28bdfb4a1f83b08c4344d9ee53901d746100034c2127aea3
|