Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.484.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Feb 5, 2025
1 parent e90748e commit 97c08c6
Show file tree
Hide file tree
Showing 152 changed files with 6,903 additions and 1,021 deletions.
228 changes: 209 additions & 19 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.13.4
version: 0.13.5
additionalDependencies:
dev:
pytest: ^8.3.3
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.477.2
speakeasyVersion: 1.484.1
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:cb46bd66fff57497f380c41134109643ebabe2a40e631e4871139b3c6e12beb5
sourceBlobDigest: sha256:af17895c9591a019fcc82332db823c59ef4d18ba276fff2ff3a718d6739e383f
sourceRevisionDigest: sha256:7136504d86a1b1336da0fd04bb57797d52fa31c017848e7a060656930dc834f0
sourceBlobDigest: sha256:65979b2ca8b35454357ff88e58d12c23708f6ea4dd5b22474799c45c2d9856aa
tags:
- latest
- speakeasy-sdk-regen-1738109507
- speakeasy-sdk-regen-1738282328
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:cb46bd66fff57497f380c41134109643ebabe2a40e631e4871139b3c6e12beb5
sourceBlobDigest: sha256:af17895c9591a019fcc82332db823c59ef4d18ba276fff2ff3a718d6739e383f
sourceRevisionDigest: sha256:7136504d86a1b1336da0fd04bb57797d52fa31c017848e7a060656930dc834f0
sourceBlobDigest: sha256:65979b2ca8b35454357ff88e58d12c23708f6ea4dd5b22474799c45c2d9856aa
codeSamplesNamespace: polar-oas-py-code-samples
codeSamplesRevisionDigest: sha256:0e8e487ec36c793999172a2d97103a02ab2d0e73700ef2da78ab1e84a1d6226a
codeSamplesRevisionDigest: sha256:02fd7d0f21cd8ec4f3998c4c18cd0fe5d9448f2e5c2d7a94623ede2cf0740590
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
60 changes: 53 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,37 @@ pip install polar-sdk
```bash
poetry add polar-sdk
```

### Shell and script usage with `uv`

You can use this SDK in a Python shell with [uv](https://docs.astral.sh/uv/) and the `uvx` command that comes with it like so:

```shell
uvx --from polar-sdk python
```

It's also possible to write a standalone Python script without needing to set up a whole project like so:

```python
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.9"
# dependencies = [
# "polar-sdk",
# ]
# ///

from polar_sdk import Polar

sdk = Polar(
# SDK arguments
)

# Rest of script here...
```

Once that is saved to a file, you can run it with `uv run script.py` where
`script.py` can be replaced with the actual file name.
<!-- End SDK Installation [installation] -->

<!-- Start IDE Support [idesupport] -->
Expand Down Expand Up @@ -603,6 +634,12 @@ def webhook():
* [update](docs/sdks/discounts/README.md#update) - Update Discount
* [delete](docs/sdks/discounts/README.md#delete) - Delete Discount

### [events](docs/sdks/events/README.md)

* [list](docs/sdks/events/README.md#list) - List Events
* [get](docs/sdks/events/README.md#get) - Get Event
* [ingest](docs/sdks/events/README.md#ingest) - Ingest Events

### [external_organizations](docs/sdks/externalorganizations/README.md)

* [list](docs/sdks/externalorganizations/README.md#list) - List External Organizations
Expand All @@ -622,6 +659,15 @@ def webhook():
* [update](docs/sdks/licensekeys/README.md#update) - Update License Key
* [get_activation](docs/sdks/licensekeys/README.md#get_activation) - Get Activation

### [meters](docs/sdks/meters/README.md)

* [list](docs/sdks/meters/README.md#list) - List Meters
* [create](docs/sdks/meters/README.md#create) - Create Meter
* [get](docs/sdks/meters/README.md#get) - Get Meter
* [update](docs/sdks/meters/README.md#update) - Update Meter
* [events](docs/sdks/meters/README.md#events) - Get Meter Events
* [quantities](docs/sdks/meters/README.md#quantities) - Get Meter Quantities

### [metrics](docs/sdks/metricssdk/README.md)

* [get](docs/sdks/metricssdk/README.md#get) - Get Metrics
Expand Down Expand Up @@ -701,7 +747,7 @@ with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

res = polar.external_organizations.list(page=1, limit=10,
res = polar.external_organizations.list(,
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))

while res is not None:
Expand All @@ -721,7 +767,7 @@ with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

res = polar.external_organizations.list(page=1, limit=10)
res = polar.external_organizations.list()

while res is not None:
# Handle items
Expand Down Expand Up @@ -763,7 +809,7 @@ with Polar(
res = None
try:

res = polar.external_organizations.list(page=1, limit=10)
res = polar.external_organizations.list()

while res is not None:
# Handle items
Expand Down Expand Up @@ -801,7 +847,7 @@ with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

res = polar.external_organizations.list(page=1, limit=10)
res = polar.external_organizations.list()

while res is not None:
# Handle items
Expand All @@ -821,7 +867,7 @@ with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

res = polar.external_organizations.list(page=1, limit=10)
res = polar.external_organizations.list()

while res is not None:
# Handle items
Expand Down Expand Up @@ -931,7 +977,7 @@ with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

res = polar.external_organizations.list(page=1, limit=10)
res = polar.external_organizations.list()

while res is not None:
# Handle items
Expand Down Expand Up @@ -996,7 +1042,7 @@ with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

res = polar.external_organizations.list(page=1, limit=10)
res = polar.external_organizations.list()

while res is not None:
# Handle items
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,4 +493,14 @@ Based on:
### Generated
- [python v0.13.4] .
### Releases
- [PyPI v0.13.4] https://pypi.org/project/polar-sdk/0.13.4 - .
- [PyPI v0.13.4] https://pypi.org/project/polar-sdk/0.13.4 - .

## 2025-02-05 14:24:15
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.484.1 (2.503.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.13.5] .
### Releases
- [PyPI v0.13.5] https://pypi.org/project/polar-sdk/0.13.5 - .
4 changes: 2 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

res = polar.external_organizations.list(page=1, limit=10)
res = polar.external_organizations.list()

while res is not None:
# Handle items
Expand All @@ -28,7 +28,7 @@ async def main():
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:

res = await polar.external_organizations.list_async(page=1, limit=10)
res = await polar.external_organizations.list_async()

while res is not None:
# Handle items
Expand Down
Loading

0 comments on commit 97c08c6

Please sign in to comment.