semvec/pypi-packages huggingface dataset:
brx 0.1.5
Use the BRX API using Python.
Requires Python: <4.0,>=3.10

# brx-python

Welcome to the the documentation for the BRX Python package.

Get started with the examples located in ```tests.py```. 

It's easy to implement BRX's Python package:
1. Initialize your BRX Client with your access token:
```python
brx_client = BRX(os.environ.get("BRX_ACCESS_TOKEN")) 
```
2. Get your schema from your dashboard
3. Convert your schema to a modifiable query
```python
query_rebuild = sftoq(schema)
```
4. Extract the input fields, and set your desired values.
```python
output_object = query_rebuild["brx_query"]
input_fields = query_rebuild["input_fields"]
```
5. Set your desired values
```python
for index, input_field in enumerate(input_fields):
    input_fields[index]["value"] = input(f"Please enter the value for {input_field['name']}: ")
```
6. Update your query
```python
updated_query = uif(input_fields, output_object)
```
7. Run your BRX!
```
result = brx_client.execute(updated_query["brx_query"])
```
dynagrpc 0.1.0
DynagRPC Python abstraction library over gRPC and protobuf types.
Requires Python: >=3.7

# DynagRPC

DynagRPC is a Python library to help writing/using gRPC and protobuf.

# Simple server implementation

Say we have this protobuf definition for a simple addition RPC:

```protobuf
syntax = "proto3";
package tests.maths;

service Maths {
  rpc Add (AddRequest) returns (AddResponse) {}
}

message AddRequest {
  int32 first = 1;
  int32 second = 2;
}

message AddResponse {
  int32 result = 1;
}
```

Keeping just the proto (i.e., not compiled with `protoc`), we can use
it with the following implementation in Python is:

```python
from dynagrpc import GrpcServer

server = GrpcServer("tests", "Maths", "maths")

@server.rpc()
def add(first, second):
    return first + second
```

Which you can run, for example, with:

```python
server.run(host="localhost", port="50051")
```