Metadata-Version: 2.1
Name: neuronum
Version: 1.1.2
Summary: Interact with the Neuronum Network to build, connect & automate economic data streams
Author: Neuronum Cybernetics
Author-email: welcome@neuronum.net
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests

![Neuronum Logo](https://neuronum.net/static/logo_pip.png "Neuronum")
[![Website](https://img.shields.io/badge/Website-Neuronum-blue)](https://neuronum.net)
[![Documentation](https://img.shields.io/badge/Docs-Read%20now-green)](https://neuronum.net/docs)
[![Tutorials](https://img.shields.io/badge/Tutorials-Watch%20now-red)](https://www.youtube.com/@neuronumnet)

Interact with the `Neuronum Network` to build, connect & automate economic data streams.

## Business Cell Features
- **Transmitters (TX)**: Automate economic data transfer + Circuits Integration
- **Circuits (CTX)**: A simple Key-Value-Label database to store economic data
- **Streams (STX)**: Stream economic data to synchronize devices & databases in real time (beta)

## Community Cell Features
- **Circuits (CTX)**: A simple Key-Value-Label database (perfect for testing and side projects)

## Getting Started
Create your Neuronum Business/Community Cell: [Create Cell](https://neuronum.net/createcell)


Install the Neuronum library using pip:
```bash
pip install neuronum
```

Set & test Cell connection:
```bash
import neuronum

cell = neuronum.Cell(
host="host::cell",
password="your_password",
network="neuronum.net",
synapse="your_synapse"
)

cell.test_connection()
```

Activate Transmitter (TX):
```bash
TX = "id::tx"

data = {
"key1": "value1",
"key2": "value2",
"key3": "value3",
"key4": "value4"
}

cell.activate(TX, data)
```

Store data on your private Circuit (CTX):
```bash
label = "your_label"
data = {
        "key1": "value1",
        "key2": "value2",
        "key3": "value3",
}
cell.store(label, data)
```

Store data on a public Circuit (CTX):
```bash
CTX = "id::ctx"

label = "your_label"
data = {
        "key1": "value1",
        "key2": "value2",
        "key3": "value3",
}
cell.store(label, data, CTX)
```

Load data from your private Circuit (CTX):
```bash
label = "your_label"

data = cell.load(label)
key1 = data["key1"]
key2 = data["key2"]
key3 = data["key3"]
print(key1, key2, key3)
```

Load data from a public Circuit (CTX):
```bash
CTX = "id::ctx"

label = "your_label"

data = cell.load(label, CTX)
key1 = data["key1"]
key2 = data["key2"]
key3 = data["key3"]
print(key1, key2, key3)
```

Delete data from your private Circuit (CTX):
```bash
label = "your_label"
data = cell.delete(label)
```

Delete data from a public Circuit (CTX):
```bash
CTX = "id::ctx"

label = "your_label"
data = cell.delete(label, CTX)
```

Stream data:
```bash
data = "your_data"
cell.stream(data)
```
