{"id":27809,"library":"ghga-event-schemas","title":"GHGA Event Schemas","description":"A library collecting Pydantic-based event schemas used for events exchanged between GHGA services. Current version is 13.0.0, requiring Python >=3.12. Maintained actively by the GHGA community.","status":"active","version":"13.0.0","language":"python","source_language":"en","source_url":"https://github.com/ghga-de/ghga-event-schemas","tags":["event-schemas","pydantic","ghga","kafka","event-driven"],"install":[{"cmd":"pip install ghga-event-schemas","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from ghga_event_schemas import EventPublisher","symbol":"EventPublisher","correct":"from ghga_event_schemas import EventPublisher"}],"quickstart":{"code":"from ghga_event_schemas.events import UploadAccepted\nfrom ghga_event_schemas.models import FileUpload\n\n# Instantiate a FileUpload model\nfile_upload = FileUpload(\n    file_id=\"some-file-id\",\n    upload_id=\"upload-123\",\n    object_id=\"obj-456\",\n    bucket_id=\"bucket-789\",\n    file_size=1000,\n    upload_date=\"2023-01-01T00:00:00Z\"\n)\n\n# Create an UploadAccepted event event = UploadAccepted(payload=file_upload)\nprint(event)","lang":"python","description":"Basic usage: import event and model classes, create a model instance, then wrap it in an event."},"warnings":[{"fix":"Ensure all IDs are passed as uuid.UUID objects and date strings as datetime.datetime objects (with UTC timezone).","message":"In version 10.0.0, some ID fields changed from string to UUID4 and some string fields changed to UTCDatetime. If you are upgrading from pre-10.0.0, you must update your code to use UUID objects and datetime objects accordingly.","severity":"breaking","affected_versions":"<10.0.0"},{"fix":"Use 'id' instead of 'file_id' when constructing FileUpload models.","message":"The 'id' field in FileUpload was renamed in version 10.1.1; previously it was called 'file_id'.","severity":"deprecated","affected_versions":"<10.1.1"},{"fix":"Use 'import ghga_event_schemas' or 'from ghga_event_schemas import ...'","message":"The package name uses hyphens (ghga-event-schemas) but the import module uses underscores (ghga_event_schemas). Common mistake is to use dots or hyphens in imports.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'13.0.0':22 '3.12':25 'activ':27 'base':9 'collect':6 'communiti':31 'current':19 'driven':40 'event':2,10,14,33,39 'event-driven':38 'event-schema':32 'exchang':15 'ghga':1,17,30,36 'kafka':37 'librari':5 'maintain':26 'pydant':8,35 'pydantic-bas':7 'python':24 'requir':23 'schema':3,11,34 'servic':18 'use':12 'version':20","created_at":"2026-05-09T05:52:12.262011+00:00","updated_at":"2026-05-09T05:52:12.262011+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'EventPublisher' from 'ghga_event_schemas' (/tmp/tmp5rq51bnl/venv/lib/python3.12/site-packages/ghga_event_schemas/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/ghga-de/ghga-event-schemas","docs":null,"changelog":null,"pypi":"https://pypi.org/project/ghga-event-schemas/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}