semvec/pypi-packages huggingface dataset:
openai-page 0.1.1
OpenAI page base model.
License: MIT
Requires Python: <4,>=3.11

# OpenAI Page

[![PyPI version](https://img.shields.io/pypi/v/ac-py-template.svg)](https://pypi.org/project/openai-page/)
[![Python Version](https://img.shields.io/pypi/pyversions/ac-py-template.svg)](https://pypi.org/project/openai-page/)
[![License](https://img.shields.io/pypi/l/ac-py-template.svg)](https://opensource.org/licenses/MIT)

## Usage

```python
from openai_page import Page

# Example with string data
page = Page[str](
    data=["item1", "item2", "item3"], has_more=True, first_id="item1", last_id="item3"
)
```

Example with custom model

```python
from pydantic import BaseModel


class MyModel(BaseModel):
    id: str
    name: str


page = Page[MyModel](
    data=[MyModel(id="1", name="First"), MyModel(id="2", name="Second")], has_more=False
)
```

---

MIT License
jsonmagic 0.0.3
A magic that displays an object using JupyterLab's rich display JSON renderer
License: MIT
Requires Python: >=3.10

# Welcome to jsonmagic

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI Release](https://img.shields.io/pypi/v/jsonmagic.svg)](https://pypi.org/project/jsonmagic)

## Installation

The Python package `jsonmagic` can be installed from PyPI:

```
python -m pip install jsonmagic
```

## Usage

Usage is only meaningful within JupyterLab.

You can do:

```python
from jsonmagic import view_json

view_json(obj)
```

or alternatively use this as a line magic:

```
%load_ext jsonmagic
```

Then, inspect any JSON-like data structure (nested dictionary/list etc) with:

```
%json data
```

Get a browsable output like this:

![Example Output](https://github.com/ssciwr/jsonmagic/blob/main/screenshot.png)

## Acknowledgments

This repository was set up using the [SSC Cookiecutter for Python Packages](https://github.com/ssciwr/cookiecutter-python-package).