A multi-purpose AI and utility module for Python — includes GUI, file handling, math, media, and OS integration.
Project description
🧠 NeuraPython — Unified Scientific and AI Python Framework
Author: Ibrahim Shahid
Version: 1.2.0
License: MIT
📘 Overview
NeuraPython is a powerful, all-in-one Python module that integrates Artificial Intelligence, Machine Learning, Physics, Chemistry, Mathematics, Databases, Media Handling, Web Servers, Speech Recognition, and much more — all inside one unified framework.
It is designed for developers, data scientists, educators, and researchers who want a single tool for advanced computation, visualization, automation, and AI integration.
🚀 Key Features
| Category | Description |
|---|---|
| Artificial Intelligence | Access Google Gemini and OpenAI GPT APIs directly. |
| Machine Learning | Unified wrapper over Scikit-Learn: data preprocessing, model training, evaluation, and persistence. |
| Neural Networks | Dual backend (PyTorch & TensorFlow) with a universal API for model creation and training. |
| Mathematics | Advanced arithmetic, algebra, probability, and calculus using symbolic math. |
| Physics | Complete suite for classical, relativistic, and quantum physics equations and constants. |
| Chemistry | Periodic table, atomic data lookup, and molecular computation. |
| Database | Simplified SQLite3 interface with auto schema creation and CRUD support. |
| Web Development | Built-in Flask-powered server for quick web apps and JSON APIs. |
| Speech & Media | Text-to-speech, voice recognition, and media (image, audio, video) handling. |
| Visualization | 2D and 3D graphing powered by Matplotlib. |
| File Conversion | Convert between PDF, DOCX, Excel, JSON, CSV, and Markdown/HTML seamlessly. |
| QR Codes | Generate and decode QR codes easily. |
| Readers | Built-in file readers for multiple formats: PDF, DOCX, JSON, HTML, XML, CSV, etc. |
🧩 Installation
Requires Python 3.9+
Install from PyPI:
pip install neurapython
Upgrade if already installed:
pip install --upgrade neurapython
Then import the module:
from neurapython import *
🧠 Example Usage
🧩 Machine Learning
ml = NeuraPython_ML()
X, y = ml.load_builtin_dataset("iris")
X_train, X_test, y_train, y_test = ml.split(X, y)
ml.create_model("random_forest")
ml.train("random_forest", X_train, y_train)
pred = ml.predict("random_forest", X_test)
print(ml.evaluate(y_test, pred))
🔬 Neural Network
nn = NeuralNetwork(backend='torch')
nn.Sequential([4, 8, 3])
nn.compile()
nn.fit([[0.1, 0.2, 0.3, 0.4]], [[1, 0, 0]], epochs=3)
⚛️ Physics
phy = Physics()
print(phy.mass_energy_equivalence(0.001)) # E = mc²
⚗️ Chemistry
chem = Chemistry()
print(chem._elements[0]) # Hydrogen info
📊 Visualization
viz = Visualizer2D(["A","B","C"], [10,20,15], title="Example Bar Graph")
viz.bar_graph()
viz.show()
🔈 Speech & Media
speak("Hello, this is NeuraPython in action!")
text = voice_input("Say something:")
print("You said:", text)
🧮 Calculus
calc = Calculus()
print(calc.derivative("x**2 + 3*x", "x"))
🧱 Module Structure
neurapython/
│
├── AI # API access (ChatGPT, Gemini)
├── Advanced_Maths # Arithmetic, algebra, statistics
├── Calculus # Symbolic calculus and differentiation
├── Chemistry # Periodic table and constants
├── Converter # File format converters
├── Database # SQLite handler
├── Media # Audio, video, and image tools
├── Matrices, Vectors # Linear algebra utilities
├── NeuraPython_ML # Scikit-learn unified wrapper
├── NeuralNetwork # TensorFlow / PyTorch integration
├── Physics # Mechanics, relativity, quantum
├── Reader # File readers (txt, pdf, json, etc.)
├── Visualizer2D / 3D # Graph plotting
├── WebServer # Flask API server
└── QR_Code # Generate and read QR codes
⚙️ Requirements
torchtensorflowscikit-learnflaskpyttsx3speechrecognitionpygameopencv-pythonpandasnumpymatplotlibsympypdfplumberdocx2pdfpdf2docxmarkdownfpdfjoblibrequestsbs4
Install dependencies manually (if needed):
pip install neurapython
📚 Additional Information
- Fully modular — import only what you need.
- Cross-platform (Windows, macOS, Linux).
- Integrated TensorFlow and PyTorch support.
- Built-in physics constants and quantum utilities.
- File conversion utilities for automation workflows.
- Speech and multimedia integration for interactive projects.
- Database and web utilities for backend development.
🧠 Author
Ibrahim Shahid
📧 Email: ibrahimshahid7767@gmail.com
⚖️ License
This project is licensed under the MIT License.
You are free to use, modify, and distribute with proper credit.
🌟 Contribution
Contributions are welcome!
- Fork this repository
- Create your branch (
git checkout -b feature/YourFeature) - Commit changes (
git commit -m "Add new feature") - Push (
git push origin feature/YourFeature) - Open a Pull Request
🧩 Future Enhancements
- Web-based dashboard for AI/ML models
- Extended NLP and Vision utilities
- Integrated scientific simulator
💬 Credits
Developed with ❤️ by Ibrahim Shahid
Powered by: TensorFlow · PyTorch · Flask · Scikit-learn · SymPy · Pandas · NumPy · OpenCV · Matplotlib and more.
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
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 neurapython-1.2.0.tar.gz.
File metadata
- Download URL: neurapython-1.2.0.tar.gz
- Upload date:
- Size: 29.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dac658364c9378a9f4851a170d1a19227639ff757b49712eed1e33eeb4acab3
|
|
| MD5 |
921f195f98d4b49901fd84a2c5e2cfa4
|
|
| BLAKE2b-256 |
874e1c3acbe1bc8f8b96ca85e38aaa3d7e57f6be686a27754ba60d664a5897c6
|
File details
Details for the file neurapython-1.2.0-py3-none-any.whl.
File metadata
- Download URL: neurapython-1.2.0-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
415868b723469635617665ea7d385410e9afac40770589343bed2d218852b2f0
|
|
| MD5 |
0384078e62abd413c10c59a61404e1eb
|
|
| BLAKE2b-256 |
78defa3ce328ba8ff717522f664beef598c70cbc8eb33cd31382e34bca0d7933
|