semvec/pypi-packages huggingface dataset:
faultless 1.0.1
Catch segfaults as normal exceptions
License: MIT
Requires Python: >=3.8,<4.0
Keywords: segfault

# faultless: catch 'em segfaults!

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/dzshn/faultless/test.yml?style=for-the-badge)](https://github.com/dzshn/faultless/actions)
[![Codecov](https://img.shields.io/codecov/c/github/dzshn/faultless?style=for-the-badge)](https://app.codecov.io/gh/dzshn/faultless)
[![PyPI](https://img.shields.io/pypi/v/faultless?style=for-the-badge)](https://pypi.org/project/faultless)
![GitHub top language](https://img.shields.io/github/languages/top/dzshn/faultless?style=for-the-badge)

```py
import ctypes
from faultless import faultless, SegmentationFault


@faultless
def nullptr():
    return ctypes.c_void_p.from_address(0).value


try:
    nullptr()
except SegmentationFault:
    print("Safe!")
```

## Installation

Install with pip: (only requires python 3.8 or higher)

```sh
$ pip install faultless
```

Install from source with [poetry](https://python-poetry.org/): (includes test tools)

```sh
$ git clone https://github.com/dzshn/faultless
$ cd faultless
$ poetry install
```

> **Note**
> Windows is currently unsupported. Other OSes (Linux, BSD, MacOS, anything POSIX) 
> will work fine and Cygwin and WSL likely work. Contributions are welcome!

## Usage

A complete summary of the library is as follows:

```py
from faultless import Interrupt, SignalInterrupt, SegmentationFault, faultless

@faultless
def dangerous_function():
    ...

try:
    result = dangerous_function()

except SegmentationFault:
    # the function segfaulted
    ...
except SignalInterrupt:
    # the function was killed by a signal (e.g. `SIGKILL`)
    ...
except Interrupt:
    # the function has exit abruptly (e.g. `exit()`)
    ...
except Exception:
    # the function itself raised an exception
    ...
```

Functions wrapped by `faultless` will be unable to crash the interpreter
directly. It does, in short, execute the function in a fork, so that any sort
of fault can be handled. Currently, return values and exceptions are handled
correctly, but non-local variables aren't, so be wary of changing global state.

## wait what do you mean segfaults and python w-

uhhhhhhhhh

yeah you can do that
headmouse 1.1.0
An augmentative tool to use the mouse with the movement of the head.
License: MIT
Keywords: headmouse,HeadMouse,Headmouse,augmentative,image processing,mouse

# Headmouse

The HeadMouse module provides an interface by opening the web camera anddetecting the user's face to control the mouse by tilting the head,
 using the tip of the nose as reference point.
It can also be customized to trigger different functions instead of a mouse click when the user winks.
To use the module it\'s necessary to have the file shape_predictor_68_face_landmarks.dat.

Compressed:
<http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2>

Uncompressed:
<https://github.com/rfontalva/dlib_shape_predictor_68_face_landmarks/tree/master>'

## Features

Single user (closest one) detection.
Detection of right and left eyes' wink.
Detection of mouth's right corner movement.
Improved nose threshold to avoid unvoluntary movement.

An opensource project developed in UTN-FRBA by Ramiro Fontalva.

## Run demo

```python
from headmouse import Headmouse
import cv2

if __name__ == "__main__":
    predictor_path = "/path/to/shape_predictor_68_face_landmarks.dat"
    h = Headmouse(predictor_path=predictor_path)
    while True:
        h.refresh()
        h.show_image()
        key = cv2.waitKey(1)
        if key == 27: #press escape
            h.destroy_window()
            h.quit()
            break
        if key == 32: #press spacebar
            h.calibrate()
            print("calibrated")
```
hudson 0.0.0a5
hudson
License: MIT
Requires Python: >=3.10

# hudson

A minimal python project template that can be used for CLIs, APIs, GRPC, and other python applications.

## Usage

1. Clone this repository.
1. Replace all instances of `hudson` across the entire repository with the namespace of your project.
1. Rename the directory `hudson` with the same name too.
1. Replace `pyproject.toml` with relevant values for your project.
1. Use [pyenv](https://github.com/pyenv/pyenv) for managing your python environment.
1. Set up your virtual environment.
1. Run `./scripts/install.sh`
1. Run `./scripts/test.sh`
1. You're all set! Make this readme whatever you want now. The future is yours!