Metadata-Version: 2.4
Name: openai-page
Version: 0.1.1
Summary: OpenAI page base model.
License: MIT
License-File: LICENSE
Author: Allen Chou
Author-email: f1470891079@gmail.com
Requires-Python: >=3.11,<4
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: pydantic (>=2)
Project-URL: Homepage, https://github.com/allen2c/openai-page
Project-URL: PyPI, https://pypi.org/project/openai-page/
Project-URL: Repository, https://github.com/allen2c/openai-page
Description-Content-Type: text/markdown

# 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

