semvec/pypi-packages huggingface dataset:
nbreqs 0.2.3
Generate notebook_requirements.txt files for Jupyter Notebooks (.ipynb files).
License: MIT
Requires Python: <3.13,>=3.10

# nbreqs

`nbreqs` is a lightweight Python tool designed to extract the external library dependencies from Jupyter notebooks.

I made this tool because I manage repositories containing several notebooks with `poetry`, whereas users will only use single notebooks and copy them to other directories not themselves managed by `poetry`. They thus need requirement files specific to each notebook instead of the repository's total requirements.

`nbreqs` generates a `<notebook>_requirements.txt` file for each notebook in the same directory as each notebook.

## Features

- Finds notebooks recursively starting at the provided `PATH`.
- Extracts only external dependencies found on PyPI (ignores standard library modules and sources other than PyPI).
- Works on Jupyter notebooks.
- Generates minimal `<notebook>_requirements.txt` files (one per notebook).

## Installation

The preferred way of installing this tool is through `pipx`:

`pipx install nbreqs`

It can also be installed as a library through `pip`; check the tests for examples.

## Usage

Once installed, the utility is used on the command line; see `--help` for details:

[![asciicast](https://asciinema.org/a/677950.svg)](https://asciinema.org/a/677950)

> The `--pin` option was removed in version 0.2.2. See issue #7 for details.

> Starting with version 0.2.3, `PATH` can be either a filename or a directory.

## Development

Contributions are welcome; please:

- Activate `pre-commit` and use `black`.
- Ensure `pytest` runs without failures.
- Be nice.

## License

`nbreqs` is licensed under the MIT License. See LICENSE file for details.
hpic 0.1.0
use playwright to render html page into pictures.
License: MIT
Requires Python: >=3.12

# Hpic

对Playwright进行封装，利用无头Chrome/Firefox进行网页截图实现图片渲染。

内置了Chrome线程池管理和Jinja2模板渲染支持，原生异步渲染。

## 安装

```shell
pip install hpic
```

## 使用

```python
import asyncio
from hpic import Hpic

h = Hpic()
asyncio.run(h.render("https://www.github.com", data={}, output="github.png"))

```