semvec/pypi-packages huggingface dataset:
urfp 0.2
URFP client Python module
Requires Python: >=3.8

# URFP client Python module

## Quick install

Not yet available packaged, work in progress..

```
# sudo apt install python3-build
rm -f dist/*.whl ; python3 -m build ; pip3 install dist/*.whl
```

## Init (HTTP)

```
from urfp.core import URFP
from urfp.http import URFPHttpConnector

def log_requests(url, parameter, http_response, text_response):
    print("URL:                 " + url)
    print("Query:               " + parameter)
    print("HTTP-Response Code:  " + http_response)
    print("Received Content:    " + text_response)

import requests
s = requests.session()
c = urfp.http.URFPHttpConnector('http://server.com', session=s, logger=log_requests)
```

or just (with one HTTP/1.0 session per request and no request logging)...

```
from urfp.core import URFP
from urfp.http import URFPHttpConnector

c = urfp.http.URFPHttpConnector('http://server.com')
```

## Init (Tinypacket/UDP)

```
from urfp.core import URFP
from urfp.tinypacket import URFPTinypacketframe

c = URFPTinypacketFrame(server="10.0.10.62:6272")
```


## Usage after Init

The elements named as listed by lv, lf etc. become attributes:

```
u = URFP(c)
u.set_variable("something_enabled", True)
print(u.get_variable("something_enabled")

res = u.call_function("arbitrary_func", {'argument': 123, 'second':'value'})
```
lefthook 2.1.1
Git hooks manager. Fast, powerful, simple.
Requires Python: >=3.6

![Build Status](https://github.com/evilmartians/lefthook/actions/workflows/test.yml/badge.svg?branch=master)
[![codecov](https://codecov.io/gh/evilmartians/lefthook/graph/badge.svg?token=d93ya8MfmB)](https://codecov.io/gh/evilmartians/lefthook)

# Lefthook

> The fastest polyglot Git hooks manager out there

<img align="right" width="147" height="100" title="Lefthook logo"
     src="https://raw.githubusercontent.com/evilmartians/lefthook/refs/heads/master/logo_sign.svg">

A Git hooks manager for Node.js, Ruby and many other types of projects.

* **Fast.** It is written in Go. Can run commands in parallel.
* **Powerful.** It allows to control execution and files you pass to your commands.
* **Simple.** It is single dependency-free binary which can work in any environment.

📖 [Read the introduction post](https://evilmartians.com/chronicles/lefthook-knock-your-teams-code-back-into-shape?utm_source=lefthook)

<a href="https://evilmartians.com/?utm_source=lefthook">
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>

## Install

```bash
pip install lefthook
```

## Usage

Configure your hooks, install them once and forget about it: rely on the magic underneath.

#### TL;DR

```bash
# Configure your hooks
vim lefthook.yml

# Install them to the git project
lefthook install

# Enjoy your work with git
git add -A && git commit -m '...'
```

#### More details

- [**Configuration**](https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md) for `lefthook.yml` config options.
- [**Usage**](https://github.com/evilmartians/lefthook/blob/master/docs/usage.md) for **lefthook** CLI options, supported ENVs, and usage tips.
- [**Discussions**](https://github.com/evilmartians/lefthook/discussions) for questions, ideas, suggestions.
<!-- - [**Wiki**](https://github.com/evilmartians/lefthook/wiki) for guides, examples, and benchmarks. -->