Skip to content

Releases: opsmill/infrahub-sdk-python

Version 1.10.0

01 Apr 11:43
5bee453
Compare
Choose a tag to compare

This version of the Python SDK includes some improvement around Jinja2 templating with the addition of new Jinja2 filters (thanks to the netutils library) and some improvements of the object store, as well as some bug fixes.

Deprecated

  • The method get_by_hfid on the object Store has been deprecated, use get(key=[hfid]) instead
  • Using a Store without specifying a default branch is now deprecated and will be removed in a future version.

Added

  • All nodes generated by the SDK will now be assigned an internal_id (_internal_id). This ID has no significance outside of the SDK.
  • Jinja2 templating has been refactored to allow for filters within Infrahub. Builtin filters as well as those from Netutils are available.
  • The object store has been refactored to support more use cases in the future and it now properly support branches.

Fixed

  • Fix node processing, when using fragment with prefetch_relationships. (#331)

Version 1.9.2

26 Mar 17:52
eda8705
Compare
Choose a tag to compare

Changed

  • Remove hfid in upsert payload, to improve node upsert performances

Version 1.9.1

21 Mar 16:37
Compare
Choose a tag to compare

1.9.1 - 2025-03-21

Fixed

  • Fixed an issue where the process_nodes method in the generators used the old format of the schema hash, so node population didn't work

Version 1.9.0

21 Mar 13:53
a56a48e
Compare
Choose a tag to compare

1.9.0 - 2025-03-21

Added

  • Add 'schema_hash' parameter to client.schema.all to only optionally refresh the schema if the provided hash differs from what the client has already cached. (#152)

Changed

  • CoreStandardGroups created or updated by a generator in Infrahub are now stored as a member of the CoreGeneratorGroup. Previously they were being stored as children of the CoreGeneratorGroup.

Fixed

  • The SDK client query methods (get, filters, all) default behaviour has changed. The query methods will store the retrieved nodes in the internal store by default, where previously this behaviour had to be enabled explicitly using the populate_store argument. (#15)

Version 1.8.0

20 Mar 02:18
d040800
Compare
Choose a tag to compare

1.8.0 - 2025-03-19

Deprecated

  • Timestamp: Direct access to obj and add_delta have been deprecated and will be removed in a future version. (#255)

Added

  • Added support for Enum in GraphQL query and mutation. (#18)

Fixed

  • Refactored Timestamp to use whenever instead of pendulum and extend Timestamp with add(), subtract(), and to_datetime(). (#255)
  • Fixed support for Python 3.13 as it's no longer required to have Rust installed on the system.

Version 1.7.2

07 Mar 21:06
8072964
Compare
Choose a tag to compare

1.7.2 - 2025-03-07

Added

  • Added logger to InfrahubGenerator class to allow users use built-in logging (self.logger) to show logging within Infrahub CI pipeline.

Changed

  • Aligned the environment variables used by infrahubctl with the environment variables used by the SDK.
  • Allowed the infrahubctl transform command to return a regular string that does not get converted to a JSON string.
  • Changed InfrahubNode/InfrahubNodeSync artifact_fetch and artifact_generate methods to use the name of the artifact instead of the name of the artifact definition.

Fixed

  • protocols CTL command properly gets default branch setting from environment variable. (#104)
  • Fixed typing for Python 3.9 and removed support for Python 3.13. (#251)
  • Removed default value "main" for branch parameter from all Infrahub CTL commands. (#264)

Housekeeping

  • Moved the function read_file from the ctl module to the SDK.

Version 1.8.0b2

04 Mar 20:55
fc93bfe
Compare
Choose a tag to compare
Version 1.8.0b2 Pre-release
Pre-release

1.8.0b2 - 2025-03-04

Deprecated

  • Timestamp: Direct access to obj and add_delta have been deprecated and will be removed in a future version. (#255)

Changed

  • Changes InfrahubNode/InfrahubNodeSync artifact_fetch and artifact_generate methods to use the name of the artifact instead of the name of the artifact definition.

Fixed

  • protocols CTL command properly gets default branch setting from environment variable. (#104)
  • Fix typing for Python 3.9 (#251)
  • Refactor Timestamp to use whenever instead of pendulum and extend Timestamp with add(), subtract(), and to_datetime(). (#255)
  • Remove default value "main" for branch parameter from all Infrahub CTL commands. (#264)
  • Fixed support for Python 3.13, it's no longer required to have Rust installed on the system.

Housekeeping

  • Move the function read_file from the ctl module to the SDK.

Version 1.8.0b1

28 Feb 19:35
4ec7730
Compare
Choose a tag to compare
Version 1.8.0b1 Pre-release
Pre-release

1.8.0b1 - 2025-02-28

Deprecated

  • Timestamp: Direct access to obj and add_delta have been deprecated and will be removed in a future version. (#255)

Changed

  • Changes InfrahubNode artifact_fetch and artifact_generate methods to use the name of the artifact instead of the name of the artifact definition.

Fixed

  • protocols CTL command properly gets default branch setting from environment variable. (#104)
  • Fix typing for Python 3.9 (#251)
  • Refactor Timestamp to use whenever instead of pendulum and extend Timestamp with add(), subtract(), and to_datetime(). (#255)
  • Remove default value "main" for branch parameter from all Infrahub CTL commands. (#264)
  • Fixed support for Python 3.13, it's no longer required to have Rust installed on the system.

Housekeeping

  • Move the function read_file from the ctl module to the SDK.

Version 1.8.0rc0

24 Feb 03:14
1a6f3cd
Compare
Choose a tag to compare
Version 1.8.0rc0 Pre-release
Pre-release

1.8.0rc0 - 2025-02-23

Changed

  • Changes InfrahubNode artifact_fetch and artifact_generate methods to use the name of the artifact instead of the name of the artifact definition.

Fixed

  • protocols CTL command properly gets default branch setting from environment variable. (#104)
  • Fix typing for Python 3.9 and remove support for Python 3.13. (#251)
  • Remove default value "main" for branch parameter from all Infrahub CTL commands. (#264)

Housekeeping

  • Move the function read_file from the ctl module to the SDK.

Version 1.7.1

30 Jan 19:37
7f1ebbb
Compare
Choose a tag to compare

1.7.1 - 2025-01-30

Removed

  • All mentions of pylint have been removed from the project. (#206)