https://github.com/joeriddles/pipedrive_models
This repo demonstrates how to automatically generate Pydantic models models for the Pipedrive API.
https://github.com/joeriddles/pipedrive_models
Last synced: over 1 year ago
JSON representation
This repo demonstrates how to automatically generate Pydantic models models for the Pipedrive API.
- Host: GitHub
- URL: https://github.com/joeriddles/pipedrive_models
- Owner: joeriddles
- Created: 2024-05-08T23:08:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T23:15:06.000Z (about 2 years ago)
- Last Synced: 2025-03-26T02:45:46.097Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo demonstrates how to automatically generate [Pydantic](https://docs.pydantic.dev/latest/) models for the [Pipedrive API](https://pipedrive.readme.io/docs/getting-started).
Generate models:
```shell
pip install -r requirements.txt
datamodel-codegen \
--url https://developers.pipedrive.com/docs/api/v1/openapi.yaml \
--output pipedrive_models.py \
--input-file-type openapi \
--openapi-scopes paths
```
Resources
- https://docs.pydantic.dev/latest/integrations/datamodel_code_generator/
- https://koxudaxi.github.io/datamodel-code-generator/openapi/