Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

[py] fix for time and memory use on python sdk import #30

Merged
ryukzak merged 5 commits intomainfrom
import-time-fix-v2
Sep 11, 2025
Merged

[py] fix for time and memory use on python sdk import #30
ryukzak merged 5 commits intomainfrom
import-time-fix-v2

Conversation

@MikhailArtemyev
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@ryukzak ryukzak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Avoid Any in type families. Try to return Resource and DomainResource.
  2. Avoid Any in downcast input: better to receive only BaseModel/dict, but only one. If not possible -- receive Union[BaseModel, dict].
  3. Negative test for wrong JSON parsers.

Comment thread example/python/aidbox/hl7_fhir_r4_core/resource_families.py Outdated
Comment thread src/generators/python/static/resource_family_validator.py Outdated
Comment thread src/generators/python/static/resource_family_validator.py Outdated
Comment thread example/python/aidbox/hl7_fhir_r4_core/resource_families.py Outdated
@ryukzak ryukzak merged commit 87ed197 into main Sep 11, 2025
8 checks passed
@ryukzak ryukzak deleted the import-time-fix-v2 branch September 11, 2025 10:16
@ryukzak ryukzak linked an issue Sep 12, 2025 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[py] Too long import time and memory consumption

2 participants