semvec/pypi-packages huggingface dataset:
gov-cli 1.0
cardano-cli
Requires Python: >=3.0

GOV CLI
================
Cli wrapper on top of cardano-cli for governance actions on cardano blockchain


### Features
- Key generation auto loading of required keys when making transactions
- Automatic transaction balancing
- Automatic query of deposits and collateral
- Automatic query of prev-gov-action and gov-action deposit
- Automatic query of constitution guardrail-script and use in proposals.

Tutorial : [Quick Start with Gov-Cli](https://cardanoapi.github.io/gov-cli/docs/intro)

### Env Variables
| **Environment Variable**     | **Description**                        | **Possible Values**                                 |
|------------------------------|----------------------------------------|----------------------------------------------------|
| `CARDANO_NODE_SOCKET_PATH`   | Node's socket path                     | (e.g., path to the socket file)                    |
| `NETWORK`                    | Cardano network                        | `1`, `2`, `3`, `4`, `mainnet`, `preprod`, `sancho`, `preview` |
| `KEYS_DIR`                   | Where keys are generated and stored   | `$HOME/.cardano/key`                              |
| `LOG_CLI`                    | Show commands executed in CLI          | `yes`, `no`, `false`                              |


### Installation
```
$ pip install gov-cli
$ gov-cli help
  Usage:
  
     gov-cli <command> [*options]

  Available commands:
  
    ls         -> list proposed gov-actions
    tip        -> show blockchain tip 
    wallet     -> show wallet info
    balance    -> print wallet balance
    
    gen [wallet|drep|cc]
    guardrail load  <gurdrail-script-file-path>
    
    register  <stake|drep|cc>
    delegate  <abstain|no-confidence|self|<drep_id>>
    propose  <proposal_type>  [*proposal-related_cli_args]
    vote  <drep|cc>  <gov-action-tx#index>  [yes|no]
    
    tx [script] [*cli-args]   
```
openobserve 1.0.2
OpenObserve library

# OpenObserve
A library for sending logs to OpenObserve

## Logi
Logs for library errors and for `global_exception_logger` are located at:
```bash
cd /home/$USER/.openobserve/logs/log.log
```

## Configuration
```python
import openobserve
openobserve.username = ''
openobserve.password = ''
openobserve.host = 'http://127.0.0.1:5080',
openobserve.stream_global = 'default' #default stream
openobserve.organization_global = 'default' #default organization
openobserve.ssl_verify = False #SSL host verification
openobserve.additional_info = False #additional data
openobserve.enable_threading = True #enable send logs in thread (speed up)
```

## Sending a log
Fields _stream and _organization override stream_global and organization_global
```python
def send(
    job: Any = '',
    level: str = 'INFO',
    _stream: str = None,
    _organization: str = None,
    **kwargs
)
```
### Example
```python
import openobserve
openobserve.send(job='test', _return_data=True,message='test message')
```
Log:
```json
{
    '_timestamp': '2024-03-25T20:10:47.106', 
    'level': 'INFO',
    'job': 'test', 
    'message': 'test message'
}
```

## Additional data for openobserve.additionalinfo
```json
{
    'hostname': socket.gethostname(),
    'user_name': socket.gethostname(),
    'system': platform.system(),
    'system_architecture': platform.machine(),
    'system_version': platform.version(),
    'system_release': platform.release(),
    'python_version': platform.python_version()
}
```

## Global error collection
Code for globally collecting errors from the project
```python
import openobserve.global_exception_logger

print(1 / 0)
```
At this point, the log is sent to the server and saved on disk
### Configuration
```python
import openobserve.global_exception_logger

openobserve.global_exception_logger.organization_global = 'default'
openobserve.global_exception_logger.stream_global = 'default'
```