semvec/pypi-packages huggingface dataset:
sbcli-dm 1.4.7
CLI for managing SimplyBlock cluster


# Simply Block
[![Docker Image Build](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml)

[![Python Unit Testing](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml)


## Install
Add the package repo from AWS CodeArtifact using [awscli](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)

```bash
aws codeartifact login --tool pip --repository sbcli --domain simplyblock --domain-owner 565979732541 --region eu-west-1
```
Install package
```bash
pip install --extra-index-url https://pypi.org/simple sbcli-dev
```

# Components

## Simply Block Core
Contains core logic and controllers for the simplyblock cluster

## Simply Block CLI
Please see this document
[README.md](../main/simplyblock_cli/README.md)


## Simply Block Web API
Please see this document
[README.md](../main/simplyblock_web/README.md)



### local development

FoundationDB requires a client library (libfdb_c.dylib) for the Python bindings to interact with the database.
Depending on the OS architecture, please install the appropriate version from the official github repo

```
wget https://github.com/apple/foundationdb/releases/download/7.3.3/FoundationDB-7.3.3_arm64.pkg
```

setup the code on a management node and the webApp code can be developed by building the `docker-compose-dev.yml` file.


```
sudo docker compose -f docker-compose-dev.yml up --build -d
```
flowdag 0.1.1
A library for processing and visualizing data
Requires Python: >=3.6

# flow
Flow is a python library that provides an alternative to create classes. 

### Key Features:
- Define functions and their dependencies.
- Automatically compute values based on dependencies.
- Cache results to avoid redundant calculations.
- Visualize the computation graph.
- Provides an inheritance mechanism


### Example Usage:

```python
from flow import flow, gui

# Define some functions
def a():
    return 2

def b():
    return 3

def add(a, b):
    return a + b

def multiply(a, b):
    return a * b

# Create a flow with these functions
# it creates a dependency graph from the name of the arguments
f = flow(
    a=a, b=b
    add=add, multiply=multiply
)



# f is an object
f.a # 2
f.b # 3
f.add # 5
f.multiply # 6

# f works as a function with cached values
f(b=7).add # 9 does not recompute a

# in a notebook the object will display the dependency graph
f # displays dependency graph

# display buttons that evaluate each node
gui(f)
```