NeuraPython is a unified framework combining AI, Machine Learning, Data Science, Web Development, Scientific Computation, and Utility tools.
Project description
๐ง NeuraPython
The All-in-One AI, ML, Scientific & Utility Framework for Python Developers
Created & Maintained by Ibrahim Shahid
Unify AI, Machine Learning, Science, and Web Development โ in one module.
๐ Overview
NeuraPython is a unified powerhouse module that merges Artificial Intelligence, Machine Learning, Web Development, Data Science, Physics, Chemistry, and Mathematics into a single framework. Itโs designed for developers, engineers, students, and researchers who want to explore intelligence, computation, and science without juggling multiple libraries.
This package consolidates commonly used tools โ including TensorFlow, PyTorch, Flask, Scikit-learn, OpenCV, Matplotlib, and more โ under one unified namespace.
๐ Philosophy
โOne Import. Infinite Possibilities.โ
NeuraPython aims to make scientific, AI, and data workflows faster, simpler, and smarter โ no boilerplate code, no repetitive setup.
๐งฉ Core Functionalities
๐ค Artificial Intelligence
- Connect to Google Gemini API and OpenAI ChatGPT API
- Universal Neural Network Engine supporting both
TensorFlowandPyTorch - Dynamic model building with sequential layer architecture
- Unified training, compilation, and prediction interface
๐ง Machine Learning
NeuraPython_MLsimplifies model creation, training, evaluation, and saving.- Preprocessing tools: normalization, encoding, standardization, and scaling
- Prebuilt datasets: Iris, Wine, Digits, Breast Cancer
- Built-in models:
- Linear & Logistic Regression
- SVM, KNN, Decision Tree, Random Forest
- Gradient Boosting, PCA, KMeans, Naive Bayes
- Automatic train-test split, cross-validation, and grid search
๐ Web Development
- Flask-based WebServer class with:
- Custom route handling
- File upload and JSON endpoints
- SQLite integration
- Health-check routes
- Vector plotting endpoints
๐งฎ Advanced Mathematics & Calculus
- Derivatives, Integrals, Limits, Partial Derivatives
- Gradient, Curl, Divergence
- Taylor Series, Summation, Jacobian, Hessian
- Symbolic computation powered by Sympy
โ๏ธ Physics
- Classical mechanics, Relativity, and Quantum mechanics equations
- Functions for velocity, acceleration, energy, force, momentum
- Relativistic mass, Lorentz factor, time dilation
- Quantum equations (Planck, De Broglie, Heisenberg)
โ๏ธ Chemistry
- Periodic Table data for 50+ elements
- Molar, atomic, and gas constant utilities
- Planckโs relation, photon energy, and quantum constants
๐ Data Visualization
- 2D & 3D visualization using Matplotlib
- Line, Bar, Scatter, Pie, Polar, and 3D vector plots
- Built-in Vector2D & Vector3D classes with geometry operations
๐งพ File Readers & Converters
- Read:
.pdf,.docx,.json,.xml,.csv,.xlsx,.html,.md,.txt - Convert between formats:
- PDF โ DOCX
- CSV โ Excel โ JSON
- Markdown โ HTML
- Text โ PDF/DOCX
- Supports direct string-to-file conversion
๐ค Speech & Audio
- Text-to-Speech via
pyttsx3 - Voice input recognition using
SpeechRecognition - Audio and video playback through
pygameandOpenCV
๐งฐ Utility Tools
- QR Code Generator and Reader
- Calendar printer
- Google, YouTube, WhatsApp search helpers
- System utilities for file handling, OS detection, and device info
โ๏ธ Installation
From PyPI
pip install neurapython
Manual Installation
git clone https://github.com/IbrahimShahid7767/neurapython.git
cd neurapython
pip install -r requirements.txt
Dependencies
pip install numpy pandas scikit-learn flask pyttsx3 pygame pillow opencv-python pdfplumber pdf2docx docx2pdf fpdf markdown beautifulsoup4 sympy tensorflow torch joblib qrcode requests
๐ป Usage Examples
Example 1 โ Quick Math
from neurapython import Advanced_Maths
calc = Advanced_Maths()
print(calc.factorial(6))
Example 2 โ Machine Learning Workflow
from neurapython import NeuraPython_ML
ml = NeuraPython_ML()
X, y = ml.load_builtin_dataset("iris")
X_train, X_test, y_train, y_test = ml.split(X, y)
model = ml.create_model("svm")
ml.train("svm", X_train, y_train)
y_pred = ml.predict("svm", X_test)
print(ml.evaluate(y_test, y_pred))
Example 3 โ Neural Network with Torch
from neurapython import NeuralNetwork
nn = NeuralNetwork(backend="torch")
nn.Sequential([4, 8, 3])
nn.compile(optimizer="adam", loss="mse")
nn.fit([[1, 2, 3, 4]], [[0, 1, 0]], epochs=5)
Example 4 โ Web Server
from neurapython import WebServer
app = WebServer()
app.simple_route("/", code="Welcome to NeuraPython Web")
app.health("/health")
app.run(port=5200)
Example 5 โ Physics
from neurapython import Physics
p = Physics()
print(p.kinetic_energy(5, 10))
print(p.mass_energy_equivalence(0.1))
Example 6 โ QR Code
from neurapython import QR_Code
QR_Code.generator("https://github.com/IbrahimShahid7767", "neura_qr.png")
print(QR_Code.reader("neura_qr.png"))
๐งฉ Module Summary
| Category | Classes / Functions | Description |
|---|---|---|
| AI | AI, NeuralNetwork |
Gemini, ChatGPT API, PyTorch & TensorFlow NN |
| ML | NeuraPython_ML |
Unified Scikit-learn Wrapper |
| Maths | Advanced_Maths, Calculus, Matrices |
Arithmetic, calculus, algebra, symbolic computing |
| Science | Physics, Chemistry |
Mechanics, Relativity, Quantum, Periodic Table |
| Visualization | Visualizer2D, Visualizer3D |
Graphs and vector plots |
| Media | Media |
Image, Audio, Video handling |
| Web | WebServer |
Flask API automation |
| Converters | Converter, Reader |
File transformation and reading |
| Utilities | QR_Code, Calender |
QR, calendar, web utilities |
๐ง Vision
โNeuraPython isnโt just a library โ itโs a platform for computational intelligence.โ
It simplifies AI, math, and science workflows into a unified Pythonic experience.
๐ Project Structure
neurapython/
โโโ __init__.py
โโโ ai/
โ โโโ neural.py
โ โโโ ml.py
โ โโโ api_clients.py
โโโ core/
โ โโโ physics.py
โ โโโ chemistry.py
โ โโโ calculus.py
โ โโโ maths.py
โ โโโ matrices.py
โโโ utils/
โ โโโ converter.py
โ โโโ reader.py
โ โโโ media.py
โ โโโ webserver.py
โ โโโ qrcode_tool.py
๐งพ License
MIT License ยฉ 2025 Ibrahim Shahid
Permission is hereby granted, free of charge, to any person obtaining a copy of this software to use, modify, and distribute copies without restriction.
๐ NeuraPython โ Intelligence Simplified.
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-2.1.1.tar.gz.
File metadata
- Download URL: neurapython-2.1.1.tar.gz
- Upload date:
- Size: 55.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f572c12f2c78bd2dbb78a675f891da7b8a647e2f8990160e88457f0394ec778c
|
|
| MD5 |
229eb385a5c24aeabddbb72f8e12a529
|
|
| BLAKE2b-256 |
56adbe942139e74002b36300756a059d0629cf3a9693999002f856b93baffa8a
|
File details
Details for the file neurapython-2.1.1-py3-none-any.whl.
File metadata
- Download URL: neurapython-2.1.1-py3-none-any.whl
- Upload date:
- Size: 61.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72a0a30ff64216c7b39468aaf3ddcbd826604c568b29f4cb76f7f6b31307185a
|
|
| MD5 |
fa1941feb876ae10b866335e80595b25
|
|
| BLAKE2b-256 |
f8a89a28cb1e7ff29f07cd1d0442af5c017997eb61cd3e2a152dd9a5ae373ee5
|