semvec/pypi-packages huggingface dataset:
python-hypertext-preprocessor 1.1.1
An HTML preprocessor for Python

# PyHP (Python Hypertext Preprocessor)

PyHP is a Python script that can be used to write Python code in HTML, then execute it and render it to a page.

## Getting Started
### Installation
To use this project, install it using pip:

```commandline
pip install python-hypertext-preprocessor
```

Alternatively, clone the repository and install the dependencies:

```commandline
git clone https://github.com/Benjymack/pyhp.git
cd pyhp
pip install -r requirements.txt
```

### Running the example Flask server
To run a simple Flask server with the pip installed version, use the following command:

```commandline
python -m pyhp server path/to/directory
```

If you cloned from GitHub:

```commandline
python -m src.pyhp server examples
```

In both cases, the server will be available at http://localhost:5000/

### Running individual files
To run an individual example file, use the following command:

```commandline
python -m pyhp file path/to/file.pyhp
```
rsdb 0.9.2
Object–relational mapping for RiskSpectrum PSA model database
Requires Python: >=3.8, <4

# rsdb
Object–relational mapping for [RiskSpectrum PSA](https://www.lr.org/en/riskspectrum/technical-information/psa/) model database.

[![image](https://img.shields.io/pypi/v/rsdb.svg)](https://pypi.python.org/pypi/rsdb/)

## Installation
```sh
# PyPI
pip install rsdb
```

## Usage
```python
from rsdb.connection import Connector
import rsdb.orm

server = Connector(ip='<ip>', port=1433)
# Show available models
print(server.GetAvailableModels())
# Get SqlAlchemy session factory
Session = server.GetModelSession('<model_name>')

with Session() as session:
    event_trees = session.execute(select(rsdb.orm EventTrees)).scalars().all()
        for et in event_trees:
            print(et.ID)
            func_events = et.FunctionEvents
            for event in func_events:
                print(f'\t fe:{e.ID}')

            initiating_event = et.InitiatingEvent
            print(f'\t ie:{ie.ID}')
```
argdcls 0.5.0
A simple tool to use dataclass as your config
Requires Python: >=3.8,<4.0

[![ci](https://github.com/sotetsuk/argdcls/actions/workflows/ci.yml/badge.svg)](https://github.com/sotetsuk/argdcls/actions/workflows/ci.yml)
[![python-version](https://img.shields.io/pypi/pyversions/argdcls)](https://pypi.org/project/argdcls)
[![pypi](https://img.shields.io/pypi/v/argdcls)](https://pypi.org/project/argdcls)

# Argdcls

A simple tool to use dataclass as your config.

## Usage

```py
from dataclasses import dataclass

import argdcls


@dataclass
class Config:
    lr: float
    adam: bool = False


config = argdcls.load(Config)
print(config)
```

```sh
$ python3 main.py @lr=1.0
Config(lr=1.0, adam=False)
$ python3 main.py lr=1.0 adam=True
Config(lr=1.0, adam=True)
$ python3 main.py lr=1.0 adm=True # typo!
Parameter \"adm\" is not in the dataclass fields: ['lr', 'adam'].
$ python3 main.py lr=1.0 @adam=True # avoid overwriting
Parameter "adam" must have no default value but have default value: "False". You may use "adam=True" instead.
```

`@param=value` avoids overwriting the default values.

## Benefits

* Attribute suggestions from IDEs (e.g., `config.a<tab>` indicates `config.adam`)

## License
MIT