brain-engine 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: brain-engine
3
+ Version: 0.1.0
4
+ Summary: C/Python neural brain engine
5
+ Author: Alessio Valluzzi
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
File without changes
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "brain-engine"
7
+ version = "0.1.0"
8
+ description = "C/Python neural brain engine"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ authors = [
12
+ {name = "Alessio Valluzzi"}
13
+ ]
14
+
15
+ [tool.setuptools]
16
+ package-dir = {"" = "src"}
17
+
18
+ [tool.setuptools.packages.find]
19
+ where = ["src"]
20
+
21
+ [tool.setuptools.package-data]
22
+ brain = ["*.dll"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ from .core import *
Binary file
@@ -0,0 +1,30 @@
1
+ import ctypes
2
+ from pathlib import Path
3
+
4
+ _dll = ctypes.CDLL(
5
+ str(Path(__file__).with_name("brain.dll"))
6
+ )
7
+
8
+ brain_load = _dll.brain_load
9
+ brain_free = _dll.brain_free
10
+ brain_save = _dll.brain_save
11
+
12
+ brain_step = _dll.brain_step
13
+ brain_input = _dll.brain_input
14
+
15
+ brain_neuron_count = _dll.brain_neuron_count
16
+ brain_get_membrane = _dll.brain_get_membrane
17
+ brain_get_threshold = _dll.brain_get_threshold
18
+ brain_set_threshold = _dll.brain_set_threshold
19
+ brain_get_leak = _dll.brain_get_leak
20
+ brain_set_leak = _dll.brain_set_leak
21
+ brain_neuron_spiked = _dll.brain_neuron_spiked
22
+
23
+ brain_synapse_count = _dll.brain_synapse_count
24
+ brain_has_connection = _dll.brain_has_connection
25
+ brain_get_connection_weight = _dll.brain_get_connection_weight
26
+ brain_set_connection_weight = _dll.brain_set_connection_weight
27
+ brain_add_connection = _dll.brain_add_connection
28
+ brain_remove_connection = _dll.brain_remove_connection
29
+
30
+ brain_output = _dll.brain_output
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: brain-engine
3
+ Version: 0.1.0
4
+ Summary: C/Python neural brain engine
5
+ Author: Alessio Valluzzi
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
@@ -0,0 +1,9 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/brain/__init__.py
4
+ src/brain/brain.dll
5
+ src/brain/core.py
6
+ src/brain_engine.egg-info/PKG-INFO
7
+ src/brain_engine.egg-info/SOURCES.txt
8
+ src/brain_engine.egg-info/dependency_links.txt
9
+ src/brain_engine.egg-info/top_level.txt