OpenAI Page
Usage
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
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
Metadata
Release files for openai-page 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openai_page-0.1.1.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openai_page-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 kB
Release files / openai_page-0.1.1.tar.gz
| Download URL | openai_page-0.1.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
246dbd1fb2e2f573acd6fa3d8b5665618d27eb385e42ba6b20c9f990332394f7
|
|
BLAKE2b-256 checksum How to use checksums |
74fb17e3417ca1e548f55f18b3be49efa5f6eaa3e2ce2859593cab273d10b334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.13 Darwin/25.0.0
|
Release files / openai_page-0.1.1-py3-none-any.whl
| Download URL | openai_page-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4295f52dc1837254f0f564b31ba0ae9d3d5cf9434faacf6712baa5894429f20e
|
|
BLAKE2b-256 checksum How to use checksums |
a228028b70ce8b1e7aa6268ee4fba3b3c11ad10df40bb4875af2ee5f36a4e84e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.11.13 Darwin/25.0.0
|