Skip to content

Releases: opsmill/infrahub-sdk-python

Version 1.13.1

20 Jun 08:25
9a5b3ae
Compare
Choose a tag to compare

Fixed

  • Fix the import path of the Attribute class #448

Version 1.13.0

11 Jun 16:06
55e933f
Compare
Choose a tag to compare

This release adds support for the new NumberPool attribute and loading object and menu files from external repositories in Infrahub 1.3.

Added

  • Added NumberPool as a new attribute kind, for support in Infrahub 1.3
  • Added support for object and menu files in the .infrahub repository configuration file
  • Defined ordering in which object files are loaded

Housekeeping

  • Refactor InfrahubNode to avoid the creation of a dynamic Python class for each object defined

Version 1.12.3

10 Jun 13:33
9c70cb0
Compare
Choose a tag to compare

Fixed

  • fix Python transforms tests in the resource testing framework by @ogenstad in #433
  • add unit test for Python transforms test for the resource testing framework @wvandeun in #435

Changed

  • loosen requirement for the optional Rich dependency from v12.0.0 up to but not including v14.0.0 by @wvandeun in #434

Version 1.12.2

05 Jun 13:05
8f4a678
Compare
Choose a tag to compare

Fixed

Changed

Housekeeping

  • Loosen pinned requirement for whenever to allow versions from 0.7.2 up to but not including 0.8.0.
  • Bump http-proxy-middleware from 2.0.7 to 2.0.9 in /docs by @dependabot in #418

Version 1.12.1

12 May 08:53
380e573
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.12.0...v1.12.1

Version 1.12.0

30 Apr 13:59
Compare
Choose a tag to compare

This release of the SDK introduces the capability to convert query responses to InfrahubNode objects in Transforms, as well as the branch parameter in the client.clone() method.

Added

  • Added the ability to convert the query response to InfrahubNode objects when using Python Transforms in the same way you can with Generators. (#281)
  • Added a "branch" parameter to the client.clone() method to allow properly cloning a client that targets another branch.

Version 1.11.1

28 Apr 14:50
9855534
Compare
Choose a tag to compare

This version of the SDK contains a minor change to fix how HFID functions for nodes with cardinality of many relationships.

Changed

  • Set the HFID on related nodes for cardinality many relationships, and add HFID support to the RelationshipManager add, extend and remove methods.

Version 1.11.0

17 Apr 17:18
06fff9d
Compare
Choose a tag to compare

This release focusing mainly on improving the user/developer experience with a new command to load data into Infrahub, some improvements around Python Typing as well as some fixes

Main changes

Manage data in yaml format using Object files

The new infrahubctl commands object load and object validate allows you to manage data to be loaded in Infrahub based on your own custom schema. It provides a declarative way to define and manage resources in your Infrahub instance.

Object files work well for models that don't change too often and/or that need to be tracked in Git. Examples include: Groups, tags, Users, etc.
Below is an example of an Object file that defines tags (BuiltinTag).

---
apiVersion: infrahub.app/v1
kind: Object
spec:
  kind: BuiltinTag
  data:
    - name: Blue
    - name: Yellow
    - name: Red

More information is available in the documentation

New user guide on how to use Python's type system effectively with the Infrahub SDK

A new guide is available in the documentation to explain how to leverage Python's type system better with the Python SDK by leveraging Python Protocols.

Changelog

Deprecated

  • The 'timeout' parameter while creating a node or fetching the schema has been deprecated. the default_timeout will be used instead.

Added

  • Add support for object Template when generating protocols (#329)
  • Add a Guide related to Python Typing
  • Add method client.schema.set_cache() to populate the cache manually (primarily for unit testing)
  • By default, schema.fetch will now populate the cache (this behavior can be changed with populate_cache)
  • Add menu validate command to validate the format of menu files.

Fixed

  • Raise a proper branch not found error when requesting a node or schema for a branch that doesn't exist. (#286)
  • Fix support for Sync when generating Python Protocols

Housekeeping

  • Add invoke lint-doc command to help run the docs linters locally
  • Add a fixture to always reset some environment variables before running tests
  • Update Pytest-httpx and set all responses as reusable

Version 1.10.2

11 Apr 09:38
dabb7c9
Compare
Choose a tag to compare

1.10.2 - 2025-04-11

Fixed

  • fix an issue where nodes attributes were not updated when setting the same value than the one used during node instantiation
  • fixes an issue where the default branch of the client store was not properly set in a generator

Version 1.10.1

04 Apr 16:20
d22626a
Compare
Choose a tag to compare

This version includes only one small change to help with the troubleshooting of a potential issue.

Changed

  • Improve error message when a schema received from the server is not JSON valid. The new exception will be of type infrahub_sdk.exceptions.JsonDecodeError instead of json.decoder.JSONDecodeError