{"id":21745,"library":"pydantic-tes","title":"Pydantic TES","description":"Pydantic models for the GA4GH Task Execution Service (TES) API. Version 0.4.0. Release cadence is irregular.","status":"active","version":"0.4.0","language":"python","source_language":"en","source_url":"https://github.com/ohsu-comp-bio/pydantic-tes","tags":["pydantic","tes","ga4gh","task-execution"],"install":[{"cmd":"pip install pydantic-tes","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core dependency for model definitions","package":"pydantic","optional":false}],"imports":[{"note":"Older versions may have had Task at top-level, but in 0.4.0 it is in the models submodule.","wrong":"from pydantic_tes import Task","symbol":"Task","correct":"from pydantic_tes.models import Task"},{"note":"Alias or legacy import; prefer the correct path.","wrong":"from pydantic_tes import TesTask","symbol":"TesTask","correct":"from pydantic_tes.models import TesTask"}],"quickstart":{"code":"from pydantic_tes.models import Task, TesResources, TesExecutor\nfrom pydantic import BaseModel\n\n# Create a minimal task\ntask = Task(\n    id=None,\n    executors=[TesExecutor(command=[\"echo\", \"hello\"])],\n    resources=TesResources(cpu_cores=1, ram_gb=1, disk_gb=10)\n)\nprint(task.json(indent=2))","lang":"python","description":"Create a simple TES Task model instance."},"warnings":[{"fix":"Use `from pydantic_tes.models import ...` instead of `from pydantic_tes import ...`.","message":"In 0.4.0, model subpackage structure changed; direct imports from top-level may break.","severity":"breaking","affected_versions":">=0.4.0"},{"fix":"Prefer the shorter names (Task, Input, etc.) from pydantic_tes.models.","message":"Some model aliases (e.g., TesTask, TesInput) may be deprecated in favor of simpler names (Task, Input).","severity":"deprecated","affected_versions":">=0.4.0"},{"fix":"Ensure only fields defined by the model are used, or use model_config for extra fields handling.","message":"Field validation is strict; providing extra fields not defined in the model will raise ValidationError.","severity":"gotcha","affected_versions":">=0.3.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use `from pydantic_tes.models import Task`","cause":"Top-level import path changed in 0.4.0.","error":"ImportError: cannot import name 'Task' from 'pydantic_tes'"},{"fix":"Remove extra fields or set model_config = ConfigDict(extra='allow') on your model subclass.","cause":"Extra field provided in dict to model constructor.","error":"pydantic.errors.PydanticUserError: Field name 'foo' is not defined in model Task"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}