semvec/pypi-packages huggingface dataset:
nyt_recipe 1.2.0
Downloads recipes from the NYT Cooking website and converts them into an Apple Notes-compatible format
License: MIT
Requires Python: <4.0,>=3.9

![PyPi](https://img.shields.io/pypi/v/nyt_recipe) ![License](https://img.shields.io/pypi/l/MI)

`nyt_recipe` is a Python 3 script that is used to download recipes from
[NYT Cooking](https://cooking.nytimes.com/) and save them to a file in a format
that can be easily imported by Apple Notes.

## Installation

`nyt_recipe` should be installed using `pip`:

```bash
$ python3 -m pip install nyt-recipe
```

## Usage

Provide a URL or list of URLs to the script. The script will place the output
files in the `recipes` directory inside the current user's home directory, or
to the output directory specified by the `-o` argument.

```bash
$ nyt_recipe https://cooking.nytimes.com/recipes/1020044-vegetable-paella-with-chorizo
Saved recipe "Vegetable Paella With Chorizo" to /Users/ianbrault/recipes/vegetable_paella_with_chorizo.html
```

Then import the note into Apple Notes: "File > Import to Notes..."

![example recipe](screenshots/recipe.png)
pypp-bridge-lib-glfw 0.0.0
a Py++ bridge-library for glfw
License: MIT
Requires Python: >=3.13

# Py++ Bridge Library for GLFW
a [Py++](https://github.com/curtispuetz/pypp-cli) bridge-library for glfw

## Examples
### Opening a window
With this library installed, the following Py++ code works to open a window. This is the typical example given in the docs for the glfw C++ and Python libraries.

```python
import glfw
from pypp_bridge_lib_glfw.d_types import GLFWwindowPtr
from pypp_python import to_c_string, NULL


def glfw_test():
    if not glfw.init():
        raise Exception("Failed to initialize GLFW")

    window: GLFWwindowPtr = glfw.create_window(
        640, 480, to_c_string("Hello World"), NULL, NULL
    )
    if not window:
        glfw.terminate()
        raise Exception("Failed to create GLFW window")

    glfw.make_context_current(window)

    while not glfw.window_should_close(window):
        # Render here, e.g. using pyOpenGL

        glfw.swap_buffers(window)
        glfw.poll_events()

    glfw.terminate()


if __name__ == "__main__":
    glfw_test()
```

### Opening a window and handling inputs
```python
import glfw
from pypp_python import to_c_string, NULL
from pypp_bridge_lib_glfw.d_types import GLFWwindowPtr


def key_callback(
    _window: GLFWwindowPtr, key: int, _scancode: int, action: int, _mods: int
):
    if action == glfw.PRESS:
        print(f"Key {key} pressed")
    elif action == glfw.RELEASE:
        print(f"Key {key} released")


def mouse_button_callback(_window: GLFWwindowPtr, button: int, action: int, _mods: int):
    if action == glfw.PRESS:
        print(f"Mouse button {button} pressed")
    elif action == glfw.RELEASE:
        print(f"Mouse button {button} released")


def cursor_position_callback(_window: GLFWwindowPtr, xpos: float, ypos: float):
    print(f"Mouse moved to ({xpos}, {ypos})")


def glfw_test_2():
    if not glfw.init():
        raise Exception("Failed to initialize GLFW")

    window: GLFWwindowPtr = glfw.create_window(
        640, 480, to_c_string("Hello World"), NULL, NULL
    )
    if not window:
        glfw.terminate()
        raise Exception("Failed to create GLFW window")

    glfw.make_context_current(window)

    glfw.set_key_callback(window, key_callback)
    glfw.set_mouse_button_callback(window, mouse_button_callback)
    glfw.set_cursor_pos_callback(window, cursor_position_callback)

    while not glfw.window_should_close(window):
        # Render here, e.g. using pyOpenGL

        glfw.swap_buffers(window)
        glfw.poll_events()

    glfw.terminate()


if __name__ == "__main__":
    glfw_test_2()

```