Skip to content

Releases: palantir/foundry-platform-python

1.3.0

15 Apr 16:47
1.3.0
6558388

Choose a tag to compare

No documented user-facing changes

1.2.0

14 Apr 16:47
1.2.0
ebefda0

Choose a tag to compare

No documented user-facing changes

1.1.0

14 Apr 10:26
1.1.0
a3463b8

Choose a tag to compare

No documented user-facing changes

1.0.0

08 Apr 21:57
1.0.0
3143a3e

Choose a tag to compare

💥 Breaks

  • Migration Guide

    • The top level module was renamed from foundry to foundry_sdk to resolve a name collision with the foundry package. This means that all imports will need to be updated. For example, the following import:
    from foundry import FoundryClient

    will need to be updated to:

    from foundry_sdk import FoundryClient
    • The deprecated page operations have been removed in favor of the list operations. If you were still using the page methods, you can switch them to list instead.
    page = client.datasets.Dataset.Branch.page(dataset_rid, page_size=page_size)  # before
    page = client.datasets.Dataset.Branch.list(dataset_rid, page_size=page_size)  # after
    • The method definitions no longer include TypeDict types for complex objects. Instead, only the pydantic BaseModel classes will be included in the method definition. Python dictionaries can continue to be passed into these methods; however, mypy/pyright type checking will start to error if you use dictionaries.
    # before
    class ScheduleClient:
        ...
        
        def create(
            self,
            *,
            action: typing.Union[CreateScheduleRequestAction, CreateScheduleRequestActionDict],
            ...
        ) -> Schedule:
        
    # after
    class ScheduleClient:
        ...
        
        def create(
            self,
            *,
            action: CreateScheduleRequestAction,
            ...
        ) -> Schedule:
    • Typing support has also been removed from the to_dict() methods on the base classes. Support may be added back in the future if there are use cases for having typing support.
    # before
    class Schedule(BaseModel):
        ...
    
        def to_dict(self) -> "ScheduleDict":
            """Return the dictionary representation of the model using the field aliases."""
            return typing.cast(ScheduleDict, self.model_dump(by_alias=True, exclude_none=True))
    
    # after
    class Schedule(BaseModel):
        ...
    
        def to_dict(self) -> Dict[str, Any]:
            """Return the dictionary representation of the model using the field aliases."""
            return self.model_dump(by_alias=True, exclude_none=True)
    • The deprecated sign_in_as_service_user method was removed ConfidentialClientAuth. The get_token method can be used instead.
    • The deprecated page_iterator property from ResourceIterator was removed. Instead, the data and next_page_token properties can be accessed directly from the ResourceIterator class.
    • The deprecated hostname parameter was removed from the UserTokenAuth class and token was made a positional argument. (#180)

0.118.0

08 Apr 16:19
0.118.0
861f7c6

Choose a tag to compare

No documented user-facing changes

0.117.0

07 Apr 21:48
0.117.0
6ebcdaa

Choose a tag to compare

No documented user-facing changes

0.116.0

03 Apr 14:02
0.116.0
af6e147

Choose a tag to compare

No documented user-facing changes

0.115.0

02 Apr 19:23
0.115.0
43dfd13

Choose a tag to compare

🐛 Fixes

  • Fix bug where forward resolution incorrectly created null types. (#183)

0.114.0

02 Apr 15:04
0.114.0
4be2196

Choose a tag to compare

💡 Improvements

  • Swap datetime types with AwareDatetime types from pydantic to ensure timezones are used when constructing a datetime instance. (#181)

  • Promote the latest FoundryClient from the top level package so that users can import everything they need to get started from the foundry package.

    from foundry import UserTokenAuth, FoundryClient
    
    client = FoundryClient(hostname="...", auth=UserTokenAuth(...))
    ``` ([#182](https://github.com/palantir/foundry-platform-python/pull/182))

0.113.0

01 Apr 17:42
0.113.0
c7685c0

Choose a tag to compare

💡 Improvements

  • Config Refactor (#177)