Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
984285f
Add required change for object templates (#273)
gmazoyer Feb 20, 2025
7003526
Add initial support for Task
dgarros Feb 21, 2025
d7a640f
Merge pull request #280 from opsmill/develop
dgarros Feb 23, 2025
1a6f3cd
prep for 1.8.0rc0
lykinsbd Feb 24, 2025
a2a496f
Replace pendulum with whenever
dgarros Feb 26, 2025
55be7bb
Merge pull request #256 from opsmill/dga-20250130-whenever
dgarros Feb 26, 2025
49486cb
fix: build for python 3.13
fatih-acar Feb 27, 2025
ae8510d
1.8.0b1 prep
lykinsbd Feb 28, 2025
4ec7730
Merge branch 'stable' into infrahub-develop
lykinsbd Feb 28, 2025
4de1ddf
Merge pull request #276 from opsmill/dga-20250220-tasks
dgarros Mar 1, 2025
97bfbf4
Update Protocols based on latest release-1.2 branch
dgarros Mar 2, 2025
701e445
Merge pull request #291 from opsmill/dga-20250302-update-protocols
dgarros Mar 3, 2025
fc93bfe
v1.8.0b2
lykinsbd Mar 4, 2025
c7311e2
Add support for OffsetDateTime
dgarros Mar 6, 2025
e59e6a5
Merge pull request #295 from opsmill/dga-20250305-OffsetDateTime
dgarros Mar 6, 2025
826c188
Merge remote-tracking branch 'origin/develop' into infrahub-develop
dgarros Mar 9, 2025
5701b86
Add integration tests for Task and add support for Enum
dgarros Mar 9, 2025
a4fa7e5
Add newsfragment
dgarros Mar 9, 2025
86d8e1d
Fix integration tests
dgarros Mar 9, 2025
a922d7e
docs fixes
petercrocker Mar 10, 2025
91c9548
update docusaurus
petercrocker Mar 10, 2025
03772f1
Add support for request context
ogenstad Mar 7, 2025
2ea79fe
Merge pull request #296 from opsmill/pog-request-context-IFC-1340
ogenstad Mar 11, 2025
42ee591
Merge pull request #299 from opsmill/dga-20250309-cont-task-enum-support
dgarros Mar 11, 2025
cd7e689
Merge pull request #300 from opsmill/pmc-20250307-docs
petercrocker Mar 11, 2025
41f6b85
add trailing microsecond 0s to serialized timestamps (#301)
ajtmccarty Mar 12, 2025
6b2dd46
Upgrade ruff=0.11.0
ogenstad Mar 18, 2025
547d764
Merge pull request #305 from opsmill/pog-upgrade-ruff
ogenstad Mar 19, 2025
4c42310
updates discovering available filters section in data query guide
wvandeun Mar 19, 2025
2263ea3
Merge branch 'stable' of https://github.com/opsmill/infrahub-sdk-pyth…
lykinsbd Mar 20, 2025
15fe07d
prep for 1.8.0 release
lykinsbd Mar 20, 2025
d040800
Merge pull request #308 from opsmill/infrahub-develop
lykinsbd Mar 20, 2025
cd493a2
Merge pull request #307 from opsmill/wvd-20250319-fix-sdk-qeury-data-…
dgarros Mar 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: "Check out repository code"
uses: "actions/checkout@v4"
- name: "Setup environment"
run: "pip install ruff==0.8.6"
run: "pip install ruff==0.11.0"
- name: "Linting: ruff check"
run: "ruff check ."
- name: "Linting: ruff format"
Expand Down Expand Up @@ -212,6 +212,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
if: |
always() && !cancelled() &&
!contains(needs.*.result, 'failure') &&
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sync-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
- stable
paths:
- 'docs/docs/**'
- 'docs/sidebars.ts'
- 'docs/sidebars-infrahubctl.ts'
- 'docs/sidebars-python-sdk.ts'
pull_request:
branches:
- stable
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [1.8.0](https://github.com/opsmill/infrahub-sdk-python/tree/v1.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](https://github.com/opsmill/infrahub-sdk-python/issues/255))

### Added

- Added support for Enum in GraphQL query and mutation. ([#18](https://github.com/opsmill/infrahub-sdk-python/issues/18))

### Fixed

- Refactored Timestamp to use `whenever` instead of `pendulum` and extend Timestamp with `add()`, `subtract()`, and `to_datetime()`. ([#255](https://github.com/opsmill/infrahub-sdk-python/issues/255))
- Fixed support for Python 3.13 as it's no longer required to have Rust installed on the system.

## [1.7.2](https://github.com/opsmill/infrahub-sdk-python/tree/v1.7.2) - 2025-03-07

### Added
Expand All @@ -26,6 +41,14 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang
### Fixed

- `protocols` CTL command properly gets default branch setting from environment variable. ([#104](https://github.com/opsmill/infrahub-sdk-python/issues/104))
- Fix typing for Python 3.9 ([#251](https://github.com/opsmill/infrahub-sdk-python/issues/251))
- Refactor Timestamp to use `whenever` instead of `pendulum` and extend Timestamp with add(), subtract(), and to_datetime(). ([#255](https://github.com/opsmill/infrahub-sdk-python/issues/255))
- Remove default value "main" for branch parameter from all Infrahub CTL commands. ([#264](https://github.com/opsmill/infrahub-sdk-python/issues/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.
- Fixed typing for Python 3.9 and removed support for Python 3.13. ([#251](https://github.com/opsmill/infrahub-sdk-python/issues/251))
- Removed default value "main" for branch parameter from all Infrahub CTL commands. ([#264](https://github.com/opsmill/infrahub-sdk-python/issues/264))

Expand Down
21 changes: 1 addition & 20 deletions docs/docs/python-sdk/guides/query_data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,7 @@ The `get` and `filters` query methods allow you to use filters. Filters specify

### Discovering available filters

The easiest way to discover the available filters for a kind of node is by querying the schema.

<Tabs groupId="async-sync">
<TabItem value="Async" default>

```python
tag_schema = await client.schema.get("BuiltinTag")
print(tag_schema.filters)
```

</TabItem>
<TabItem value="Sync">

```python
tag_schema = client.schema.get("BuiltinTag")
print(tag_schema.filters)
```

</TabItem>
</Tabs>
The easiest way to discover the available filters for a kind of node is by opening the GraphQLi Explorer in the GraphQL sandbox. Under each GraphQL query you will find the available filters.

### Attribute filters

Expand Down
18 changes: 9 additions & 9 deletions docs/docs/python-sdk/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ The Infrahub Python SDK greatly simplifies how you can interact with Infrahub pr

## Guides

- [Installing infrahub-sdk](./guides/installation)
- [Creating a client](./guides/client)
- [Querying data in Infrahub](./guides/query_data)
- [Managing nodes](./guides/create_update_delete)
- [Managing branches](./guides/branches)
- [Using the client store](./guides/store)
- [Using the client tracking mode](./guides/tracking)
- [Installing infrahub-sdk](./guides/installation.mdx)
- [Creating a client](./guides/client.mdx)
- [Querying data in Infrahub](./guides/query_data.mdx)
- [Managing nodes](./guides/create_update_delete.mdx)
- [Managing branches](./guides/branches.mdx)
- [Using the client store](./guides/store.mdx)
- [Using the client tracking mode](./guides/tracking.mdx)

## Topics

- [Understanding tracking in the Python SDK](./topics/tracking)
- [Understanding tracking in the Python SDK](./topics/tracking.mdx)

## Reference

- [Client configuration](./reference/config)
- [Client configuration](./reference/config.mdx)
Loading