Skip to content

Commit

Permalink
[PYG-274] Tutorial (#351)
Browse files Browse the repository at this point in the history
* docs: include in pygen docs

* build: bump
  • Loading branch information
doctrino authored Nov 9, 2024
1 parent 8a1f54a commit 6f254f8
Show file tree
Hide file tree
Showing 13 changed files with 5,041 additions and 3,919 deletions.
2 changes: 1 addition & 1 deletion cognite/pygen/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.99.44"
__version__ = "0.99.45"
3,901 changes: 0 additions & 3,901 deletions docs-dev/docs_query.ipynb

This file was deleted.

5,022 changes: 5,022 additions & 0 deletions docs/docs-dev/docs_query.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/quickstart/cdf_streamlit.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ adding `cognite-pygen` to the installed packages under `settings`.
pyodide-http==0.2.1
cognite-sdk==7.64.8
pydantic==1.10.7
cognite-pygen==0.99.44
cognite-pygen==0.99.45
```

Note that we also set `pydantic` to a specific version. This is because `pygen` supports both `pydantic` `v1` and `v2`, but
Expand Down
4 changes: 2 additions & 2 deletions examples/cognite_core/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class CogniteCoreClient:
CogniteCoreClient
Generated with:
pygen = 0.99.44
pygen = 0.99.45
cognite-sdk = 7.64.8
pydantic = 2.9.2
Expand All @@ -68,7 +68,7 @@ def __init__(self, config_or_client: CogniteClient | ClientConfig):
else:
raise ValueError(f"Expected CogniteClient or ClientConfig, got {type(config_or_client)}")
# The client name is used for aggregated logging of Pygen Usage
client.config.client_name = "CognitePygen:0.99.44"
client.config.client_name = "CognitePygen:0.99.45"

self._client = client

Expand Down
4 changes: 2 additions & 2 deletions examples/equipment_unit/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EquipmentUnitClient:
EquipmentUnitClient
Generated with:
pygen = 0.99.44
pygen = 0.99.45
cognite-sdk = 7.64.8
pydantic = 2.9.2
Expand All @@ -41,7 +41,7 @@ def __init__(self, config_or_client: CogniteClient | ClientConfig):
else:
raise ValueError(f"Expected CogniteClient or ClientConfig, got {type(config_or_client)}")
# The client name is used for aggregated logging of Pygen Usage
client.config.client_name = "CognitePygen:0.99.44"
client.config.client_name = "CognitePygen:0.99.45"

self._client = client

Expand Down
4 changes: 2 additions & 2 deletions examples/omni/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class OmniClient:
OmniClient
Generated with:
pygen = 0.99.44
pygen = 0.99.45
cognite-sdk = 7.64.8
pydantic = 2.9.2
Expand All @@ -59,7 +59,7 @@ def __init__(self, config_or_client: CogniteClient | ClientConfig):
else:
raise ValueError(f"Expected CogniteClient or ClientConfig, got {type(config_or_client)}")
# The client name is used for aggregated logging of Pygen Usage
client.config.client_name = "CognitePygen:0.99.44"
client.config.client_name = "CognitePygen:0.99.45"

self._client = client

Expand Down
4 changes: 2 additions & 2 deletions examples/omni_multi/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class OmniMultiClient:
OmniMultiClient
Generated with:
pygen = 0.99.44
pygen = 0.99.45
cognite-sdk = 7.64.8
pydantic = 2.9.2
Expand All @@ -125,7 +125,7 @@ def __init__(self, config_or_client: CogniteClient | ClientConfig):
else:
raise ValueError(f"Expected CogniteClient or ClientConfig, got {type(config_or_client)}")
# The client name is used for aggregated logging of Pygen Usage
client.config.client_name = "CognitePygen:0.99.44"
client.config.client_name = "CognitePygen:0.99.45"

self.omni_multi_a = OmniMultiAAPIs(client)
self.omni_multi_b = OmniMultiBAPIs(client)
Expand Down
4 changes: 2 additions & 2 deletions examples/omni_sub/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OmniSubClient:
OmniSubClient
Generated with:
pygen = 0.99.44
pygen = 0.99.45
cognite-sdk = 7.64.8
pydantic = 2.9.2
Expand All @@ -41,7 +41,7 @@ def __init__(self, config_or_client: CogniteClient | ClientConfig):
else:
raise ValueError(f"Expected CogniteClient or ClientConfig, got {type(config_or_client)}")
# The client name is used for aggregated logging of Pygen Usage
client.config.client_name = "CognitePygen:0.99.44"
client.config.client_name = "CognitePygen:0.99.45"

self._client = client

Expand Down
4 changes: 2 additions & 2 deletions examples/scenario_instance/client/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ScenarioInstanceClient:
ScenarioInstanceClient
Generated with:
pygen = 0.99.44
pygen = 0.99.45
cognite-sdk = 7.64.8
pydantic = 2.9.2
Expand All @@ -39,7 +39,7 @@ def __init__(self, config_or_client: CogniteClient | ClientConfig):
else:
raise ValueError(f"Expected CogniteClient or ClientConfig, got {type(config_or_client)}")
# The client name is used for aggregated logging of Pygen Usage
client.config.client_name = "CognitePygen:0.99.44"
client.config.client_name = "CognitePygen:0.99.45"

self._client = client

Expand Down
4 changes: 2 additions & 2 deletions examples/windmill/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class WindmillClient:
WindmillClient
Generated with:
pygen = 0.99.44
pygen = 0.99.45
cognite-sdk = 7.64.8
pydantic = 2.9.2
Expand All @@ -49,7 +49,7 @@ def __init__(self, config_or_client: CogniteClient | ClientConfig):
else:
raise ValueError(f"Expected CogniteClient or ClientConfig, got {type(config_or_client)}")
# The client name is used for aggregated logging of Pygen Usage
client.config.client_name = "CognitePygen:0.99.44"
client.config.client_name = "CognitePygen:0.99.45"

self._client = client

Expand Down
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ nav:
- Windmill Client: example_docs/wind_client.md
- Windmill APIs: example_docs/wind_apis.md
- Windmill Data Classes: example_docs/wind_data_classes.md

- Developer Docs:
- Querying: docs-dev/docs_query.ipynb
- Reference - Code API:
- Pygen: api/api.md
- Demo: api/demo.md
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cognite-pygen"
version = "0.99.44"
version = "0.99.45"
description = "Cognite Python SDK Generator"
readme = "README.md"
authors = ["Cognite <[email protected]>"]
Expand Down

0 comments on commit 6f254f8

Please sign in to comment.