semvec/pypi-packages huggingface dataset:
spacer-tutorial 0.0.3
Transition systems and other support for Spacer Jupyter Tutorial
Requires Python: >=3.9

# Spacer on Jupyter

The latest notebook is `Dagstuhl2019.ipynb`.
Open it in your favorite Jupyter notebook server. 
VSCode works quite well for at the moment.


## Setting up venv

```
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
```

Open notebooks in VSCode and pick the virtual environment engine

## Distribution generation instructions

```
python -m build
python3 -m twine upload  dist/* 
```
Use `__token__` as username, and the token from PyPi as password
surveiler 1.0.0
Simple file-system watcher.

# surveiler

Very simple file-watching utility.

## Installation

(coming soon) pip:
`pip install surveiler`

Or just copy the file locally (it's literally 60 lines)

## Usage

Two exported functions: `make_event_handler`, `surveil`. Signatures (not exactly):

```py
def make_event_handler(**kw: dict[str, Callable[[], None]]) -> Callable[[int], None]: ...
def surveil(directory_name: str, event_handler: Callable[[int], None]) -> Never: ...
```

Example usage:

```py
event_handler = make_event_handler(on_create=lambda: print('create'), on_modify=lambda: print('modify'))
surveil("testdirec", event_handler)
```

Check out the constants in the source file to see what event handlers you can add; any one of them can be adapted
to a keyword argument to `event_handler`. Example: `IN_MOVE` -> `on_move`.