Skip to main content

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


NeuraPython Banner
Unify AI, Machine Learning, Science, and Web Development โ€” in one module.

License: MIT Python Framework Developer


๐ŸŒŸ 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 TensorFlow and PyTorch
  • Dynamic model building with sequential layer architecture
  • Unified training, compilation, and prediction interface

๐Ÿง  Machine Learning

  • NeuraPython_ML simplifies 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 pygame and OpenCV

๐Ÿงฐ 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.

Footer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neurapython-2.0.3.tar.gz (54.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neurapython-2.0.3-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

Details for the file neurapython-2.0.3.tar.gz.

File metadata

  • Download URL: neurapython-2.0.3.tar.gz
  • Upload date:
  • Size: 54.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for neurapython-2.0.3.tar.gz
Algorithm Hash digest
SHA256 2be58063255f7f5e64486010d057282c64b55b063aba0cfc952b6e007efe9093
MD5 a2900e673964a72e3d69f11b4c5f0843
BLAKE2b-256 119d669be55c88f1b50d2a322cc25e36bb24057240744c6199d589c9f7102c2e

See more details on using hashes here.

File details

Details for the file neurapython-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: neurapython-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for neurapython-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 60ef1a07d1932d15eef7f20781f249ed44f1fcf7dfd4ebbcfa4c0edc0b7601b9
MD5 96172cd03921625b04596cb7989359e3
BLAKE2b-256 1cdef3d6be1d8dfb0e24c0af96ceec6663e28f97576a6a8d41ec5a9605eb9e90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page