Skip to content

Releases: gleanwork/api-client-python

python - v0.6.6 - 2025-06-16 19:07:07

16 Jun 19:07
c38105c
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-06-16 19:07:07

Changes

Based on:

Generated

  • [python v0.6.6] .

Releases

Publishing Completed

python - v0.6.5 - 2025-06-09 17:56:54

09 Jun 17:57
53c4cf9
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-06-09 17:56:54

Changes

Based on:

Generated

  • [python v0.6.5] .

Releases

Publishing Completed

python - v0.6.4 - 2025-06-09 12:39:16

09 Jun 12:39
7b3aa00
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-06-09 12:39:16

Changes

Based on:

Generated

  • [python v0.6.4] .

Releases

Publishing Completed

python - v0.6.3 - 2025-06-06 22:09:47

06 Jun 22:09
3f8fd5d
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-06-06 22:09:47

Changes

Based on:

Generated

  • [python v0.6.3] .

Releases

Publishing Completed

python - v0.6.2 - 2025-06-06 19:24:10

06 Jun 19:24
df358d7
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-06-06 19:24:10

Changes

Based on:

Generated

  • [python v0.6.2] .

Releases

Publishing Completed

python - v0.6.1 - 2025-06-03 23:58:09

03 Jun 23:58
ba502be
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-06-03 23:58:09

Changes

Based on:

Generated

  • [python v0.6.1] .

Releases

Publishing Completed

python - v0.6.0 - 2025-05-31 17:57:50

31 May 17:57
6234990
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-05-31 17:57:50

Changes

Based on:

Generated

  • [python v0.6.0] .

Releases


Python API Client v0.6.0 - Breaking Changes

Breaking Change: The Python API client now uses a namespaced package
structure. All imports must be updated from glean to glean.api_client.

What Changed

  • Import paths have changed from from glean import ... to from glean.api_client import ...
  • This affects all classes including Glean, models, and other API components

Migration Required

Before:

from glean import Glean
from glean import models
from glean.models import Something
from glean.exceptions import ApiError

After:

from glean.api_client import Glean
from glean.api_client import models
from glean.api_client.models import Something
from glean.api_client.exceptions import ApiError

Automated Migration

Use ast-grep (a structural search and replace tool) to automatically update your Python code:

# First, update imports from glean submodules (e.g., from glean.models import ...)
ast-grep --update-all \
  --pattern 'from glean.$SUBMODULE import $$$REST' \
  --rewrite 'from glean.api_client.$SUBMODULE import $$$REST' \
  --lang python \
  path/to/your/code

# Then, update basic glean imports (e.g., from glean import ...)
ast-grep --update-all \
  --pattern 'from glean import $$$REST' \
  --rewrite 'from glean.api_client import $$$REST' \
  --lang python \
  path/to/your/code

# Finally, fix any double-nesting that may have occurred
ast-grep --update-all \
  --pattern 'from glean.api_client.api_client import $$$REST' \
  --rewrite 'from glean.api_client import $$$REST' \
  --lang python \
  path/to/your/code

Manual Steps

If you prefer to update manually, search for all instances of:

  • from glean importfrom glean.api_client import
  • from glean. (but not glean.api_client) → from glean.api_client.

Compatibility

  • This change affects all Python API client users
  • No functional changes to the API itself - only import paths
  • Ensure you're using the latest version of the Python API client package

Publishing Completed

python - v0.5.2 - 2025-05-25 01:32:48

25 May 01:32
57edf6a
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-05-25 01:32:48

Changes

Based on:

Generated

  • [python v0.5.2] .

Releases

Publishing Completed

python - v0.5.1 - 2025-05-24 03:13:01

24 May 03:13
12681b7
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-05-24 03:13:01

Changes

Based on:

Generated

  • [python v0.5.1] .

Releases

Publishing Completed

python - v0.5.0 - 2025-05-23 21:08:54

23 May 21:09
48de2c7
Compare
Choose a tag to compare

Generated by Speakeasy CLI

2025-05-23 21:08:54

Changes

Based on:

Generated

  • [python v0.5.0] .

Releases

Publishing Completed