Skip to main content

PyAiNetwork

A lightweight, open-source Python library for building and training neural networks with only a few lines of code.

Create AI models without writing hundreds of lines for neurons, layers, and weights.


Installation

pip install PyAiNetwork

Features

  • 🚀 Beginner-friendly API
  • 🧠 Standard Network
  • ⚡ Advanced ProfNetwork
  • 🔥 GELU activation
  • 🔥 ReLU activation
  • 🔥 Sigmoid activation
  • 📈 Built-in training
  • 🎯 Custom network architectures
  • 🪶 Lightweight & fast
  • 🐍 Pure Python
  • 💚 Open Source

Quick Start

from PyAiNetwork import Network

net = Network(
    2,      # Input neurons
    2,      # Hidden layers
    4,      # Neurons per hidden layer
    1       # Output neurons
)

result = net.forward([0.5, 1.0])

print(result)

Training

from PyAiNetwork import Network

net = Network(2, 1, 4, 1)

for _ in range(100):
    net.train(
        [1, 0],
        [1]
    )

print(net.forward([1, 0]))

Activation Functions

PyAiNetwork supports multiple activation functions.

GELU

Network(..., activition="gelu")

ReLU

Network(..., activition="relu")

Sigmoid

Network(..., activition="sigmoid")

Network

Network creates a neural network where every hidden layer contains the same number of neurons.

Network(
    input_neurons,
    hidden_layers,
    neurons_per_layer,
    output_neurons,
    activition="gelu"
)

Example

net = Network(
    4,
    3,
    16,
    2
)

Architecture

4 → 16 → 16 → 16 → 2

ProfNetwork

ProfNetwork allows every hidden layer to have a different number of neurons.

from PyAiNetwork import ProfNetwork

net = ProfNetwork(
    2,
    [8, 16, 8],
    1
)

Architecture

2 → 8 → 16 → 8 → 1

Another example

net = ProfNetwork(
    3,
    [32, 64, 64, 32],
    5
)

Which one should I use?

Class Best for
Network Simple projects and learning
ProfNetwork Custom architectures and larger AI models

Roadmap

Planned features for future releases

  • Adam Optimizer
  • Save / Load models
  • Batch training
  • More activation functions
  • More loss functions
  • Better performance
  • More neural network types
  • GPU support (planned)

About Eyes Studio

PyAiNetwork is developed by Eyes Studio, an independent software developer focused on AI technologies, developer tools, and open-source software.


License

MIT License

Copyright © 2026 Eyes Studio


GitHub

https://github.com/eyes-studio/PyAiNetwork

Metadata

Release files for PyAiNetwork 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyAiNetwork 0.2.2
File Size Uploaded Provenance Actions
pyainetwork-0.2.2.tar.gz 2.4 kB Without provenance Details for pyainetwork-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyAiNetwork 0.2.2
File Interpreter ABI Platform Actions
pyainetwork-0.2.2-py3-none-any.whl Python 3 none any Details for pyainetwork-0.2.2-py3-none-any.whl

Total release size: 4.9 kB

Release files / pyainetwork-0.2.2.tar.gz

Download URL pyainetwork-0.2.2.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c7c0e3965e074165ff01c40acb1b5a0bce1d25dc6b9e281ffffd7c0ac61e39bb
BLAKE2b-256 checksum
How to use checksums
609f7b896ba03afc2d4bc0654e42e24ba56114cce8d0d4358585be67fbb1a7ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / pyainetwork-0.2.2-py3-none-any.whl

Download URL pyainetwork-0.2.2-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ad14be0d9b3d910d309a208f483b37c8d3e30f189d7e3b0cc49b315458f8cf9
BLAKE2b-256 checksum
How to use checksums
17fa53b5d8241c9e302b4a3f433a8b28b4e584807937008df9631401d2de011e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for PyAiNetwork 0.2.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page