OpenAI page base model.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openai_page-0.1.1.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openai_page-0.1.1.tar.gz.
File metadata
- Download URL: openai_page-0.1.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.13 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
246dbd1fb2e2f573acd6fa3d8b5665618d27eb385e42ba6b20c9f990332394f7
|
|
| MD5 |
7ee9cb60e0f61dfea6da8e4851423755
|
|
| BLAKE2b-256 |
74fb17e3417ca1e548f55f18b3be49efa5f6eaa3e2ce2859593cab273d10b334
|
File details
Details for the file openai_page-0.1.1-py3-none-any.whl.
File metadata
- Download URL: openai_page-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.13 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4295f52dc1837254f0f564b31ba0ae9d3d5cf9434faacf6712baa5894429f20e
|
|
| MD5 |
0f2aa09d9351b60b690621cdd0416906
|
|
| BLAKE2b-256 |
a228028b70ce8b1e7aa6268ee4fba3b3c11ad10df40bb4875af2ee5f36a4e84e
|