{"id":15667922,"url":"https://github.com/rupurt/pydanticutils","last_synced_at":"2026-01-18T06:52:52.551Z","repository":{"id":235583571,"uuid":"790962821","full_name":"rupurt/pydanticutils","owner":"rupurt","description":"Pydantic utility helpers","archived":false,"fork":false,"pushed_at":"2024-08-01T02:19:51.000Z","size":117,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T07:35:46.860Z","etag":null,"topics":["pydantic","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rupurt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-23T20:58:41.000Z","updated_at":"2024-07-01T04:02:10.000Z","dependencies_parsed_at":"2024-06-02T03:51:18.570Z","dependency_job_id":"6aa8a886-e38d-437d-8c17-5ea1c654b05a","html_url":"https://github.com/rupurt/pydanticutils","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.26086956521739135","last_synced_commit":"0c659cfcd1351fd10122cf15e8516ba8b75a424d"},"previous_names":["rupurt/pydanticutils"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fpydanticutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fpydanticutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fpydanticutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rupurt%2Fpydanticutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rupurt","download_url":"https://codeload.github.com/rupurt/pydanticutils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247098018,"owners_count":20883131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pydantic","python"],"created_at":"2024-10-03T14:05:50.984Z","updated_at":"2026-01-18T06:52:52.521Z","avatar_url":"https://github.com/rupurt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pydanticutils\n[![ci status](https://github.com/rupurt/pydanticutils/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/rupurt/pydanticutils/actions/workflows/ci.yaml)\n![pypi](https://img.shields.io/pypi/v/pydanticutils.svg)\n![versions](https://img.shields.io/pypi/pyversions/pydanticutils.svg)\n\n[Pydantic](https://docs.pydantic.dev/latest/) utility helpers\n\n## Usage\n\n1. Install the package from pypi\n\n```console\n\u003e pip install pydanticutils\n```\n\n2. Create a pydantic settings class\n\n```python\nclass DatabaseSettings(BaseModel):\n    host: str = Field(default=\"0.0.0.0\")\n    port: int = Field(default=5432)\n\n\nclass AppSettings(BaseSettings):\n    model_config = SettingsConfigDict(env_prefix=\"APP_\", env_nested_delimiter=\"__\")\n\n    log_level: str = Field(default=\"INFO\")\n    database: DatabaseSettings = Field(default_factory=DatabaseSettings)\n```\n\n3. Read a configuration file into the settings class\n\n```python\nfrom pydanticutils import read_yaml\n\nsettings = read_yaml(\"/path/to/config.yaml\", AppSettings)\n```\n\n## Development\n\nThis repository manages the dev environment as a Nix flake and requires [Nix to be installed](https://github.com/DeterminateSystems/nix-installer)\n\n```console\n\u003e nix develop -c $SHELL\n```\n\n```console\n\u003e make setup\n```\n\n```console\n\u003e make test\n```\n\n## Publish Package to PyPi\n\n```console\n\u003e make pypi\n```\n\n## License\n\n`pydanticutils` is released under the [MIT license](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupurt%2Fpydanticutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frupurt%2Fpydanticutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frupurt%2Fpydanticutils/lists"}