Skip to main content

CyberPlain is a defensive cybersecurity toolkit for Python and the command line. It uses normal English in its names, output, errors, and documentation so beginners can understand what a check did and experienced practitioners can automate it.

Learn neural networks

For a tiny, dependency-free neural network, describe the layer sizes, give it examples, and ask it a question:

from cyberplain import make_brain

brain = make_brain()
brain.train(
	[[0, 0], [0, 1], [1, 0], [1, 1]],
	[0, 1, 1, 0],
	epochs=2_000,
)
print(brain.predict([1, 0]))  # close to 1
print(brain.predict([1, 1]))  # close to 0

make_brain() creates a small network with sensible defaults. Use NeuralNetwork(2, 3, 1) when you want to choose every layer yourself. train() returns the error history, while weights and biases stay visible so learners can see what practice changes.

Metadata

Release files for cyberplain 0.3.1

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

Source distribution (sdist)

Source distribution for cyberplain 0.3.1
File Size Uploaded
cyberplain-0.3.1.tar.gz 28.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cyberplain 0.3.1
File Interpreter ABI Platform
cyberplain-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 59.2 kB

Release files / cyberplain-0.3.1.tar.gz

Download URL cyberplain-0.3.1.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
426da8b01705a7bf485c270cef794b8611c4989b6115a80750ee6fcc5817a87f
BLAKE2b-256 checksum
How to use checksums
9c5a5afc64f1ad91f5e08e43df7b5f230f14af250e49562daa4c537e3002ce52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Release files / cyberplain-0.3.1-py3-none-any.whl

Download URL cyberplain-0.3.1-py3-none-any.whl
Size 30.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
040a6e13b5c1b08b0bd0dc8e61e9e2ff794ab84f41f1f6536d8d8a1c8a102390
BLAKE2b-256 checksum
How to use checksums
ed95726daadf836f5e129092a7a0564b225a19543c988ac655642a48500af11a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Release history Release notifications | RSS feed

0.3.2

2 release files

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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