semvec/pypi-packages huggingface dataset:
airtable-orm 1.0.4
ORM for Airtable tables

# Python ORM for Airtable tables

## Installation

```
pip install airtable-orm
```

## Usage
```python
from dataclasses import dataclass
# Importing library
from airtable_orm import AirtableORM

# Initialize the object and get the session
orm = AirtableORM("airtable://:<YOUR API KEY>@<YOUR APP KEY>")
session = orm.get_session()

# Create your data class with properties same as your Airtable tables
# The name of the class muse be matched to the Airtable table name
@dataclass
class MyEntity:
    id: str
    name: str

# Create new object for the dataclass
new_entity = MyEntity("id#1", "My name")

# Run add() to create new entry
session.add(new_entity)

# Run commit() to save the data to Airtable
session.commit()
```

To list all the data as object

```python
data = session.query(MyEntity).all()
for _ in data:
    print(_.name)
```
robotframework-retryfailed 0.2.0
A listener to automatically retry tests or tasks based on flags.
Requires Python: >=3.8.0

# robotframework-retryfailed
A listener to automatically retry tests or tasks based on tags.


## Installation

Install with pip:

    pip install robotframework-retryfailed

## Usage

Add the listener to your robot execution, via command line arguments.
When your tests do fail and you have tagged them with `test:retry(2)`, it will retry the test 2 times. 
Retry can be also set globally as a parameter to the listener.

### Attaching Listener

Example:

    robot --listener RetryFailed <your robot suite>

    robot --listener RetryFailed:1 <robot suite>

Second one will by default retry once every failing test.

### Tagging Tests

Example:

    *** Test Cases ***
    Test Case
        [Tags]    test:retry(2)
        Log    This test will be retried 2 times if it fails

Tagging tasks by `task:retry(3)` should also work.
rocksdb-statistics 0.0.10
Parses db_bench.log files outputted from RocksDB
Requires Python: >=3.7,<4.0

# rocksdb-statistics

[![PyPI version](https://badge.fury.io/py/rocksdb-statistics.svg)](https://badge.fury.io/py/rocksdb-statistics)

A small snippet I wrote to generate plots for my thesis on [Auto-tuning RocksDB](https://ntnuopen.ntnu.no/ntnu-xmlui/bitstream/handle/11250/2506148/19718_FULLTEXT.pdf)

Parses db_bench.log files outputted from RocksDB
Outputs CSV-files and pgfplot of write, compaction and stall statistics.

#### Supported statistics:

- interval_writes
- cumulative_writes
- interval_stall
- cumulative_stall
- interval_compaction
- cumulative_compaction

## Usage

`pip install rocksdb-statistics`

`rocksdb-statistics db_bench.log`

Parsed stats are outputted to `output/` in the current directory

Alternatively specify what stats to output
`rocksdb-statistics db_bench.log --statistics "interval_writes,interval_compaction"`

## Example

Run db_bench with statistics using `stats_interval_seconds` to retrieve stats for each second. Make sure to set `stats_per_interval` to make db_bench output `** DB stats **` for each interval.

`./db_bench --benchmarks="fillrandom,stats" -stats_interval_seconds 1 -stats_per_interval 1 &> db_bench.log`
`rocksdb-statistics db_bench.log`

The directory `output/` contains the parsed statistics in csv.
Example files are provided in the `example/` directory.

You can also add `-statistics` to get a summary of a lot of other things.
`./db_bench --benchmarks="fillrandom,stats" -statistics -stats_interval_seconds 1 -stats_per_interval 1 &> db_bench.log`

## Example plots

Below are some plots I generated using this tool for my thesis.

<img src="example/plots.png" style="width: 50%" />
tendo 0.3.0
A Python library that extends some core functionality
Requires Python: >=3.6
Keywords: tendo,tee,unicode,colorer,singleton

[![](https://img.shields.io/pypi/v/tendo.svg?colorB=green)](https://pypi.python.org/pypi/tendo/)
[![](https://img.shields.io/codecov/c/github/pycontribs/tendo/main.svg)](https://codecov.io/gh/pycontribs/tendo)
[![](https://readthedocs.org/projects/tendo/badge/?version=latest)](http://tendo.readthedocs.io)

# tendo

Tendo is a python module that adds basic functionality that is
not provided by Python. Read the [documentation](https://tendo.readthedocs.org/en/latest/) for more info.

- [transparent Unicode support for text file operations (BOM detection)](https://tendo.readthedocs.org/en/latest/#module-tendo.singleton)
- [console logging coloring](https://tendo.readthedocs.org/en/latest/#module-tendo.colorer)
- enable you to use symlinks under windows
- [python tee implementation](https://tendo.readthedocs.org/en/latest/#module-tendo.colorer) for executing external programs and redirecting their output to both console/file
- [improved execfile](https://tendo.readthedocs.org/en/latest/#module-tendo.execfile2)

## Requirements and compatibility

- python 3.6 or newer
- tox for running tests

## Related projects and packages

- jaraco - http://pypi.python.org/pypi/jaraco.util
- pexpect (maybe)
starlette-discord 0.2.1
"Login with Discord" support for Starlette and FastAPI.
Requires Python: >=3.8

# Starlette-Discord
 "Login with Discord" support for Starlette and FastAPI

starlette-discord is a Discord OAuth2 module intended for use with Starlette and FastAPI.


#### Installing

starlette-discord can be installed with the command

```sh
# Linux
python3 -m pip install -U starlette-discord

# Windows
python -m pip install -U starlette-discord
```

To install the development version of the library directly from source:

```sh
$ git clone https://github.com/nwunderly/starlette-discord
$ cd starlette-discord
$ python3 -m pip install -U .
```

### Quickstart

Below is an example FastAPI app implementing Discord's OAuth flow to identify the user.

```py
import uvicorn
from fastapi import FastAPI
from starlette_discord import DiscordOAuthClient

client_id = "YOUR APP'S CLIENT ID HERE"
client_secret = "YOUR APP'S CLIENT SECRET HERE"
redirect_uri = "http://localhost:8000/callback"

app = FastAPI()
discord_client = DiscordOAuthClient(client_id, client_secret, redirect_uri)

@app.get('/login')
async def start_login():
    return discord_client.redirect()

@app.get('/callback')
async def finish_login(code: str):
    user = await discord_client.login(code)
    print(user)
    return user

uvicorn.run(app)
```

To begin the OAuth authorization flow with this app, visit `http://localhost:8000/login`.
tptool 0.0.4
ESP32 Touchpad Debugging Tool
Requires Python: >=3.7

# Overview

ESP32-S2/S3 can support up to 14 capacitive touch sensor, which can be used to design touch buttons, sliders, etc. For a long time touchpad (touchsensor) debugging and driver configuration has been a difficult problem. But now we're trying to make it easier and interesting, now several touchpad debugging tools and methods for ESP chip is under developing.

We've made some progress so far, and would like to sharing a Beta version of our touchpad debugging tool (tptool) with you. This version support:

1. Modification of all Touch parameters in real time, including thresholds, filter parameters, and more.
2. Plot all Touch channel's data (raw, smooth, baseline, diff) in real time,
3. Control and log hardware events in table
4. Enter sleep mode with one button, the wakeup channel parameters can be configured
5. Wireless debugging, using ESP-NOW protocol (A second ESP32XX module is required as a receiver)
6. Save the original data on the local machine for further analysis
7. More...

If you're interested, please try it. (There could be some issues in current Beta version, if you encounter any problems, feel free to add your questions to https://esp32.com/

## How to run the GUI

1. Install from pip using `pip install tptool`
2. Run GUI using `python -m tptool`

![tptool main window](https://esp32.com/download/file.php?id=9720)

## Note

Currently supported SoC:

* ESP32-S2
* ESP32-S3

Currently only supports using the [Debug Firmware](https://esp32.com/download/file.php?id=10060) for touchsensor debugging, please using any ESP download tool then following the below configuration for download.

* [Debug Firmware](https://esp32.com/download/file.php?id=10060)
* User guide: [ESP_TouchSensor_Debugging_Tool(Beta).pdf](https://esp32.com/download/file.php?id=9725)