https://github.com/anirbanbasu/open-alex-pydantic
Open Alex API data structures as Pydantic classes.
https://github.com/anirbanbasu/open-alex-pydantic
api data-structures open-alex pydantic
Last synced: about 11 hours ago
JSON representation
Open Alex API data structures as Pydantic classes.
- Host: GitHub
- URL: https://github.com/anirbanbasu/open-alex-pydantic
- Owner: anirbanbasu
- License: mit
- Created: 2026-06-27T12:51:02.000Z (9 days ago)
- Default Branch: master
- Last Pushed: 2026-06-27T14:01:56.000Z (9 days ago)
- Last Synced: 2026-06-27T15:16:26.759Z (9 days ago)
- Topics: api, data-structures, open-alex, pydantic
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://www.python.org/downloads/release/python-3120/) [](https://github.com/anirbanbasu/open-alex-pydantic/actions/workflows/uv-pytest-coverage.yml) [](https://scorecard.dev/viewer/?uri=github.com/anirbanbasu/open-alex-pydantic)
# Open Alex Pydantic
Open Alex API data structures as Pydantic classes.
## Usage
Don't use it unless you know what you're doing as this is a _very_ work-in-progress project!
```python
from open_alex_pydantic.entities import WorkParsingError, parse_work
try:
work = parse_work(payload)
except WorkParsingError as exc:
# Domain-level parse contract for invalid payloads.
print(exc)
print(exc.cause)
```