diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml
new file mode 100644
index 00000000..64a890ec
--- /dev/null
+++ b/.github/workflows/publish-pypi.yml
@@ -0,0 +1,31 @@
+# This workflow is triggered when a GitHub release is created.
+# It can also be run manually to re-publish to PyPI in case it failed for some reason.
+# You can run this workflow by navigating to https://www.github.com/whopio/whopsdk-python/actions/workflows/publish-pypi.yml
+name: Publish PyPI
+on:
+ workflow_dispatch:
+
+ release:
+ types: [published]
+
+jobs:
+ publish:
+ name: publish
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install Rye
+ run: |
+ curl -sSf https://rye.astral.sh/get | bash
+ echo "$HOME/.rye/shims" >> $GITHUB_PATH
+ env:
+ RYE_VERSION: '0.44.0'
+ RYE_INSTALL_OPTION: '--yes'
+
+ - name: Publish to PyPI
+ run: |
+ bash ./bin/publish-pypi
+ env:
+ PYPI_TOKEN: ${{ secrets.WHOP_PYPI_TOKEN || secrets.PYPI_TOKEN }}
diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml
new file mode 100644
index 00000000..b63c0b62
--- /dev/null
+++ b/.github/workflows/release-doctor.yml
@@ -0,0 +1,21 @@
+name: Release Doctor
+on:
+ pull_request:
+ branches:
+ - main
+ workflow_dispatch:
+
+jobs:
+ release_doctor:
+ name: release doctor
+ runs-on: ubuntu-latest
+ if: github.repository == 'whopio/whopsdk-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Check release environment
+ run: |
+ bash ./bin/check-release-environment
+ env:
+ PYPI_TOKEN: ${{ secrets.WHOP_PYPI_TOKEN || secrets.PYPI_TOKEN }}
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
new file mode 100644
index 00000000..1332969b
--- /dev/null
+++ b/.release-please-manifest.json
@@ -0,0 +1,3 @@
+{
+ ".": "0.0.1"
+}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 56f3239f..3f7f73d5 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 76
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-493b08fc2ae996eaf1758fa74f56163b2e40d4e1abeaa9672b8d1a039df30d75.yml
openapi_spec_hash: 212470480a88cabb38a58b5b6867c733
-config_hash: 544517bd5d21c8f0df57292359ed31e4
+config_hash: d72e5036b7f668d3a99a5a96248c4052
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 00000000..56ea1ae3
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,82 @@
+# Changelog
+
+## 0.0.1 (2025-10-16)
+
+Full Changelog: [v0.0.1...v0.0.1](https://github.com/whopio/whopsdk-python/compare/v0.0.1...v0.0.1)
+
+### Features
+
+* **api:** add pagination ([cca20a0](https://github.com/whopio/whopsdk-python/commit/cca20a093df670d6f5fe55e78c741770b774848b))
+* **api:** api update ([ede5834](https://github.com/whopio/whopsdk-python/commit/ede58347affb1212ee28e9f6c0cd4ad4cbc623e3))
+* **api:** api update ([dea9ff3](https://github.com/whopio/whopsdk-python/commit/dea9ff31a3eb4a13c0495b21920fe15c89d08286))
+* **api:** api update ([5c15603](https://github.com/whopio/whopsdk-python/commit/5c156032a6e24944bbb86f50382589ebc6f0cfbd))
+* **api:** api update ([430272f](https://github.com/whopio/whopsdk-python/commit/430272f320ab8f916f47734eeb19a8fe67ac8577))
+* **api:** api update ([c647c8e](https://github.com/whopio/whopsdk-python/commit/c647c8ed07e312dcc69a9b219800ab9c311022d0))
+* **api:** api update ([ce3f9b6](https://github.com/whopio/whopsdk-python/commit/ce3f9b6ed25f68f5c620fbd3f211691308df24d9))
+* **api:** api update ([130334e](https://github.com/whopio/whopsdk-python/commit/130334e85ad9731a64d4ef8c7afcb5362eed6f4d))
+* **api:** api update ([95569a2](https://github.com/whopio/whopsdk-python/commit/95569a2d85672edd68c0770cf029c93808ecee5c))
+* **api:** api update ([1e4d054](https://github.com/whopio/whopsdk-python/commit/1e4d05465e6b1d5ce9711dd6c3cfb6ffbccec0d7))
+* **api:** api update ([a4087f9](https://github.com/whopio/whopsdk-python/commit/a4087f9a788febc82df09ef1ffde3b41aa5c3eb2))
+* **api:** api update ([bbc3f3e](https://github.com/whopio/whopsdk-python/commit/bbc3f3e13fd41728877da8ab37c1002a336add9c))
+* **api:** api update ([2078d4d](https://github.com/whopio/whopsdk-python/commit/2078d4dd7a4bd57d35a7c236c00c1692dfa1c3e3))
+* **api:** api update ([0ae44e0](https://github.com/whopio/whopsdk-python/commit/0ae44e054d52c961863d5bb964c4ac8cd4d8ccf2))
+* **api:** api update ([f96a9fa](https://github.com/whopio/whopsdk-python/commit/f96a9fade2077985f3a57a564fcf5d3a2a4ee247))
+* **api:** api update ([6229709](https://github.com/whopio/whopsdk-python/commit/6229709ab174b897557891d2f8b9e8d1dd4f850f))
+* **api:** api update ([a05758f](https://github.com/whopio/whopsdk-python/commit/a05758f1823ea4aba6f0124816432dcb1ad854ec))
+* **api:** api update ([5826789](https://github.com/whopio/whopsdk-python/commit/5826789f3441d29195e1f9a50dcc5a8dfa823bd7))
+* **api:** api update ([3b5313b](https://github.com/whopio/whopsdk-python/commit/3b5313ba1ba150dbc7bd0ba09ac0e7db3871add4))
+* **api:** api update ([b111425](https://github.com/whopio/whopsdk-python/commit/b111425bddc392221ae058427e04f52b50e79f6a))
+* **api:** api update ([1196432](https://github.com/whopio/whopsdk-python/commit/11964327da075908f521328225ee2d9f0a5d08c4))
+* **api:** api update ([224d45a](https://github.com/whopio/whopsdk-python/commit/224d45a1b17ea90876591c55c2fd48f2606412a6))
+* **api:** api update ([fcf595c](https://github.com/whopio/whopsdk-python/commit/fcf595cbeda1c35d183aa4b190d5b03f59d1af13))
+* **api:** api update ([b15bf19](https://github.com/whopio/whopsdk-python/commit/b15bf195a340cc5dc94ed40eea9077c26705e91b))
+* **api:** api update ([082a644](https://github.com/whopio/whopsdk-python/commit/082a644a872f6363f2e4f2065c66cb8530010815))
+* **api:** api update ([2317b5a](https://github.com/whopio/whopsdk-python/commit/2317b5a5dfd31494dde3c654ee516438111d6e5d))
+* **api:** api update ([bf60366](https://github.com/whopio/whopsdk-python/commit/bf60366c5dd32d0ea75c1b1e19a0c3fde03766fd))
+* **api:** api update ([decb5db](https://github.com/whopio/whopsdk-python/commit/decb5dbf980d39c1b22294b931f51cddb7471669))
+* **api:** api update ([7873742](https://github.com/whopio/whopsdk-python/commit/78737422c7dbb74d5de60570ce1c0beb9b5133d5))
+* **api:** api update ([9dd4b20](https://github.com/whopio/whopsdk-python/commit/9dd4b209ba2faf9f0672b82408c41a05957778ae))
+* **api:** api update ([2586ba0](https://github.com/whopio/whopsdk-python/commit/2586ba01139d748b91b6568a5b1646d291b058d4))
+* **api:** api update ([c5c046d](https://github.com/whopio/whopsdk-python/commit/c5c046de999a35015cabec8d359dc8eb9d7e7cef))
+* **api:** api update ([afbfc7c](https://github.com/whopio/whopsdk-python/commit/afbfc7cda33ececc5d32a68b61eb1bdce25d440d))
+* **api:** api update ([684a4d2](https://github.com/whopio/whopsdk-python/commit/684a4d29083abea1924abe1d476566cea4836229))
+* **api:** api update ([5eb68c8](https://github.com/whopio/whopsdk-python/commit/5eb68c8b5e834cb5d41b4ef6d92239180552068f))
+* **api:** api update ([2777c1e](https://github.com/whopio/whopsdk-python/commit/2777c1ee8fa2b7568a5f7aa3ed7f6214e73e151e))
+* **api:** api update ([522da9e](https://github.com/whopio/whopsdk-python/commit/522da9e0d26dddf66515450f89d6c3cd07728ec4))
+* **api:** api update ([310859a](https://github.com/whopio/whopsdk-python/commit/310859a9111d682694c3c0f9146aebe90b8738f6))
+* **api:** api update ([f8c7f12](https://github.com/whopio/whopsdk-python/commit/f8c7f1231bf24f1e6ee8217a604b7f7a26369e42))
+* **api:** api update ([14d6686](https://github.com/whopio/whopsdk-python/commit/14d6686006244af27c8484222bfee7ca7797946a))
+* **api:** api update ([e8ad1b6](https://github.com/whopio/whopsdk-python/commit/e8ad1b65c379c83598ab5e3df4323375effb2013))
+* **api:** api update ([f0ddc58](https://github.com/whopio/whopsdk-python/commit/f0ddc5848b1123a311901c2f18dae20a8f111b3e))
+* **api:** manual update ([6616062](https://github.com/whopio/whopsdk-python/commit/661606245f75b1e051eb8261eb25e3f0a9ba7530))
+* **api:** manual updates ([8bd5020](https://github.com/whopio/whopsdk-python/commit/8bd5020184f7188182bd6bbefed5b57612576c0d))
+* **api:** manual updates ([7f0eeb0](https://github.com/whopio/whopsdk-python/commit/7f0eeb0660a892ad93cf0100f3a54a4883462490))
+* **api:** manual updates ([19708a9](https://github.com/whopio/whopsdk-python/commit/19708a9b9f9bff55b176f792f7c0a42254879e61))
+* **api:** manual updates ([5922b82](https://github.com/whopio/whopsdk-python/commit/5922b825b2124d45f4497fe87c49b3ab9e956bc4))
+* **api:** manual updates ([a4cfb11](https://github.com/whopio/whopsdk-python/commit/a4cfb111221fa2cf876c16f6fcef29ed85aca703))
+* **api:** manual updates ([4934302](https://github.com/whopio/whopsdk-python/commit/4934302bdc2aeecfeadc29f8bb7f0b781e359998))
+* **api:** manual updates ([12a0566](https://github.com/whopio/whopsdk-python/commit/12a0566c02d13586c06f332ed00432cb217add25))
+* **api:** manual updates ([b00456a](https://github.com/whopio/whopsdk-python/commit/b00456a6975957c8cea04347b64a5193f4ab1677))
+* **api:** manual updates ([a8033bc](https://github.com/whopio/whopsdk-python/commit/a8033bcbc16920240576131cf1da1915ba9d02fd))
+* **api:** manual updates ([063fdca](https://github.com/whopio/whopsdk-python/commit/063fdcae5471d877d2f61dd375a9d9864ca2c4c6))
+* **api:** manual updates ([1f249fc](https://github.com/whopio/whopsdk-python/commit/1f249fcad56842b606efba8ee9a9fd2cfb3a5209))
+* **api:** manual updates ([a4a0aa7](https://github.com/whopio/whopsdk-python/commit/a4a0aa722072b80194fd11eb3b8008816eb7b618))
+* **api:** manual updates ([cf6f5db](https://github.com/whopio/whopsdk-python/commit/cf6f5db50900489042ceba730baf9ebd326457b6))
+* **api:** manual updates ([62f7869](https://github.com/whopio/whopsdk-python/commit/62f7869124a4b80b6973601ded3499b30d3ada62))
+* **api:** manual updates ([5d81435](https://github.com/whopio/whopsdk-python/commit/5d8143583c4a800e1e83d053c6729ea803adb609))
+* **api:** manual updates ([606b0f0](https://github.com/whopio/whopsdk-python/commit/606b0f05c079260b7ae12264ae0059198ac7afc9))
+* **api:** manual updates ([455802f](https://github.com/whopio/whopsdk-python/commit/455802f91d272be82d13cfcd3c1d92db043c7c70))
+* **api:** manual updates ([821148f](https://github.com/whopio/whopsdk-python/commit/821148f771ab4f068497d781ea42034c083667e0))
+* **api:** manual updates ([724a475](https://github.com/whopio/whopsdk-python/commit/724a475899b0c22f5b5f500f12b0df2e87526b83))
+* **api:** manual updates ([96fd8b2](https://github.com/whopio/whopsdk-python/commit/96fd8b255e581c67c56c6f6a39f684fc8be3ed7d))
+* **api:** manual updates ([6d14145](https://github.com/whopio/whopsdk-python/commit/6d14145b53350ed0d53d622d6288673331e951f1))
+* **api:** manual updates ([327a856](https://github.com/whopio/whopsdk-python/commit/327a8565176ce86b1af0c679d9db5499deea6e88))
+* **api:** manual updates ([72ab133](https://github.com/whopio/whopsdk-python/commit/72ab133134a390ae5395e07ebf1459df666d859e))
+
+
+### Chores
+
+* configure new SDK language ([ebf6304](https://github.com/whopio/whopsdk-python/commit/ebf63045bd54a7988c1f0b2867224b7003f3fdef))
+* **internal:** detect missing future annotations with ruff ([6e080b8](https://github.com/whopio/whopsdk-python/commit/6e080b854f8e403bddee5077d6891ae53a99ac08))
+* update SDK settings ([c9b0496](https://github.com/whopio/whopsdk-python/commit/c9b049612845640f2637e2139a4e6a5e61b960d8))
+* update SDK settings ([fc59c60](https://github.com/whopio/whopsdk-python/commit/fc59c6018a3ff8c9e1a667ece0021676062fbed3))
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a68778bb..76fde4c1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -36,7 +36,7 @@ $ pip install -r requirements-dev.lock
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
result in merge conflicts between manual patches and changes from the generator. The generator will never
-modify the contents of the `src/whopsdk/lib/` and `examples/` directories.
+modify the contents of the `src/whop_sdk/lib/` and `examples/` directories.
## Adding and running examples
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:
```sh
-$ pip install git+ssh://git@github.com/stainless-sdks/whopsdk-python.git
+$ pip install git+ssh://git@github.com/whopio/whopsdk-python.git
```
Alternatively, you can build from source and install the wheel file:
@@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
### Publish with a GitHub workflow
-You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/whopsdk-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
+You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/whopio/whopsdk-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
### Publish manually
diff --git a/README.md b/README.md
index 714ccec7..d1dc47e3 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# Whop Python API library
-[)](https://pypi.org/project/whopsdk/)
+[)](https://pypi.org/project/whop-sdk/)
The Whop Python library provides convenient access to the Whop REST API from any Python 3.8+
application. The library includes type definitions for all request params and response fields,
@@ -16,20 +16,17 @@ The REST API documentation can be found on [docs.whop.com](https://docs.whop.com
## Installation
```sh
-# install from this staging repo
-pip install git+ssh://git@github.com/stainless-sdks/whopsdk-python.git
+# install from PyPI
+pip install whop-sdk
```
-> [!NOTE]
-> Once this package is [published to PyPI](https://www.stainless.com/docs/guides/publish), this will become: `pip install whopsdk`
-
## Usage
The full API of this library can be found in [api.md](api.md).
```python
import os
-from whopsdk import Whop
+from whop_sdk import Whop
client = Whop(
app_id="app_xxxxxxxxxxxxxx",
@@ -54,7 +51,7 @@ Simply import `AsyncWhop` instead of `Whop` and use `await` with each API call:
```python
import os
import asyncio
-from whopsdk import AsyncWhop
+from whop_sdk import AsyncWhop
client = AsyncWhop(
app_id="app_xxxxxxxxxxxxxx",
@@ -81,16 +78,16 @@ By default, the async client uses `httpx` for HTTP requests. However, for improv
You can enable this by installing `aiohttp`:
```sh
-# install from this staging repo
-pip install 'whopsdk[aiohttp] @ git+ssh://git@github.com/stainless-sdks/whopsdk-python.git'
+# install from PyPI
+pip install whop-sdk[aiohttp]
```
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
```python
import asyncio
-from whopsdk import DefaultAioHttpClient
-from whopsdk import AsyncWhop
+from whop_sdk import DefaultAioHttpClient
+from whop_sdk import AsyncWhop
async def main() -> None:
@@ -124,7 +121,7 @@ List methods in the Whop API are paginated.
This library provides auto-paginating iterators with each list response, so you do not have to request successive pages manually:
```python
-from whopsdk import Whop
+from whop_sdk import Whop
client = Whop(
app_id="app_xxxxxxxxxxxxxx",
@@ -144,7 +141,7 @@ Or, asynchronously:
```python
import asyncio
-from whopsdk import AsyncWhop
+from whop_sdk import AsyncWhop
client = AsyncWhop(
app_id="app_xxxxxxxxxxxxxx",
@@ -197,7 +194,7 @@ for payment in first_page.data:
Nested parameters are dictionaries, typed using `TypedDict`, for example:
```python
-from whopsdk import Whop
+from whop_sdk import Whop
client = Whop(
app_id="app_xxxxxxxxxxxxxx",
@@ -212,16 +209,16 @@ print(app.icon)
## Handling errors
-When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `whopsdk.APIConnectionError` is raised.
+When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `whop_sdk.APIConnectionError` is raised.
When the API returns a non-success status code (that is, 4xx or 5xx
-response), a subclass of `whopsdk.APIStatusError` is raised, containing `status_code` and `response` properties.
+response), a subclass of `whop_sdk.APIStatusError` is raised, containing `status_code` and `response` properties.
-All errors inherit from `whopsdk.APIError`.
+All errors inherit from `whop_sdk.APIError`.
```python
-import whopsdk
-from whopsdk import Whop
+import whop_sdk
+from whop_sdk import Whop
client = Whop(
app_id="app_xxxxxxxxxxxxxx",
@@ -231,12 +228,12 @@ try:
client.payments.list(
company_id="biz_xxxxxxxxxxxxxx",
)
-except whopsdk.APIConnectionError as e:
+except whop_sdk.APIConnectionError as e:
print("The server could not be reached")
print(e.__cause__) # an underlying Exception, likely raised within httpx.
-except whopsdk.RateLimitError as e:
+except whop_sdk.RateLimitError as e:
print("A 429 status code was received; we should back off a bit.")
-except whopsdk.APIStatusError as e:
+except whop_sdk.APIStatusError as e:
print("Another non-200-range status code was received")
print(e.status_code)
print(e.response)
@@ -264,7 +261,7 @@ Connection errors (for example, due to a network connectivity problem), 408 Requ
You can use the `max_retries` option to configure or disable retry settings:
```python
-from whopsdk import Whop
+from whop_sdk import Whop
# Configure the default for all requests:
client = Whop(
@@ -285,7 +282,7 @@ By default requests time out after 1 minute. You can configure this with a `time
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:
```python
-from whopsdk import Whop
+from whop_sdk import Whop
# Configure the default for all requests:
client = Whop(
@@ -341,7 +338,7 @@ if response.my_field is None:
The "raw" Response object can be accessed by prefixing `.with_raw_response.` to any HTTP method call, e.g.,
```py
-from whopsdk import Whop
+from whop_sdk import Whop
client = Whop(
app_id="app_xxxxxxxxxxxxxx",
@@ -355,9 +352,9 @@ payment = response.parse() # get the object that `payments.list()` would have r
print(payment.id)
```
-These methods return an [`APIResponse`](https://github.com/stainless-sdks/whopsdk-python/tree/main/src/whopsdk/_response.py) object.
+These methods return an [`APIResponse`](https://github.com/whopio/whopsdk-python/tree/main/src/whop_sdk/_response.py) object.
-The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/whopsdk-python/tree/main/src/whopsdk/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
+The async client returns an [`AsyncAPIResponse`](https://github.com/whopio/whopsdk-python/tree/main/src/whop_sdk/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
#### `.with_streaming_response`
@@ -421,7 +418,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
```python
import httpx
-from whopsdk import Whop, DefaultHttpxClient
+from whop_sdk import Whop, DefaultHttpxClient
client = Whop(
app_id="app_xxxxxxxxxxxxxx",
@@ -445,7 +442,7 @@ client.with_options(http_client=DefaultHttpxClient(...))
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
```py
-from whopsdk import Whop
+from whop_sdk import Whop
with Whop(
app_id="app_xxxxxxxxxxxxxx",
@@ -466,7 +463,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
-We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/whopsdk-python/issues) with questions, bugs, or suggestions.
+We are keen for your feedback; please open an [issue](https://www.github.com/whopio/whopsdk-python/issues) with questions, bugs, or suggestions.
### Determining the installed version
@@ -475,8 +472,8 @@ If you've upgraded to the latest version but aren't seeing any new features you
You can determine the version that is being used at runtime with:
```py
-import whopsdk
-print(whopsdk.__version__)
+import whop_sdk
+print(whop_sdk.__version__)
```
## Requirements
diff --git a/api.md b/api.md
index 63d30f4b..11565652 100644
--- a/api.md
+++ b/api.md
@@ -1,7 +1,7 @@
# Shared Types
```python
-from whopsdk.types import (
+from whop_sdk.types import (
AccessPassType,
App,
AppBuild,
@@ -63,66 +63,66 @@ from whopsdk.types import (
Types:
```python
-from whopsdk.types import AppListResponse
+from whop_sdk.types import AppListResponse
```
Methods:
-- client.apps.create(\*\*params) -> App
-- client.apps.retrieve(id) -> App
-- client.apps.update(id, \*\*params) -> App
-- client.apps.list(\*\*params) -> SyncCursorPage[AppListResponse]
+- client.apps.create(\*\*params) -> App
+- client.apps.retrieve(id) -> App
+- client.apps.update(id, \*\*params) -> App
+- client.apps.list(\*\*params) -> SyncCursorPage[AppListResponse]
# Invoices
Types:
```python
-from whopsdk.types import InvoiceCreateResponse, InvoiceVoidResponse
+from whop_sdk.types import InvoiceCreateResponse, InvoiceVoidResponse
```
Methods:
-- client.invoices.create(\*\*params) -> InvoiceCreateResponse
-- client.invoices.retrieve(id) -> Invoice
-- client.invoices.list(\*\*params) -> SyncCursorPage[InvoiceListItem]
-- client.invoices.void(id) -> InvoiceVoidResponse
+- client.invoices.create(\*\*params) -> InvoiceCreateResponse
+- client.invoices.retrieve(id) -> Invoice
+- client.invoices.list(\*\*params) -> SyncCursorPage[InvoiceListItem]
+- client.invoices.void(id) -> InvoiceVoidResponse
# CourseLessonInteractions
Methods:
-- client.course_lesson_interactions.retrieve(id) -> CourseLessonInteraction
-- client.course_lesson_interactions.list(\*\*params) -> SyncCursorPage[CourseLessonInteractionListItem]
+- client.course_lesson_interactions.retrieve(id) -> CourseLessonInteraction
+- client.course_lesson_interactions.list(\*\*params) -> SyncCursorPage[CourseLessonInteractionListItem]
# Products
Types:
```python
-from whopsdk.types import ProductDeleteResponse
+from whop_sdk.types import ProductDeleteResponse
```
Methods:
-- client.products.create(\*\*params) -> Product
-- client.products.retrieve(id) -> Product
-- client.products.update(id, \*\*params) -> Product
-- client.products.list(\*\*params) -> SyncCursorPage[ProductListItem]
-- client.products.delete(id) -> ProductDeleteResponse
+- client.products.create(\*\*params) -> Product
+- client.products.retrieve(id) -> Product
+- client.products.update(id, \*\*params) -> Product
+- client.products.list(\*\*params) -> SyncCursorPage[ProductListItem]
+- client.products.delete(id) -> ProductDeleteResponse
# Companies
Methods:
-- client.companies.retrieve(id) -> Company
+- client.companies.retrieve(id) -> Company
# Webhooks
Types:
```python
-from whopsdk.types import (
+from whop_sdk.types import (
InvoiceCreatedWebhookEvent,
InvoicePaidWebhookEvent,
InvoicePastDueWebhookEvent,
@@ -136,244 +136,244 @@ from whopsdk.types import (
Types:
```python
-from whopsdk.types import PlanListResponse, PlanDeleteResponse
+from whop_sdk.types import PlanListResponse, PlanDeleteResponse
```
Methods:
-- client.plans.create(\*\*params) -> Plan
-- client.plans.retrieve(id) -> Plan
-- client.plans.update(id, \*\*params) -> Plan
-- client.plans.list(\*\*params) -> SyncCursorPage[PlanListResponse]
-- client.plans.delete(id) -> PlanDeleteResponse
+- client.plans.create(\*\*params) -> Plan
+- client.plans.retrieve(id) -> Plan
+- client.plans.update(id, \*\*params) -> Plan
+- client.plans.list(\*\*params) -> SyncCursorPage[PlanListResponse]
+- client.plans.delete(id) -> PlanDeleteResponse
# Entries
Types:
```python
-from whopsdk.types import EntryListResponse, EntryApproveResponse
+from whop_sdk.types import EntryListResponse, EntryApproveResponse
```
Methods:
-- client.entries.retrieve(id) -> Entry
-- client.entries.list(\*\*params) -> SyncCursorPage[EntryListResponse]
-- client.entries.approve(id) -> EntryApproveResponse
-- client.entries.deny(id) -> Entry
+- client.entries.retrieve(id) -> Entry
+- client.entries.list(\*\*params) -> SyncCursorPage[EntryListResponse]
+- client.entries.approve(id) -> EntryApproveResponse
+- client.entries.deny(id) -> Entry
# ForumPosts
Types:
```python
-from whopsdk.types import ForumPostListResponse
+from whop_sdk.types import ForumPostListResponse
```
Methods:
-- client.forum_posts.create(\*\*params) -> ForumPost
-- client.forum_posts.retrieve(id) -> ForumPost
-- client.forum_posts.list(\*\*params) -> SyncCursorPage[ForumPostListResponse]
+- client.forum_posts.create(\*\*params) -> ForumPost
+- client.forum_posts.retrieve(id) -> ForumPost
+- client.forum_posts.list(\*\*params) -> SyncCursorPage[ForumPostListResponse]
# Transfers
Types:
```python
-from whopsdk.types import TransferListResponse
+from whop_sdk.types import TransferListResponse
```
Methods:
-- client.transfers.create(\*\*params) -> Transfer
-- client.transfers.retrieve(id) -> Transfer
-- client.transfers.list(\*\*params) -> SyncCursorPage[TransferListResponse]
+- client.transfers.create(\*\*params) -> Transfer
+- client.transfers.retrieve(id) -> Transfer
+- client.transfers.list(\*\*params) -> SyncCursorPage[TransferListResponse]
# LedgerAccounts
Types:
```python
-from whopsdk.types import LedgerAccountRetrieveResponse
+from whop_sdk.types import LedgerAccountRetrieveResponse
```
Methods:
-- client.ledger_accounts.retrieve(id) -> LedgerAccountRetrieveResponse
+- client.ledger_accounts.retrieve(id) -> LedgerAccountRetrieveResponse
# Memberships
Types:
```python
-from whopsdk.types import MembershipListResponse
+from whop_sdk.types import MembershipListResponse
```
Methods:
-- client.memberships.retrieve(id) -> Membership
-- client.memberships.update(id, \*\*params) -> Membership
-- client.memberships.list(\*\*params) -> SyncCursorPage[MembershipListResponse]
-- client.memberships.cancel(id, \*\*params) -> Membership
-- client.memberships.pause(id, \*\*params) -> Membership
-- client.memberships.resume(id) -> Membership
+- client.memberships.retrieve(id) -> Membership
+- client.memberships.update(id, \*\*params) -> Membership
+- client.memberships.list(\*\*params) -> SyncCursorPage[MembershipListResponse]
+- client.memberships.cancel(id, \*\*params) -> Membership
+- client.memberships.pause(id, \*\*params) -> Membership
+- client.memberships.resume(id) -> Membership
# AuthorizedUsers
Types:
```python
-from whopsdk.types import AuthorizedUserRetrieveResponse, AuthorizedUserListResponse
+from whop_sdk.types import AuthorizedUserRetrieveResponse, AuthorizedUserListResponse
```
Methods:
-- client.authorized_users.retrieve(id) -> AuthorizedUserRetrieveResponse
-- client.authorized_users.list(\*\*params) -> SyncCursorPage[AuthorizedUserListResponse]
+- client.authorized_users.retrieve(id) -> AuthorizedUserRetrieveResponse
+- client.authorized_users.list(\*\*params) -> SyncCursorPage[AuthorizedUserListResponse]
# AppBuilds
Types:
```python
-from whopsdk.types import AppBuildListResponse
+from whop_sdk.types import AppBuildListResponse
```
Methods:
-- client.app_builds.create(\*\*params) -> AppBuild
-- client.app_builds.retrieve(id) -> AppBuild
-- client.app_builds.list(\*\*params) -> SyncCursorPage[AppBuildListResponse]
-- client.app_builds.promote(id) -> AppBuild
+- client.app_builds.create(\*\*params) -> AppBuild
+- client.app_builds.retrieve(id) -> AppBuild
+- client.app_builds.list(\*\*params) -> SyncCursorPage[AppBuildListResponse]
+- client.app_builds.promote(id) -> AppBuild
# Shipments
Types:
```python
-from whopsdk.types import ShipmentListResponse
+from whop_sdk.types import ShipmentListResponse
```
Methods:
-- client.shipments.create(\*\*params) -> Shipment
-- client.shipments.retrieve(id) -> Shipment
-- client.shipments.list(\*\*params) -> SyncCursorPage[ShipmentListResponse]
+- client.shipments.create(\*\*params) -> Shipment
+- client.shipments.retrieve(id) -> Shipment
+- client.shipments.list(\*\*params) -> SyncCursorPage[ShipmentListResponse]
# CheckoutConfigurations
Types:
```python
-from whopsdk.types import CheckoutConfigurationListResponse
+from whop_sdk.types import CheckoutConfigurationListResponse
```
Methods:
-- client.checkout_configurations.create(\*\*params) -> CheckoutConfiguration
-- client.checkout_configurations.retrieve(id) -> CheckoutConfiguration
-- client.checkout_configurations.list(\*\*params) -> SyncCursorPage[CheckoutConfigurationListResponse]
+- client.checkout_configurations.create(\*\*params) -> CheckoutConfiguration
+- client.checkout_configurations.retrieve(id) -> CheckoutConfiguration
+- client.checkout_configurations.list(\*\*params) -> SyncCursorPage[CheckoutConfigurationListResponse]
# Messages
Types:
```python
-from whopsdk.types import MessageListResponse
+from whop_sdk.types import MessageListResponse
```
Methods:
-- client.messages.create(\*\*params) -> Message
-- client.messages.retrieve(id) -> Message
-- client.messages.list(\*\*params) -> SyncCursorPage[MessageListResponse]
+- client.messages.create(\*\*params) -> Message
+- client.messages.retrieve(id) -> Message
+- client.messages.list(\*\*params) -> SyncCursorPage[MessageListResponse]
# ChatChannels
Types:
```python
-from whopsdk.types import ChatChannelListResponse
+from whop_sdk.types import ChatChannelListResponse
```
Methods:
-- client.chat_channels.retrieve(id) -> ChatChannel
-- client.chat_channels.update(id, \*\*params) -> ChatChannel
-- client.chat_channels.list(\*\*params) -> SyncCursorPage[ChatChannelListResponse]
+- client.chat_channels.retrieve(id) -> ChatChannel
+- client.chat_channels.update(id, \*\*params) -> ChatChannel
+- client.chat_channels.list(\*\*params) -> SyncCursorPage[ChatChannelListResponse]
# Users
Types:
```python
-from whopsdk.types import UserRetrieveResponse, UserCheckAccessResponse
+from whop_sdk.types import UserRetrieveResponse, UserCheckAccessResponse
```
Methods:
-- client.users.retrieve(id) -> UserRetrieveResponse
-- client.users.check_access(resource_id, \*, id) -> UserCheckAccessResponse
+- client.users.retrieve(id) -> UserRetrieveResponse
+- client.users.check_access(resource_id, \*, id) -> UserCheckAccessResponse
# Payments
Types:
```python
-from whopsdk.types import PaymentListResponse
+from whop_sdk.types import PaymentListResponse
```
Methods:
-- client.payments.retrieve(id) -> Payment
-- client.payments.list(\*\*params) -> SyncCursorPage[PaymentListResponse]
-- client.payments.refund(id, \*\*params) -> Payment
-- client.payments.retry(id) -> Payment
-- client.payments.void(id) -> Payment
+- client.payments.retrieve(id) -> Payment
+- client.payments.list(\*\*params) -> SyncCursorPage[PaymentListResponse]
+- client.payments.refund(id, \*\*params) -> Payment
+- client.payments.retry(id) -> Payment
+- client.payments.void(id) -> Payment
# SupportChannels
Types:
```python
-from whopsdk.types import SupportChannelListResponse
+from whop_sdk.types import SupportChannelListResponse
```
Methods:
-- client.support_channels.create(\*\*params) -> SupportChannel
-- client.support_channels.retrieve(id) -> SupportChannel
-- client.support_channels.list(\*\*params) -> SyncCursorPage[SupportChannelListResponse]
+- client.support_channels.create(\*\*params) -> SupportChannel
+- client.support_channels.retrieve(id) -> SupportChannel
+- client.support_channels.list(\*\*params) -> SyncCursorPage[SupportChannelListResponse]
# Experiences
Types:
```python
-from whopsdk.types import ExperienceListResponse, ExperienceDeleteResponse
+from whop_sdk.types import ExperienceListResponse, ExperienceDeleteResponse
```
Methods:
-- client.experiences.create(\*\*params) -> Experience
-- client.experiences.retrieve(id) -> Experience
-- client.experiences.update(id, \*\*params) -> Experience
-- client.experiences.list(\*\*params) -> SyncCursorPage[ExperienceListResponse]
-- client.experiences.delete(id) -> ExperienceDeleteResponse
-- client.experiences.attach(id, \*\*params) -> Experience
-- client.experiences.detach(id, \*\*params) -> Experience
+- client.experiences.create(\*\*params) -> Experience
+- client.experiences.retrieve(id) -> Experience
+- client.experiences.update(id, \*\*params) -> Experience
+- client.experiences.list(\*\*params) -> SyncCursorPage[ExperienceListResponse]
+- client.experiences.delete(id) -> ExperienceDeleteResponse
+- client.experiences.attach(id, \*\*params) -> Experience
+- client.experiences.detach(id, \*\*params) -> Experience
# Reactions
Types:
```python
-from whopsdk.types import ReactionListResponse
+from whop_sdk.types import ReactionListResponse
```
Methods:
-- client.reactions.create(\*\*params) -> Reaction
-- client.reactions.retrieve(id) -> Reaction
-- client.reactions.list(\*\*params) -> SyncCursorPage[ReactionListResponse]
+- client.reactions.create(\*\*params) -> Reaction
+- client.reactions.retrieve(id) -> Reaction
+- client.reactions.list(\*\*params) -> SyncCursorPage[ReactionListResponse]
diff --git a/bin/check-release-environment b/bin/check-release-environment
new file mode 100644
index 00000000..b845b0f4
--- /dev/null
+++ b/bin/check-release-environment
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+errors=()
+
+if [ -z "${PYPI_TOKEN}" ]; then
+ errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
+fi
+
+lenErrors=${#errors[@]}
+
+if [[ lenErrors -gt 0 ]]; then
+ echo -e "Found the following errors in the release environment:\n"
+
+ for error in "${errors[@]}"; do
+ echo -e "- $error\n"
+ done
+
+ exit 1
+fi
+
+echo "The environment is ready to push releases!"
diff --git a/pyproject.toml b/pyproject.toml
index ce4cffb7..bc987eb1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
[project]
-name = "whopsdk"
+name = "whop-sdk"
version = "0.0.1"
description = "The official Python library for the Whop API"
dynamic = ["readme"]
@@ -35,8 +35,8 @@ classifiers = [
]
[project.urls]
-Homepage = "https://github.com/stainless-sdks/whopsdk-python"
-Repository = "https://github.com/stainless-sdks/whopsdk-python"
+Homepage = "https://github.com/whopio/whopsdk-python"
+Repository = "https://github.com/whopio/whopsdk-python"
[project.optional-dependencies]
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
@@ -79,14 +79,14 @@ format = { chain = [
"check:ruff" = "ruff check ."
"fix:ruff" = "ruff check --fix ."
-"check:importable" = "python -c 'import whopsdk'"
+"check:importable" = "python -c 'import whop_sdk'"
typecheck = { chain = [
"typecheck:pyright",
"typecheck:mypy"
]}
"typecheck:pyright" = "pyright"
-"typecheck:verify-types" = "pyright --verifytypes whopsdk --ignoreexternal"
+"typecheck:verify-types" = "pyright --verifytypes whop_sdk --ignoreexternal"
"typecheck:mypy" = "mypy ."
[build-system]
@@ -99,7 +99,7 @@ include = [
]
[tool.hatch.build.targets.wheel]
-packages = ["src/whopsdk"]
+packages = ["src/whop_sdk"]
[tool.hatch.build.targets.sdist]
# Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc)
@@ -125,7 +125,7 @@ path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# replace relative links with absolute links
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
-replacement = '[\1](https://github.com/stainless-sdks/whopsdk-python/tree/main/\g<2>)'
+replacement = '[\1](https://github.com/whopio/whopsdk-python/tree/main/\g<2>)'
[tool.pytest.ini_options]
testpaths = ["tests"]
@@ -167,7 +167,7 @@ show_error_codes = true
#
# We also exclude our `tests` as mypy doesn't always infer
# types correctly and Pyright will still catch any type errors.
-exclude = ['src/whopsdk/_files.py', '_dev/.*.py', 'tests/.*']
+exclude = ['src/whop_sdk/_files.py', '_dev/.*.py', 'tests/.*']
strict_equality = true
implicit_reexport = true
@@ -259,7 +259,7 @@ length-sort = true
length-sort-straight = true
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
-known-first-party = ["whopsdk", "tests"]
+known-first-party = ["whop_sdk", "tests"]
[tool.ruff.lint.per-file-ignores]
"bin/**.py" = ["T201", "T203"]
diff --git a/release-please-config.json b/release-please-config.json
new file mode 100644
index 00000000..48f67aed
--- /dev/null
+++ b/release-please-config.json
@@ -0,0 +1,66 @@
+{
+ "packages": {
+ ".": {}
+ },
+ "$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
+ "include-v-in-tag": true,
+ "include-component-in-tag": false,
+ "versioning": "prerelease",
+ "prerelease": true,
+ "bump-minor-pre-major": true,
+ "bump-patch-for-minor-pre-major": false,
+ "pull-request-header": "Automated Release PR",
+ "pull-request-title-pattern": "release: ${version}",
+ "changelog-sections": [
+ {
+ "type": "feat",
+ "section": "Features"
+ },
+ {
+ "type": "fix",
+ "section": "Bug Fixes"
+ },
+ {
+ "type": "perf",
+ "section": "Performance Improvements"
+ },
+ {
+ "type": "revert",
+ "section": "Reverts"
+ },
+ {
+ "type": "chore",
+ "section": "Chores"
+ },
+ {
+ "type": "docs",
+ "section": "Documentation"
+ },
+ {
+ "type": "style",
+ "section": "Styles"
+ },
+ {
+ "type": "refactor",
+ "section": "Refactors"
+ },
+ {
+ "type": "test",
+ "section": "Tests",
+ "hidden": true
+ },
+ {
+ "type": "build",
+ "section": "Build System"
+ },
+ {
+ "type": "ci",
+ "section": "Continuous Integration",
+ "hidden": true
+ }
+ ],
+ "release-type": "python",
+ "extra-files": [
+ "src/whop_sdk/_version.py"
+ ]
+}
\ No newline at end of file
diff --git a/requirements-dev.lock b/requirements-dev.lock
index cbd7fcfb..a64267f8 100644
--- a/requirements-dev.lock
+++ b/requirements-dev.lock
@@ -14,14 +14,14 @@ aiohappyeyeballs==2.6.1
# via aiohttp
aiohttp==3.12.8
# via httpx-aiohttp
- # via whopsdk
+ # via whop-sdk
aiosignal==1.3.2
# via aiohttp
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
# via httpx
- # via whopsdk
+ # via whop-sdk
argcomplete==3.1.2
# via nox
async-timeout==5.0.1
@@ -40,7 +40,7 @@ dirty-equals==0.6.0
distlib==0.3.7
# via virtualenv
distro==1.8.0
- # via whopsdk
+ # via whop-sdk
exceptiongroup==1.2.2
# via anyio
# via pytest
@@ -59,9 +59,9 @@ httpx==0.28.1
# via httpx-aiohttp
# via respx
# via standardwebhooks
- # via whopsdk
+ # via whop-sdk
httpx-aiohttp==0.1.8
- # via whopsdk
+ # via whop-sdk
idna==3.4
# via anyio
# via httpx
@@ -93,7 +93,7 @@ propcache==0.3.1
# via aiohttp
# via yarl
pydantic==2.11.9
- # via whopsdk
+ # via whop-sdk
pydantic-core==2.33.2
# via pydantic
pygments==2.18.0
@@ -118,9 +118,9 @@ six==1.16.0
# via python-dateutil
sniffio==1.3.0
# via anyio
- # via whopsdk
+ # via whop-sdk
standardwebhooks==1.0.0
- # via whopsdk
+ # via whop-sdk
time-machine==2.9.0
tomli==2.0.2
# via mypy
@@ -137,7 +137,7 @@ typing-extensions==4.12.2
# via pydantic-core
# via pyright
# via typing-inspection
- # via whopsdk
+ # via whop-sdk
typing-inspection==0.4.1
# via pydantic
virtualenv==20.24.5
diff --git a/requirements.lock b/requirements.lock
index 1a1289da..62e1973c 100644
--- a/requirements.lock
+++ b/requirements.lock
@@ -14,14 +14,14 @@ aiohappyeyeballs==2.6.1
# via aiohttp
aiohttp==3.12.8
# via httpx-aiohttp
- # via whopsdk
+ # via whop-sdk
aiosignal==1.3.2
# via aiohttp
annotated-types==0.6.0
# via pydantic
anyio==4.4.0
# via httpx
- # via whopsdk
+ # via whop-sdk
async-timeout==5.0.1
# via aiohttp
attrs==25.3.0
@@ -33,7 +33,7 @@ certifi==2023.7.22
deprecated==1.2.18
# via standardwebhooks
distro==1.8.0
- # via whopsdk
+ # via whop-sdk
exceptiongroup==1.2.2
# via anyio
frozenlist==1.6.2
@@ -46,9 +46,9 @@ httpcore==1.0.9
httpx==0.28.1
# via httpx-aiohttp
# via standardwebhooks
- # via whopsdk
+ # via whop-sdk
httpx-aiohttp==0.1.8
- # via whopsdk
+ # via whop-sdk
idna==3.4
# via anyio
# via httpx
@@ -60,7 +60,7 @@ propcache==0.3.1
# via aiohttp
# via yarl
pydantic==2.11.9
- # via whopsdk
+ # via whop-sdk
pydantic-core==2.33.2
# via pydantic
python-dateutil==2.9.0.post0
@@ -69,9 +69,9 @@ six==1.17.0
# via python-dateutil
sniffio==1.3.0
# via anyio
- # via whopsdk
+ # via whop-sdk
standardwebhooks==1.0.0
- # via whopsdk
+ # via whop-sdk
types-deprecated==1.2.15.20250304
# via standardwebhooks
types-python-dateutil==2.9.0.20251008
@@ -82,7 +82,7 @@ typing-extensions==4.12.2
# via pydantic
# via pydantic-core
# via typing-inspection
- # via whopsdk
+ # via whop-sdk
typing-inspection==0.4.1
# via pydantic
wrapt==1.17.3
diff --git a/scripts/lint b/scripts/lint
index 83ac279b..8aa7eb94 100755
--- a/scripts/lint
+++ b/scripts/lint
@@ -8,4 +8,4 @@ echo "==> Running lints"
rye run lint
echo "==> Making sure it imports"
-rye run python -c 'import whopsdk'
+rye run python -c 'import whop_sdk'
diff --git a/src/whopsdk/__init__.py b/src/whop_sdk/__init__.py
similarity index 95%
rename from src/whopsdk/__init__.py
rename to src/whop_sdk/__init__.py
index 983caeeb..20f3270e 100644
--- a/src/whopsdk/__init__.py
+++ b/src/whop_sdk/__init__.py
@@ -83,12 +83,12 @@
# Update the __module__ attribute for exported symbols so that
# error messages point to this module instead of the module
# it was originally defined in, e.g.
-# whopsdk._exceptions.NotFoundError -> whopsdk.NotFoundError
+# whop_sdk._exceptions.NotFoundError -> whop_sdk.NotFoundError
__locals = locals()
for __name in __all__:
if not __name.startswith("__"):
try:
- __locals[__name].__module__ = "whopsdk"
+ __locals[__name].__module__ = "whop_sdk"
except (TypeError, AttributeError):
# Some of our exported symbols are builtins which we can't set attributes for.
pass
diff --git a/src/whopsdk/_base_client.py b/src/whop_sdk/_base_client.py
similarity index 99%
rename from src/whopsdk/_base_client.py
rename to src/whop_sdk/_base_client.py
index 69e782a6..cb03fc5a 100644
--- a/src/whopsdk/_base_client.py
+++ b/src/whop_sdk/_base_client.py
@@ -389,7 +389,7 @@ def __init__(
if max_retries is None: # pyright: ignore[reportUnnecessaryComparison]
raise TypeError(
- "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `whopsdk.DEFAULT_MAX_RETRIES`"
+ "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `whop_sdk.DEFAULT_MAX_RETRIES`"
)
def _enforce_trailing_slash(self, url: URL) -> URL:
diff --git a/src/whopsdk/_client.py b/src/whop_sdk/_client.py
similarity index 100%
rename from src/whopsdk/_client.py
rename to src/whop_sdk/_client.py
diff --git a/src/whopsdk/_compat.py b/src/whop_sdk/_compat.py
similarity index 100%
rename from src/whopsdk/_compat.py
rename to src/whop_sdk/_compat.py
diff --git a/src/whopsdk/_constants.py b/src/whop_sdk/_constants.py
similarity index 100%
rename from src/whopsdk/_constants.py
rename to src/whop_sdk/_constants.py
diff --git a/src/whopsdk/_exceptions.py b/src/whop_sdk/_exceptions.py
similarity index 100%
rename from src/whopsdk/_exceptions.py
rename to src/whop_sdk/_exceptions.py
diff --git a/src/whopsdk/_files.py b/src/whop_sdk/_files.py
similarity index 100%
rename from src/whopsdk/_files.py
rename to src/whop_sdk/_files.py
diff --git a/src/whopsdk/_models.py b/src/whop_sdk/_models.py
similarity index 100%
rename from src/whopsdk/_models.py
rename to src/whop_sdk/_models.py
diff --git a/src/whopsdk/_qs.py b/src/whop_sdk/_qs.py
similarity index 100%
rename from src/whopsdk/_qs.py
rename to src/whop_sdk/_qs.py
diff --git a/src/whopsdk/_resource.py b/src/whop_sdk/_resource.py
similarity index 100%
rename from src/whopsdk/_resource.py
rename to src/whop_sdk/_resource.py
diff --git a/src/whopsdk/_response.py b/src/whop_sdk/_response.py
similarity index 99%
rename from src/whopsdk/_response.py
rename to src/whop_sdk/_response.py
index fe094a09..ea6a5009 100644
--- a/src/whopsdk/_response.py
+++ b/src/whop_sdk/_response.py
@@ -217,7 +217,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
and not issubclass(origin, BaseModel)
and issubclass(origin, pydantic.BaseModel)
):
- raise TypeError("Pydantic models must subclass our base model type, e.g. `from whopsdk import BaseModel`")
+ raise TypeError("Pydantic models must subclass our base model type, e.g. `from whop_sdk import BaseModel`")
if (
cast_to is not object
@@ -283,7 +283,7 @@ def parse(self, *, to: type[_T] | None = None) -> R | _T:
the `to` argument, e.g.
```py
- from whopsdk import BaseModel
+ from whop_sdk import BaseModel
class MyModel(BaseModel):
@@ -385,7 +385,7 @@ async def parse(self, *, to: type[_T] | None = None) -> R | _T:
the `to` argument, e.g.
```py
- from whopsdk import BaseModel
+ from whop_sdk import BaseModel
class MyModel(BaseModel):
@@ -556,7 +556,7 @@ async def stream_to_file(
class MissingStreamClassError(TypeError):
def __init__(self) -> None:
super().__init__(
- "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `whopsdk._streaming` for reference",
+ "The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `whop_sdk._streaming` for reference",
)
diff --git a/src/whopsdk/_streaming.py b/src/whop_sdk/_streaming.py
similarity index 100%
rename from src/whopsdk/_streaming.py
rename to src/whop_sdk/_streaming.py
diff --git a/src/whopsdk/_types.py b/src/whop_sdk/_types.py
similarity index 99%
rename from src/whopsdk/_types.py
rename to src/whop_sdk/_types.py
index f4efa996..bff722fc 100644
--- a/src/whopsdk/_types.py
+++ b/src/whop_sdk/_types.py
@@ -92,7 +92,7 @@
# This unfortunately means that you will either have
# to import this type and pass it explicitly:
#
-# from whopsdk import NoneType
+# from whop_sdk import NoneType
# client.get('/foo', cast_to=NoneType)
#
# or build it yourself:
diff --git a/src/whopsdk/_utils/__init__.py b/src/whop_sdk/_utils/__init__.py
similarity index 100%
rename from src/whopsdk/_utils/__init__.py
rename to src/whop_sdk/_utils/__init__.py
diff --git a/src/whopsdk/_utils/_compat.py b/src/whop_sdk/_utils/_compat.py
similarity index 100%
rename from src/whopsdk/_utils/_compat.py
rename to src/whop_sdk/_utils/_compat.py
diff --git a/src/whopsdk/_utils/_datetime_parse.py b/src/whop_sdk/_utils/_datetime_parse.py
similarity index 100%
rename from src/whopsdk/_utils/_datetime_parse.py
rename to src/whop_sdk/_utils/_datetime_parse.py
diff --git a/src/whopsdk/_utils/_logs.py b/src/whop_sdk/_utils/_logs.py
similarity index 76%
rename from src/whopsdk/_utils/_logs.py
rename to src/whop_sdk/_utils/_logs.py
index f66e4efc..f82eedca 100644
--- a/src/whopsdk/_utils/_logs.py
+++ b/src/whop_sdk/_utils/_logs.py
@@ -1,12 +1,12 @@
import os
import logging
-logger: logging.Logger = logging.getLogger("whopsdk")
+logger: logging.Logger = logging.getLogger("whop_sdk")
httpx_logger: logging.Logger = logging.getLogger("httpx")
def _basic_config() -> None:
- # e.g. [2023-10-05 14:12:26 - whopsdk._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK"
+ # e.g. [2023-10-05 14:12:26 - whop_sdk._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK"
logging.basicConfig(
format="[%(asctime)s - %(name)s:%(lineno)d - %(levelname)s] %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
diff --git a/src/whopsdk/_utils/_proxy.py b/src/whop_sdk/_utils/_proxy.py
similarity index 100%
rename from src/whopsdk/_utils/_proxy.py
rename to src/whop_sdk/_utils/_proxy.py
diff --git a/src/whopsdk/_utils/_reflection.py b/src/whop_sdk/_utils/_reflection.py
similarity index 100%
rename from src/whopsdk/_utils/_reflection.py
rename to src/whop_sdk/_utils/_reflection.py
diff --git a/src/whopsdk/_utils/_resources_proxy.py b/src/whop_sdk/_utils/_resources_proxy.py
similarity index 52%
rename from src/whopsdk/_utils/_resources_proxy.py
rename to src/whop_sdk/_utils/_resources_proxy.py
index 85fa6320..c921f32c 100644
--- a/src/whopsdk/_utils/_resources_proxy.py
+++ b/src/whop_sdk/_utils/_resources_proxy.py
@@ -7,17 +7,17 @@
class ResourcesProxy(LazyProxy[Any]):
- """A proxy for the `whopsdk.resources` module.
+ """A proxy for the `whop_sdk.resources` module.
- This is used so that we can lazily import `whopsdk.resources` only when
- needed *and* so that users can just import `whopsdk` and reference `whopsdk.resources`
+ This is used so that we can lazily import `whop_sdk.resources` only when
+ needed *and* so that users can just import `whop_sdk` and reference `whop_sdk.resources`
"""
@override
def __load__(self) -> Any:
import importlib
- mod = importlib.import_module("whopsdk.resources")
+ mod = importlib.import_module("whop_sdk.resources")
return mod
diff --git a/src/whopsdk/_utils/_streams.py b/src/whop_sdk/_utils/_streams.py
similarity index 100%
rename from src/whopsdk/_utils/_streams.py
rename to src/whop_sdk/_utils/_streams.py
diff --git a/src/whopsdk/_utils/_sync.py b/src/whop_sdk/_utils/_sync.py
similarity index 100%
rename from src/whopsdk/_utils/_sync.py
rename to src/whop_sdk/_utils/_sync.py
diff --git a/src/whopsdk/_utils/_transform.py b/src/whop_sdk/_utils/_transform.py
similarity index 100%
rename from src/whopsdk/_utils/_transform.py
rename to src/whop_sdk/_utils/_transform.py
diff --git a/src/whopsdk/_utils/_typing.py b/src/whop_sdk/_utils/_typing.py
similarity index 100%
rename from src/whopsdk/_utils/_typing.py
rename to src/whop_sdk/_utils/_typing.py
diff --git a/src/whopsdk/_utils/_utils.py b/src/whop_sdk/_utils/_utils.py
similarity index 100%
rename from src/whopsdk/_utils/_utils.py
rename to src/whop_sdk/_utils/_utils.py
diff --git a/src/whopsdk/_version.py b/src/whop_sdk/_version.py
similarity index 54%
rename from src/whopsdk/_version.py
rename to src/whop_sdk/_version.py
index 15354f7d..35444f45 100644
--- a/src/whopsdk/_version.py
+++ b/src/whop_sdk/_version.py
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-__title__ = "whopsdk"
-__version__ = "0.0.1"
+__title__ = "whop_sdk"
+__version__ = "0.0.1" # x-release-please-version
diff --git a/src/whop_sdk/lib/.keep b/src/whop_sdk/lib/.keep
new file mode 100644
index 00000000..5e2c99fd
--- /dev/null
+++ b/src/whop_sdk/lib/.keep
@@ -0,0 +1,4 @@
+File generated from our OpenAPI spec by Stainless.
+
+This directory can be used to store custom files to expand the SDK.
+It is ignored by Stainless code generation and its content (other than this keep file) won't be touched.
\ No newline at end of file
diff --git a/src/whopsdk/pagination.py b/src/whop_sdk/pagination.py
similarity index 100%
rename from src/whopsdk/pagination.py
rename to src/whop_sdk/pagination.py
diff --git a/src/whopsdk/py.typed b/src/whop_sdk/py.typed
similarity index 100%
rename from src/whopsdk/py.typed
rename to src/whop_sdk/py.typed
diff --git a/src/whopsdk/resources/__init__.py b/src/whop_sdk/resources/__init__.py
similarity index 100%
rename from src/whopsdk/resources/__init__.py
rename to src/whop_sdk/resources/__init__.py
diff --git a/src/whopsdk/resources/app_builds.py b/src/whop_sdk/resources/app_builds.py
similarity index 97%
rename from src/whopsdk/resources/app_builds.py
rename to src/whop_sdk/resources/app_builds.py
index 4e6aa0da..627a4ff4 100644
--- a/src/whopsdk/resources/app_builds.py
+++ b/src/whop_sdk/resources/app_builds.py
@@ -35,7 +35,7 @@ def with_raw_response(self) -> AppBuildsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AppBuildsResourceWithRawResponse(self)
@@ -44,7 +44,7 @@ def with_streaming_response(self) -> AppBuildsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AppBuildsResourceWithStreamingResponse(self)
@@ -266,7 +266,7 @@ def with_raw_response(self) -> AsyncAppBuildsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncAppBuildsResourceWithRawResponse(self)
@@ -275,7 +275,7 @@ def with_streaming_response(self) -> AsyncAppBuildsResourceWithStreamingResponse
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncAppBuildsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/apps.py b/src/whop_sdk/resources/apps.py
similarity index 98%
rename from src/whopsdk/resources/apps.py
rename to src/whop_sdk/resources/apps.py
index ecf48d3c..09cd0d33 100644
--- a/src/whopsdk/resources/apps.py
+++ b/src/whop_sdk/resources/apps.py
@@ -36,7 +36,7 @@ def with_raw_response(self) -> AppsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AppsResourceWithRawResponse(self)
@@ -45,7 +45,7 @@ def with_streaming_response(self) -> AppsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AppsResourceWithStreamingResponse(self)
@@ -318,7 +318,7 @@ def with_raw_response(self) -> AsyncAppsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncAppsResourceWithRawResponse(self)
@@ -327,7 +327,7 @@ def with_streaming_response(self) -> AsyncAppsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncAppsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/authorized_users.py b/src/whop_sdk/resources/authorized_users.py
similarity index 96%
rename from src/whopsdk/resources/authorized_users.py
rename to src/whop_sdk/resources/authorized_users.py
index 79160372..35e5daff 100644
--- a/src/whopsdk/resources/authorized_users.py
+++ b/src/whop_sdk/resources/authorized_users.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> AuthorizedUsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AuthorizedUsersResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> AuthorizedUsersResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AuthorizedUsersResourceWithStreamingResponse(self)
@@ -164,7 +164,7 @@ def with_raw_response(self) -> AsyncAuthorizedUsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncAuthorizedUsersResourceWithRawResponse(self)
@@ -173,7 +173,7 @@ def with_streaming_response(self) -> AsyncAuthorizedUsersResourceWithStreamingRe
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncAuthorizedUsersResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/chat_channels.py b/src/whop_sdk/resources/chat_channels.py
similarity index 97%
rename from src/whopsdk/resources/chat_channels.py
rename to src/whop_sdk/resources/chat_channels.py
index ea7a2039..5c30f6c4 100644
--- a/src/whopsdk/resources/chat_channels.py
+++ b/src/whop_sdk/resources/chat_channels.py
@@ -34,7 +34,7 @@ def with_raw_response(self) -> ChatChannelsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return ChatChannelsResourceWithRawResponse(self)
@@ -43,7 +43,7 @@ def with_streaming_response(self) -> ChatChannelsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return ChatChannelsResourceWithStreamingResponse(self)
@@ -225,7 +225,7 @@ def with_raw_response(self) -> AsyncChatChannelsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncChatChannelsResourceWithRawResponse(self)
@@ -234,7 +234,7 @@ def with_streaming_response(self) -> AsyncChatChannelsResourceWithStreamingRespo
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncChatChannelsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/checkout_configurations.py b/src/whop_sdk/resources/checkout_configurations.py
similarity index 97%
rename from src/whopsdk/resources/checkout_configurations.py
rename to src/whop_sdk/resources/checkout_configurations.py
index 08e0c695..d2a63268 100644
--- a/src/whopsdk/resources/checkout_configurations.py
+++ b/src/whop_sdk/resources/checkout_configurations.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> CheckoutConfigurationsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return CheckoutConfigurationsResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> CheckoutConfigurationsResourceWithStreaming
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return CheckoutConfigurationsResourceWithStreamingResponse(self)
@@ -222,7 +222,7 @@ def with_raw_response(self) -> AsyncCheckoutConfigurationsResourceWithRawRespons
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncCheckoutConfigurationsResourceWithRawResponse(self)
@@ -231,7 +231,7 @@ def with_streaming_response(self) -> AsyncCheckoutConfigurationsResourceWithStre
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncCheckoutConfigurationsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/companies.py b/src/whop_sdk/resources/companies.py
similarity index 92%
rename from src/whopsdk/resources/companies.py
rename to src/whop_sdk/resources/companies.py
index b0fc36b4..be4d3a74 100644
--- a/src/whopsdk/resources/companies.py
+++ b/src/whop_sdk/resources/companies.py
@@ -26,7 +26,7 @@ def with_raw_response(self) -> CompaniesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return CompaniesResourceWithRawResponse(self)
@@ -35,7 +35,7 @@ def with_streaming_response(self) -> CompaniesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return CompaniesResourceWithStreamingResponse(self)
@@ -84,7 +84,7 @@ def with_raw_response(self) -> AsyncCompaniesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncCompaniesResourceWithRawResponse(self)
@@ -93,7 +93,7 @@ def with_streaming_response(self) -> AsyncCompaniesResourceWithStreamingResponse
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncCompaniesResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/course_lesson_interactions.py b/src/whop_sdk/resources/course_lesson_interactions.py
similarity index 96%
rename from src/whopsdk/resources/course_lesson_interactions.py
rename to src/whop_sdk/resources/course_lesson_interactions.py
index ed639ce8..4a329239 100644
--- a/src/whopsdk/resources/course_lesson_interactions.py
+++ b/src/whop_sdk/resources/course_lesson_interactions.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> CourseLessonInteractionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return CourseLessonInteractionsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> CourseLessonInteractionsResourceWithStreami
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return CourseLessonInteractionsResourceWithStreamingResponse(self)
@@ -167,7 +167,7 @@ def with_raw_response(self) -> AsyncCourseLessonInteractionsResourceWithRawRespo
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncCourseLessonInteractionsResourceWithRawResponse(self)
@@ -176,7 +176,7 @@ def with_streaming_response(self) -> AsyncCourseLessonInteractionsResourceWithSt
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncCourseLessonInteractionsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/entries.py b/src/whop_sdk/resources/entries.py
similarity index 97%
rename from src/whopsdk/resources/entries.py
rename to src/whop_sdk/resources/entries.py
index 5f18eec0..66225d15 100644
--- a/src/whopsdk/resources/entries.py
+++ b/src/whop_sdk/resources/entries.py
@@ -36,7 +36,7 @@ def with_raw_response(self) -> EntriesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return EntriesResourceWithRawResponse(self)
@@ -45,7 +45,7 @@ def with_streaming_response(self) -> EntriesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return EntriesResourceWithStreamingResponse(self)
@@ -255,7 +255,7 @@ def with_raw_response(self) -> AsyncEntriesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncEntriesResourceWithRawResponse(self)
@@ -264,7 +264,7 @@ def with_streaming_response(self) -> AsyncEntriesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncEntriesResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/experiences.py b/src/whop_sdk/resources/experiences.py
similarity index 98%
rename from src/whopsdk/resources/experiences.py
rename to src/whop_sdk/resources/experiences.py
index a2c2db3d..41e06c65 100644
--- a/src/whopsdk/resources/experiences.py
+++ b/src/whop_sdk/resources/experiences.py
@@ -40,7 +40,7 @@ def with_raw_response(self) -> ExperiencesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return ExperiencesResourceWithRawResponse(self)
@@ -49,7 +49,7 @@ def with_streaming_response(self) -> ExperiencesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return ExperiencesResourceWithStreamingResponse(self)
@@ -397,7 +397,7 @@ def with_raw_response(self) -> AsyncExperiencesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncExperiencesResourceWithRawResponse(self)
@@ -406,7 +406,7 @@ def with_streaming_response(self) -> AsyncExperiencesResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncExperiencesResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/forum_posts.py b/src/whop_sdk/resources/forum_posts.py
similarity index 97%
rename from src/whopsdk/resources/forum_posts.py
rename to src/whop_sdk/resources/forum_posts.py
index fbf475e5..8b744103 100644
--- a/src/whopsdk/resources/forum_posts.py
+++ b/src/whop_sdk/resources/forum_posts.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> ForumPostsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return ForumPostsResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> ForumPostsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return ForumPostsResourceWithStreamingResponse(self)
@@ -246,7 +246,7 @@ def with_raw_response(self) -> AsyncForumPostsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncForumPostsResourceWithRawResponse(self)
@@ -255,7 +255,7 @@ def with_streaming_response(self) -> AsyncForumPostsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncForumPostsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/invoices.py b/src/whop_sdk/resources/invoices.py
similarity index 98%
rename from src/whopsdk/resources/invoices.py
rename to src/whop_sdk/resources/invoices.py
index 37161aee..db15ac59 100644
--- a/src/whopsdk/resources/invoices.py
+++ b/src/whop_sdk/resources/invoices.py
@@ -38,7 +38,7 @@ def with_raw_response(self) -> InvoicesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return InvoicesResourceWithRawResponse(self)
@@ -47,7 +47,7 @@ def with_streaming_response(self) -> InvoicesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return InvoicesResourceWithStreamingResponse(self)
@@ -303,7 +303,7 @@ def with_raw_response(self) -> AsyncInvoicesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncInvoicesResourceWithRawResponse(self)
@@ -312,7 +312,7 @@ def with_streaming_response(self) -> AsyncInvoicesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncInvoicesResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/ledger_accounts.py b/src/whop_sdk/resources/ledger_accounts.py
similarity index 92%
rename from src/whopsdk/resources/ledger_accounts.py
rename to src/whop_sdk/resources/ledger_accounts.py
index efc90146..039b6c02 100644
--- a/src/whopsdk/resources/ledger_accounts.py
+++ b/src/whop_sdk/resources/ledger_accounts.py
@@ -26,7 +26,7 @@ def with_raw_response(self) -> LedgerAccountsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return LedgerAccountsResourceWithRawResponse(self)
@@ -35,7 +35,7 @@ def with_streaming_response(self) -> LedgerAccountsResourceWithStreamingResponse
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return LedgerAccountsResourceWithStreamingResponse(self)
@@ -84,7 +84,7 @@ def with_raw_response(self) -> AsyncLedgerAccountsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncLedgerAccountsResourceWithRawResponse(self)
@@ -93,7 +93,7 @@ def with_streaming_response(self) -> AsyncLedgerAccountsResourceWithStreamingRes
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncLedgerAccountsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/memberships.py b/src/whop_sdk/resources/memberships.py
similarity index 98%
rename from src/whopsdk/resources/memberships.py
rename to src/whop_sdk/resources/memberships.py
index c8b74b00..907f9efa 100644
--- a/src/whopsdk/resources/memberships.py
+++ b/src/whop_sdk/resources/memberships.py
@@ -41,7 +41,7 @@ def with_raw_response(self) -> MembershipsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return MembershipsResourceWithRawResponse(self)
@@ -50,7 +50,7 @@ def with_streaming_response(self) -> MembershipsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return MembershipsResourceWithStreamingResponse(self)
@@ -380,7 +380,7 @@ def with_raw_response(self) -> AsyncMembershipsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncMembershipsResourceWithRawResponse(self)
@@ -389,7 +389,7 @@ def with_streaming_response(self) -> AsyncMembershipsResourceWithStreamingRespon
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncMembershipsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/messages.py b/src/whop_sdk/resources/messages.py
similarity index 96%
rename from src/whopsdk/resources/messages.py
rename to src/whop_sdk/resources/messages.py
index c4f8a5ff..a5f5aed5 100644
--- a/src/whopsdk/resources/messages.py
+++ b/src/whop_sdk/resources/messages.py
@@ -33,7 +33,7 @@ def with_raw_response(self) -> MessagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return MessagesResourceWithRawResponse(self)
@@ -42,7 +42,7 @@ def with_streaming_response(self) -> MessagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return MessagesResourceWithStreamingResponse(self)
@@ -213,7 +213,7 @@ def with_raw_response(self) -> AsyncMessagesResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncMessagesResourceWithRawResponse(self)
@@ -222,7 +222,7 @@ def with_streaming_response(self) -> AsyncMessagesResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncMessagesResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/payments.py b/src/whop_sdk/resources/payments.py
similarity index 98%
rename from src/whopsdk/resources/payments.py
rename to src/whop_sdk/resources/payments.py
index b037781c..a1b5ddde 100644
--- a/src/whopsdk/resources/payments.py
+++ b/src/whop_sdk/resources/payments.py
@@ -38,7 +38,7 @@ def with_raw_response(self) -> PaymentsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return PaymentsResourceWithRawResponse(self)
@@ -47,7 +47,7 @@ def with_streaming_response(self) -> PaymentsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return PaymentsResourceWithStreamingResponse(self)
@@ -360,7 +360,7 @@ def with_raw_response(self) -> AsyncPaymentsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncPaymentsResourceWithRawResponse(self)
@@ -369,7 +369,7 @@ def with_streaming_response(self) -> AsyncPaymentsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncPaymentsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/plans.py b/src/whop_sdk/resources/plans.py
similarity index 98%
rename from src/whopsdk/resources/plans.py
rename to src/whop_sdk/resources/plans.py
index 2a637717..d536a330 100644
--- a/src/whopsdk/resources/plans.py
+++ b/src/whop_sdk/resources/plans.py
@@ -41,7 +41,7 @@ def with_raw_response(self) -> PlansResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return PlansResourceWithRawResponse(self)
@@ -50,7 +50,7 @@ def with_streaming_response(self) -> PlansResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return PlansResourceWithStreamingResponse(self)
@@ -435,7 +435,7 @@ def with_raw_response(self) -> AsyncPlansResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncPlansResourceWithRawResponse(self)
@@ -444,7 +444,7 @@ def with_streaming_response(self) -> AsyncPlansResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncPlansResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/products.py b/src/whop_sdk/resources/products.py
similarity index 98%
rename from src/whopsdk/resources/products.py
rename to src/whop_sdk/resources/products.py
index bfa0ba56..0c9cba7c 100644
--- a/src/whopsdk/resources/products.py
+++ b/src/whop_sdk/resources/products.py
@@ -42,7 +42,7 @@ def with_raw_response(self) -> ProductsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return ProductsResourceWithRawResponse(self)
@@ -51,7 +51,7 @@ def with_streaming_response(self) -> ProductsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return ProductsResourceWithStreamingResponse(self)
@@ -467,7 +467,7 @@ def with_raw_response(self) -> AsyncProductsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncProductsResourceWithRawResponse(self)
@@ -476,7 +476,7 @@ def with_streaming_response(self) -> AsyncProductsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncProductsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/reactions.py b/src/whop_sdk/resources/reactions.py
similarity index 96%
rename from src/whopsdk/resources/reactions.py
rename to src/whop_sdk/resources/reactions.py
index 80281318..1070c458 100644
--- a/src/whopsdk/resources/reactions.py
+++ b/src/whop_sdk/resources/reactions.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> ReactionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return ReactionsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> ReactionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return ReactionsResourceWithStreamingResponse(self)
@@ -201,7 +201,7 @@ def with_raw_response(self) -> AsyncReactionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncReactionsResourceWithRawResponse(self)
@@ -210,7 +210,7 @@ def with_streaming_response(self) -> AsyncReactionsResourceWithStreamingResponse
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncReactionsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/shipments.py b/src/whop_sdk/resources/shipments.py
similarity index 97%
rename from src/whopsdk/resources/shipments.py
rename to src/whop_sdk/resources/shipments.py
index 9aaa360e..2090a247 100644
--- a/src/whopsdk/resources/shipments.py
+++ b/src/whop_sdk/resources/shipments.py
@@ -32,7 +32,7 @@ def with_raw_response(self) -> ShipmentsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return ShipmentsResourceWithRawResponse(self)
@@ -41,7 +41,7 @@ def with_streaming_response(self) -> ShipmentsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return ShipmentsResourceWithStreamingResponse(self)
@@ -215,7 +215,7 @@ def with_raw_response(self) -> AsyncShipmentsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncShipmentsResourceWithRawResponse(self)
@@ -224,7 +224,7 @@ def with_streaming_response(self) -> AsyncShipmentsResourceWithStreamingResponse
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncShipmentsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/support_channels.py b/src/whop_sdk/resources/support_channels.py
similarity index 97%
rename from src/whopsdk/resources/support_channels.py
rename to src/whop_sdk/resources/support_channels.py
index fe22e2af..d0a3cb3a 100644
--- a/src/whopsdk/resources/support_channels.py
+++ b/src/whop_sdk/resources/support_channels.py
@@ -34,7 +34,7 @@ def with_raw_response(self) -> SupportChannelsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return SupportChannelsResourceWithRawResponse(self)
@@ -43,7 +43,7 @@ def with_streaming_response(self) -> SupportChannelsResourceWithStreamingRespons
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return SupportChannelsResourceWithStreamingResponse(self)
@@ -218,7 +218,7 @@ def with_raw_response(self) -> AsyncSupportChannelsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncSupportChannelsResourceWithRawResponse(self)
@@ -227,7 +227,7 @@ def with_streaming_response(self) -> AsyncSupportChannelsResourceWithStreamingRe
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncSupportChannelsResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/transfers.py b/src/whop_sdk/resources/transfers.py
similarity index 97%
rename from src/whopsdk/resources/transfers.py
rename to src/whop_sdk/resources/transfers.py
index c0416c2e..16494328 100644
--- a/src/whopsdk/resources/transfers.py
+++ b/src/whop_sdk/resources/transfers.py
@@ -35,7 +35,7 @@ def with_raw_response(self) -> TransfersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return TransfersResourceWithRawResponse(self)
@@ -44,7 +44,7 @@ def with_streaming_response(self) -> TransfersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return TransfersResourceWithStreamingResponse(self)
@@ -235,7 +235,7 @@ def with_raw_response(self) -> AsyncTransfersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncTransfersResourceWithRawResponse(self)
@@ -244,7 +244,7 @@ def with_streaming_response(self) -> AsyncTransfersResourceWithStreamingResponse
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncTransfersResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/users.py b/src/whop_sdk/resources/users.py
similarity index 94%
rename from src/whopsdk/resources/users.py
rename to src/whop_sdk/resources/users.py
index beb56896..513eb235 100644
--- a/src/whopsdk/resources/users.py
+++ b/src/whop_sdk/resources/users.py
@@ -27,7 +27,7 @@ def with_raw_response(self) -> UsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return UsersResourceWithRawResponse(self)
@@ -36,7 +36,7 @@ def with_streaming_response(self) -> UsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return UsersResourceWithStreamingResponse(self)
@@ -117,7 +117,7 @@ def with_raw_response(self) -> AsyncUsersResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#accessing-raw-response-data-eg-headers
+ For more information, see https://www.github.com/whopio/whopsdk-python#accessing-raw-response-data-eg-headers
"""
return AsyncUsersResourceWithRawResponse(self)
@@ -126,7 +126,7 @@ def with_streaming_response(self) -> AsyncUsersResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
- For more information, see https://www.github.com/stainless-sdks/whopsdk-python#with_streaming_response
+ For more information, see https://www.github.com/whopio/whopsdk-python#with_streaming_response
"""
return AsyncUsersResourceWithStreamingResponse(self)
diff --git a/src/whopsdk/resources/webhooks.py b/src/whop_sdk/resources/webhooks.py
similarity index 91%
rename from src/whopsdk/resources/webhooks.py
rename to src/whop_sdk/resources/webhooks.py
index 5232f84c..2753ec22 100644
--- a/src/whopsdk/resources/webhooks.py
+++ b/src/whop_sdk/resources/webhooks.py
@@ -18,7 +18,7 @@ def unwrap(self, payload: str, *, headers: Mapping[str, str], key: str | bytes |
try:
from standardwebhooks import Webhook
except ImportError as exc:
- raise WhopError("You need to install `whopsdk[webhooks]` to use this method") from exc
+ raise WhopError("You need to install `whop-sdk[webhooks]` to use this method") from exc
if key is None:
key = self._client.webhook_key
@@ -46,7 +46,7 @@ def unwrap(self, payload: str, *, headers: Mapping[str, str], key: str | bytes |
try:
from standardwebhooks import Webhook
except ImportError as exc:
- raise WhopError("You need to install `whopsdk[webhooks]` to use this method") from exc
+ raise WhopError("You need to install `whop-sdk[webhooks]` to use this method") from exc
if key is None:
key = self._client.webhook_key
diff --git a/src/whopsdk/types/__init__.py b/src/whop_sdk/types/__init__.py
similarity index 100%
rename from src/whopsdk/types/__init__.py
rename to src/whop_sdk/types/__init__.py
diff --git a/src/whopsdk/types/app_build_create_params.py b/src/whop_sdk/types/app_build_create_params.py
similarity index 100%
rename from src/whopsdk/types/app_build_create_params.py
rename to src/whop_sdk/types/app_build_create_params.py
diff --git a/src/whopsdk/types/app_build_list_params.py b/src/whop_sdk/types/app_build_list_params.py
similarity index 100%
rename from src/whopsdk/types/app_build_list_params.py
rename to src/whop_sdk/types/app_build_list_params.py
diff --git a/src/whopsdk/types/app_build_list_response.py b/src/whop_sdk/types/app_build_list_response.py
similarity index 100%
rename from src/whopsdk/types/app_build_list_response.py
rename to src/whop_sdk/types/app_build_list_response.py
diff --git a/src/whopsdk/types/app_create_params.py b/src/whop_sdk/types/app_create_params.py
similarity index 100%
rename from src/whopsdk/types/app_create_params.py
rename to src/whop_sdk/types/app_create_params.py
diff --git a/src/whopsdk/types/app_list_params.py b/src/whop_sdk/types/app_list_params.py
similarity index 100%
rename from src/whopsdk/types/app_list_params.py
rename to src/whop_sdk/types/app_list_params.py
diff --git a/src/whopsdk/types/app_list_response.py b/src/whop_sdk/types/app_list_response.py
similarity index 100%
rename from src/whopsdk/types/app_list_response.py
rename to src/whop_sdk/types/app_list_response.py
diff --git a/src/whopsdk/types/app_update_params.py b/src/whop_sdk/types/app_update_params.py
similarity index 100%
rename from src/whopsdk/types/app_update_params.py
rename to src/whop_sdk/types/app_update_params.py
diff --git a/src/whopsdk/types/authorized_user_list_params.py b/src/whop_sdk/types/authorized_user_list_params.py
similarity index 100%
rename from src/whopsdk/types/authorized_user_list_params.py
rename to src/whop_sdk/types/authorized_user_list_params.py
diff --git a/src/whopsdk/types/authorized_user_list_response.py b/src/whop_sdk/types/authorized_user_list_response.py
similarity index 100%
rename from src/whopsdk/types/authorized_user_list_response.py
rename to src/whop_sdk/types/authorized_user_list_response.py
diff --git a/src/whopsdk/types/authorized_user_retrieve_response.py b/src/whop_sdk/types/authorized_user_retrieve_response.py
similarity index 100%
rename from src/whopsdk/types/authorized_user_retrieve_response.py
rename to src/whop_sdk/types/authorized_user_retrieve_response.py
diff --git a/src/whopsdk/types/chat_channel_list_params.py b/src/whop_sdk/types/chat_channel_list_params.py
similarity index 100%
rename from src/whopsdk/types/chat_channel_list_params.py
rename to src/whop_sdk/types/chat_channel_list_params.py
diff --git a/src/whopsdk/types/chat_channel_list_response.py b/src/whop_sdk/types/chat_channel_list_response.py
similarity index 100%
rename from src/whopsdk/types/chat_channel_list_response.py
rename to src/whop_sdk/types/chat_channel_list_response.py
diff --git a/src/whopsdk/types/chat_channel_update_params.py b/src/whop_sdk/types/chat_channel_update_params.py
similarity index 100%
rename from src/whopsdk/types/chat_channel_update_params.py
rename to src/whop_sdk/types/chat_channel_update_params.py
diff --git a/src/whopsdk/types/checkout_configuration_create_params.py b/src/whop_sdk/types/checkout_configuration_create_params.py
similarity index 100%
rename from src/whopsdk/types/checkout_configuration_create_params.py
rename to src/whop_sdk/types/checkout_configuration_create_params.py
diff --git a/src/whopsdk/types/checkout_configuration_list_params.py b/src/whop_sdk/types/checkout_configuration_list_params.py
similarity index 100%
rename from src/whopsdk/types/checkout_configuration_list_params.py
rename to src/whop_sdk/types/checkout_configuration_list_params.py
diff --git a/src/whopsdk/types/checkout_configuration_list_response.py b/src/whop_sdk/types/checkout_configuration_list_response.py
similarity index 100%
rename from src/whopsdk/types/checkout_configuration_list_response.py
rename to src/whop_sdk/types/checkout_configuration_list_response.py
diff --git a/src/whopsdk/types/course_lesson_interaction_list_params.py b/src/whop_sdk/types/course_lesson_interaction_list_params.py
similarity index 100%
rename from src/whopsdk/types/course_lesson_interaction_list_params.py
rename to src/whop_sdk/types/course_lesson_interaction_list_params.py
diff --git a/src/whopsdk/types/entry_approve_response.py b/src/whop_sdk/types/entry_approve_response.py
similarity index 100%
rename from src/whopsdk/types/entry_approve_response.py
rename to src/whop_sdk/types/entry_approve_response.py
diff --git a/src/whopsdk/types/entry_list_params.py b/src/whop_sdk/types/entry_list_params.py
similarity index 100%
rename from src/whopsdk/types/entry_list_params.py
rename to src/whop_sdk/types/entry_list_params.py
diff --git a/src/whopsdk/types/entry_list_response.py b/src/whop_sdk/types/entry_list_response.py
similarity index 100%
rename from src/whopsdk/types/entry_list_response.py
rename to src/whop_sdk/types/entry_list_response.py
diff --git a/src/whopsdk/types/experience_attach_params.py b/src/whop_sdk/types/experience_attach_params.py
similarity index 100%
rename from src/whopsdk/types/experience_attach_params.py
rename to src/whop_sdk/types/experience_attach_params.py
diff --git a/src/whopsdk/types/experience_create_params.py b/src/whop_sdk/types/experience_create_params.py
similarity index 100%
rename from src/whopsdk/types/experience_create_params.py
rename to src/whop_sdk/types/experience_create_params.py
diff --git a/src/whopsdk/types/experience_delete_response.py b/src/whop_sdk/types/experience_delete_response.py
similarity index 100%
rename from src/whopsdk/types/experience_delete_response.py
rename to src/whop_sdk/types/experience_delete_response.py
diff --git a/src/whopsdk/types/experience_detach_params.py b/src/whop_sdk/types/experience_detach_params.py
similarity index 100%
rename from src/whopsdk/types/experience_detach_params.py
rename to src/whop_sdk/types/experience_detach_params.py
diff --git a/src/whopsdk/types/experience_list_params.py b/src/whop_sdk/types/experience_list_params.py
similarity index 100%
rename from src/whopsdk/types/experience_list_params.py
rename to src/whop_sdk/types/experience_list_params.py
diff --git a/src/whopsdk/types/experience_list_response.py b/src/whop_sdk/types/experience_list_response.py
similarity index 100%
rename from src/whopsdk/types/experience_list_response.py
rename to src/whop_sdk/types/experience_list_response.py
diff --git a/src/whopsdk/types/experience_update_params.py b/src/whop_sdk/types/experience_update_params.py
similarity index 100%
rename from src/whopsdk/types/experience_update_params.py
rename to src/whop_sdk/types/experience_update_params.py
diff --git a/src/whopsdk/types/forum_post_create_params.py b/src/whop_sdk/types/forum_post_create_params.py
similarity index 100%
rename from src/whopsdk/types/forum_post_create_params.py
rename to src/whop_sdk/types/forum_post_create_params.py
diff --git a/src/whopsdk/types/forum_post_list_params.py b/src/whop_sdk/types/forum_post_list_params.py
similarity index 100%
rename from src/whopsdk/types/forum_post_list_params.py
rename to src/whop_sdk/types/forum_post_list_params.py
diff --git a/src/whopsdk/types/forum_post_list_response.py b/src/whop_sdk/types/forum_post_list_response.py
similarity index 100%
rename from src/whopsdk/types/forum_post_list_response.py
rename to src/whop_sdk/types/forum_post_list_response.py
diff --git a/src/whopsdk/types/invoice_create_params.py b/src/whop_sdk/types/invoice_create_params.py
similarity index 100%
rename from src/whopsdk/types/invoice_create_params.py
rename to src/whop_sdk/types/invoice_create_params.py
diff --git a/src/whopsdk/types/invoice_create_response.py b/src/whop_sdk/types/invoice_create_response.py
similarity index 100%
rename from src/whopsdk/types/invoice_create_response.py
rename to src/whop_sdk/types/invoice_create_response.py
diff --git a/src/whopsdk/types/invoice_created_webhook_event.py b/src/whop_sdk/types/invoice_created_webhook_event.py
similarity index 100%
rename from src/whopsdk/types/invoice_created_webhook_event.py
rename to src/whop_sdk/types/invoice_created_webhook_event.py
diff --git a/src/whopsdk/types/invoice_list_params.py b/src/whop_sdk/types/invoice_list_params.py
similarity index 100%
rename from src/whopsdk/types/invoice_list_params.py
rename to src/whop_sdk/types/invoice_list_params.py
diff --git a/src/whopsdk/types/invoice_paid_webhook_event.py b/src/whop_sdk/types/invoice_paid_webhook_event.py
similarity index 100%
rename from src/whopsdk/types/invoice_paid_webhook_event.py
rename to src/whop_sdk/types/invoice_paid_webhook_event.py
diff --git a/src/whopsdk/types/invoice_past_due_webhook_event.py b/src/whop_sdk/types/invoice_past_due_webhook_event.py
similarity index 100%
rename from src/whopsdk/types/invoice_past_due_webhook_event.py
rename to src/whop_sdk/types/invoice_past_due_webhook_event.py
diff --git a/src/whopsdk/types/invoice_void_response.py b/src/whop_sdk/types/invoice_void_response.py
similarity index 100%
rename from src/whopsdk/types/invoice_void_response.py
rename to src/whop_sdk/types/invoice_void_response.py
diff --git a/src/whopsdk/types/invoice_voided_webhook_event.py b/src/whop_sdk/types/invoice_voided_webhook_event.py
similarity index 100%
rename from src/whopsdk/types/invoice_voided_webhook_event.py
rename to src/whop_sdk/types/invoice_voided_webhook_event.py
diff --git a/src/whopsdk/types/ledger_account_retrieve_response.py b/src/whop_sdk/types/ledger_account_retrieve_response.py
similarity index 100%
rename from src/whopsdk/types/ledger_account_retrieve_response.py
rename to src/whop_sdk/types/ledger_account_retrieve_response.py
diff --git a/src/whopsdk/types/membership_cancel_params.py b/src/whop_sdk/types/membership_cancel_params.py
similarity index 100%
rename from src/whopsdk/types/membership_cancel_params.py
rename to src/whop_sdk/types/membership_cancel_params.py
diff --git a/src/whopsdk/types/membership_list_params.py b/src/whop_sdk/types/membership_list_params.py
similarity index 100%
rename from src/whopsdk/types/membership_list_params.py
rename to src/whop_sdk/types/membership_list_params.py
diff --git a/src/whopsdk/types/membership_list_response.py b/src/whop_sdk/types/membership_list_response.py
similarity index 100%
rename from src/whopsdk/types/membership_list_response.py
rename to src/whop_sdk/types/membership_list_response.py
diff --git a/src/whopsdk/types/membership_pause_params.py b/src/whop_sdk/types/membership_pause_params.py
similarity index 100%
rename from src/whopsdk/types/membership_pause_params.py
rename to src/whop_sdk/types/membership_pause_params.py
diff --git a/src/whopsdk/types/membership_update_params.py b/src/whop_sdk/types/membership_update_params.py
similarity index 100%
rename from src/whopsdk/types/membership_update_params.py
rename to src/whop_sdk/types/membership_update_params.py
diff --git a/src/whopsdk/types/message_create_params.py b/src/whop_sdk/types/message_create_params.py
similarity index 100%
rename from src/whopsdk/types/message_create_params.py
rename to src/whop_sdk/types/message_create_params.py
diff --git a/src/whopsdk/types/message_list_params.py b/src/whop_sdk/types/message_list_params.py
similarity index 100%
rename from src/whopsdk/types/message_list_params.py
rename to src/whop_sdk/types/message_list_params.py
diff --git a/src/whopsdk/types/message_list_response.py b/src/whop_sdk/types/message_list_response.py
similarity index 100%
rename from src/whopsdk/types/message_list_response.py
rename to src/whop_sdk/types/message_list_response.py
diff --git a/src/whopsdk/types/payment_list_params.py b/src/whop_sdk/types/payment_list_params.py
similarity index 100%
rename from src/whopsdk/types/payment_list_params.py
rename to src/whop_sdk/types/payment_list_params.py
diff --git a/src/whopsdk/types/payment_list_response.py b/src/whop_sdk/types/payment_list_response.py
similarity index 100%
rename from src/whopsdk/types/payment_list_response.py
rename to src/whop_sdk/types/payment_list_response.py
diff --git a/src/whopsdk/types/payment_refund_params.py b/src/whop_sdk/types/payment_refund_params.py
similarity index 100%
rename from src/whopsdk/types/payment_refund_params.py
rename to src/whop_sdk/types/payment_refund_params.py
diff --git a/src/whopsdk/types/plan_create_params.py b/src/whop_sdk/types/plan_create_params.py
similarity index 100%
rename from src/whopsdk/types/plan_create_params.py
rename to src/whop_sdk/types/plan_create_params.py
diff --git a/src/whopsdk/types/plan_delete_response.py b/src/whop_sdk/types/plan_delete_response.py
similarity index 100%
rename from src/whopsdk/types/plan_delete_response.py
rename to src/whop_sdk/types/plan_delete_response.py
diff --git a/src/whopsdk/types/plan_list_params.py b/src/whop_sdk/types/plan_list_params.py
similarity index 100%
rename from src/whopsdk/types/plan_list_params.py
rename to src/whop_sdk/types/plan_list_params.py
diff --git a/src/whopsdk/types/plan_list_response.py b/src/whop_sdk/types/plan_list_response.py
similarity index 100%
rename from src/whopsdk/types/plan_list_response.py
rename to src/whop_sdk/types/plan_list_response.py
diff --git a/src/whopsdk/types/plan_update_params.py b/src/whop_sdk/types/plan_update_params.py
similarity index 100%
rename from src/whopsdk/types/plan_update_params.py
rename to src/whop_sdk/types/plan_update_params.py
diff --git a/src/whopsdk/types/product_create_params.py b/src/whop_sdk/types/product_create_params.py
similarity index 100%
rename from src/whopsdk/types/product_create_params.py
rename to src/whop_sdk/types/product_create_params.py
diff --git a/src/whopsdk/types/product_delete_response.py b/src/whop_sdk/types/product_delete_response.py
similarity index 100%
rename from src/whopsdk/types/product_delete_response.py
rename to src/whop_sdk/types/product_delete_response.py
diff --git a/src/whopsdk/types/product_list_params.py b/src/whop_sdk/types/product_list_params.py
similarity index 100%
rename from src/whopsdk/types/product_list_params.py
rename to src/whop_sdk/types/product_list_params.py
diff --git a/src/whopsdk/types/product_update_params.py b/src/whop_sdk/types/product_update_params.py
similarity index 100%
rename from src/whopsdk/types/product_update_params.py
rename to src/whop_sdk/types/product_update_params.py
diff --git a/src/whopsdk/types/reaction_create_params.py b/src/whop_sdk/types/reaction_create_params.py
similarity index 100%
rename from src/whopsdk/types/reaction_create_params.py
rename to src/whop_sdk/types/reaction_create_params.py
diff --git a/src/whopsdk/types/reaction_list_params.py b/src/whop_sdk/types/reaction_list_params.py
similarity index 100%
rename from src/whopsdk/types/reaction_list_params.py
rename to src/whop_sdk/types/reaction_list_params.py
diff --git a/src/whopsdk/types/reaction_list_response.py b/src/whop_sdk/types/reaction_list_response.py
similarity index 100%
rename from src/whopsdk/types/reaction_list_response.py
rename to src/whop_sdk/types/reaction_list_response.py
diff --git a/src/whopsdk/types/shared/__init__.py b/src/whop_sdk/types/shared/__init__.py
similarity index 100%
rename from src/whopsdk/types/shared/__init__.py
rename to src/whop_sdk/types/shared/__init__.py
diff --git a/src/whopsdk/types/shared/access_pass_type.py b/src/whop_sdk/types/shared/access_pass_type.py
similarity index 100%
rename from src/whopsdk/types/shared/access_pass_type.py
rename to src/whop_sdk/types/shared/access_pass_type.py
diff --git a/src/whopsdk/types/shared/app.py b/src/whop_sdk/types/shared/app.py
similarity index 100%
rename from src/whopsdk/types/shared/app.py
rename to src/whop_sdk/types/shared/app.py
diff --git a/src/whopsdk/types/shared/app_build.py b/src/whop_sdk/types/shared/app_build.py
similarity index 100%
rename from src/whopsdk/types/shared/app_build.py
rename to src/whop_sdk/types/shared/app_build.py
diff --git a/src/whopsdk/types/shared/app_build_platforms.py b/src/whop_sdk/types/shared/app_build_platforms.py
similarity index 100%
rename from src/whopsdk/types/shared/app_build_platforms.py
rename to src/whop_sdk/types/shared/app_build_platforms.py
diff --git a/src/whopsdk/types/shared/app_build_statuses.py b/src/whop_sdk/types/shared/app_build_statuses.py
similarity index 100%
rename from src/whopsdk/types/shared/app_build_statuses.py
rename to src/whop_sdk/types/shared/app_build_statuses.py
diff --git a/src/whopsdk/types/shared/app_statuses.py b/src/whop_sdk/types/shared/app_statuses.py
similarity index 100%
rename from src/whopsdk/types/shared/app_statuses.py
rename to src/whop_sdk/types/shared/app_statuses.py
diff --git a/src/whopsdk/types/shared/app_view_type.py b/src/whop_sdk/types/shared/app_view_type.py
similarity index 100%
rename from src/whopsdk/types/shared/app_view_type.py
rename to src/whop_sdk/types/shared/app_view_type.py
diff --git a/src/whopsdk/types/shared/authorized_user_roles.py b/src/whop_sdk/types/shared/authorized_user_roles.py
similarity index 100%
rename from src/whopsdk/types/shared/authorized_user_roles.py
rename to src/whop_sdk/types/shared/authorized_user_roles.py
diff --git a/src/whopsdk/types/shared/business_types.py b/src/whop_sdk/types/shared/business_types.py
similarity index 100%
rename from src/whopsdk/types/shared/business_types.py
rename to src/whop_sdk/types/shared/business_types.py
diff --git a/src/whopsdk/types/shared/chat_channel.py b/src/whop_sdk/types/shared/chat_channel.py
similarity index 100%
rename from src/whopsdk/types/shared/chat_channel.py
rename to src/whop_sdk/types/shared/chat_channel.py
diff --git a/src/whopsdk/types/shared/checkout_configuration.py b/src/whop_sdk/types/shared/checkout_configuration.py
similarity index 100%
rename from src/whopsdk/types/shared/checkout_configuration.py
rename to src/whop_sdk/types/shared/checkout_configuration.py
diff --git a/src/whopsdk/types/shared/collection_method.py b/src/whop_sdk/types/shared/collection_method.py
similarity index 100%
rename from src/whopsdk/types/shared/collection_method.py
rename to src/whop_sdk/types/shared/collection_method.py
diff --git a/src/whopsdk/types/shared/company.py b/src/whop_sdk/types/shared/company.py
similarity index 100%
rename from src/whopsdk/types/shared/company.py
rename to src/whop_sdk/types/shared/company.py
diff --git a/src/whopsdk/types/shared/course_lesson_interaction.py b/src/whop_sdk/types/shared/course_lesson_interaction.py
similarity index 100%
rename from src/whopsdk/types/shared/course_lesson_interaction.py
rename to src/whop_sdk/types/shared/course_lesson_interaction.py
diff --git a/src/whopsdk/types/shared/course_lesson_interaction_list_item.py b/src/whop_sdk/types/shared/course_lesson_interaction_list_item.py
similarity index 100%
rename from src/whopsdk/types/shared/course_lesson_interaction_list_item.py
rename to src/whop_sdk/types/shared/course_lesson_interaction_list_item.py
diff --git a/src/whopsdk/types/shared/currency.py b/src/whop_sdk/types/shared/currency.py
similarity index 100%
rename from src/whopsdk/types/shared/currency.py
rename to src/whop_sdk/types/shared/currency.py
diff --git a/src/whopsdk/types/shared/custom_cta.py b/src/whop_sdk/types/shared/custom_cta.py
similarity index 100%
rename from src/whopsdk/types/shared/custom_cta.py
rename to src/whop_sdk/types/shared/custom_cta.py
diff --git a/src/whopsdk/types/shared/direction.py b/src/whop_sdk/types/shared/direction.py
similarity index 100%
rename from src/whopsdk/types/shared/direction.py
rename to src/whop_sdk/types/shared/direction.py
diff --git a/src/whopsdk/types/shared/dms_post_types.py b/src/whop_sdk/types/shared/dms_post_types.py
similarity index 100%
rename from src/whopsdk/types/shared/dms_post_types.py
rename to src/whop_sdk/types/shared/dms_post_types.py
diff --git a/src/whopsdk/types/shared/entry.py b/src/whop_sdk/types/shared/entry.py
similarity index 100%
rename from src/whopsdk/types/shared/entry.py
rename to src/whop_sdk/types/shared/entry.py
diff --git a/src/whopsdk/types/shared/entry_status.py b/src/whop_sdk/types/shared/entry_status.py
similarity index 100%
rename from src/whopsdk/types/shared/entry_status.py
rename to src/whop_sdk/types/shared/entry_status.py
diff --git a/src/whopsdk/types/shared/experience.py b/src/whop_sdk/types/shared/experience.py
similarity index 100%
rename from src/whopsdk/types/shared/experience.py
rename to src/whop_sdk/types/shared/experience.py
diff --git a/src/whopsdk/types/shared/forum_post.py b/src/whop_sdk/types/shared/forum_post.py
similarity index 100%
rename from src/whopsdk/types/shared/forum_post.py
rename to src/whop_sdk/types/shared/forum_post.py
diff --git a/src/whopsdk/types/shared/friendly_receipt_status.py b/src/whop_sdk/types/shared/friendly_receipt_status.py
similarity index 100%
rename from src/whopsdk/types/shared/friendly_receipt_status.py
rename to src/whop_sdk/types/shared/friendly_receipt_status.py
diff --git a/src/whopsdk/types/shared/global_affiliate_status.py b/src/whop_sdk/types/shared/global_affiliate_status.py
similarity index 100%
rename from src/whopsdk/types/shared/global_affiliate_status.py
rename to src/whop_sdk/types/shared/global_affiliate_status.py
diff --git a/src/whopsdk/types/shared/industry_types.py b/src/whop_sdk/types/shared/industry_types.py
similarity index 100%
rename from src/whopsdk/types/shared/industry_types.py
rename to src/whop_sdk/types/shared/industry_types.py
diff --git a/src/whopsdk/types/shared/invoice.py b/src/whop_sdk/types/shared/invoice.py
similarity index 100%
rename from src/whopsdk/types/shared/invoice.py
rename to src/whop_sdk/types/shared/invoice.py
diff --git a/src/whopsdk/types/shared/invoice_list_item.py b/src/whop_sdk/types/shared/invoice_list_item.py
similarity index 100%
rename from src/whopsdk/types/shared/invoice_list_item.py
rename to src/whop_sdk/types/shared/invoice_list_item.py
diff --git a/src/whopsdk/types/shared/invoice_status.py b/src/whop_sdk/types/shared/invoice_status.py
similarity index 100%
rename from src/whopsdk/types/shared/invoice_status.py
rename to src/whop_sdk/types/shared/invoice_status.py
diff --git a/src/whopsdk/types/shared/membership.py b/src/whop_sdk/types/shared/membership.py
similarity index 100%
rename from src/whopsdk/types/shared/membership.py
rename to src/whop_sdk/types/shared/membership.py
diff --git a/src/whopsdk/types/shared/membership_status.py b/src/whop_sdk/types/shared/membership_status.py
similarity index 100%
rename from src/whopsdk/types/shared/membership_status.py
rename to src/whop_sdk/types/shared/membership_status.py
diff --git a/src/whopsdk/types/shared/message.py b/src/whop_sdk/types/shared/message.py
similarity index 100%
rename from src/whopsdk/types/shared/message.py
rename to src/whop_sdk/types/shared/message.py
diff --git a/src/whopsdk/types/shared/page_info.py b/src/whop_sdk/types/shared/page_info.py
similarity index 100%
rename from src/whopsdk/types/shared/page_info.py
rename to src/whop_sdk/types/shared/page_info.py
diff --git a/src/whopsdk/types/shared/payment.py b/src/whop_sdk/types/shared/payment.py
similarity index 100%
rename from src/whopsdk/types/shared/payment.py
rename to src/whop_sdk/types/shared/payment.py
diff --git a/src/whopsdk/types/shared/plan.py b/src/whop_sdk/types/shared/plan.py
similarity index 100%
rename from src/whopsdk/types/shared/plan.py
rename to src/whop_sdk/types/shared/plan.py
diff --git a/src/whopsdk/types/shared/plan_type.py b/src/whop_sdk/types/shared/plan_type.py
similarity index 100%
rename from src/whopsdk/types/shared/plan_type.py
rename to src/whop_sdk/types/shared/plan_type.py
diff --git a/src/whopsdk/types/shared/product.py b/src/whop_sdk/types/shared/product.py
similarity index 100%
rename from src/whopsdk/types/shared/product.py
rename to src/whop_sdk/types/shared/product.py
diff --git a/src/whopsdk/types/shared/product_list_item.py b/src/whop_sdk/types/shared/product_list_item.py
similarity index 100%
rename from src/whopsdk/types/shared/product_list_item.py
rename to src/whop_sdk/types/shared/product_list_item.py
diff --git a/src/whopsdk/types/shared/promo_type.py b/src/whop_sdk/types/shared/promo_type.py
similarity index 100%
rename from src/whopsdk/types/shared/promo_type.py
rename to src/whop_sdk/types/shared/promo_type.py
diff --git a/src/whopsdk/types/shared/reaction.py b/src/whop_sdk/types/shared/reaction.py
similarity index 100%
rename from src/whopsdk/types/shared/reaction.py
rename to src/whop_sdk/types/shared/reaction.py
diff --git a/src/whopsdk/types/shared/receipt_status.py b/src/whop_sdk/types/shared/receipt_status.py
similarity index 100%
rename from src/whopsdk/types/shared/receipt_status.py
rename to src/whop_sdk/types/shared/receipt_status.py
diff --git a/src/whopsdk/types/shared/release_method.py b/src/whop_sdk/types/shared/release_method.py
similarity index 100%
rename from src/whopsdk/types/shared/release_method.py
rename to src/whop_sdk/types/shared/release_method.py
diff --git a/src/whopsdk/types/shared/shipment.py b/src/whop_sdk/types/shared/shipment.py
similarity index 100%
rename from src/whopsdk/types/shared/shipment.py
rename to src/whop_sdk/types/shared/shipment.py
diff --git a/src/whopsdk/types/shared/shipment_carrier.py b/src/whop_sdk/types/shared/shipment_carrier.py
similarity index 100%
rename from src/whopsdk/types/shared/shipment_carrier.py
rename to src/whop_sdk/types/shared/shipment_carrier.py
diff --git a/src/whopsdk/types/shared/shipment_status.py b/src/whop_sdk/types/shared/shipment_status.py
similarity index 100%
rename from src/whopsdk/types/shared/shipment_status.py
rename to src/whop_sdk/types/shared/shipment_status.py
diff --git a/src/whopsdk/types/shared/shipment_substatus.py b/src/whop_sdk/types/shared/shipment_substatus.py
similarity index 100%
rename from src/whopsdk/types/shared/shipment_substatus.py
rename to src/whop_sdk/types/shared/shipment_substatus.py
diff --git a/src/whopsdk/types/shared/support_channel.py b/src/whop_sdk/types/shared/support_channel.py
similarity index 100%
rename from src/whopsdk/types/shared/support_channel.py
rename to src/whop_sdk/types/shared/support_channel.py
diff --git a/src/whopsdk/types/shared/tax_type.py b/src/whop_sdk/types/shared/tax_type.py
similarity index 100%
rename from src/whopsdk/types/shared/tax_type.py
rename to src/whop_sdk/types/shared/tax_type.py
diff --git a/src/whopsdk/types/shared/transfer.py b/src/whop_sdk/types/shared/transfer.py
similarity index 100%
rename from src/whopsdk/types/shared/transfer.py
rename to src/whop_sdk/types/shared/transfer.py
diff --git a/src/whopsdk/types/shared/visibility.py b/src/whop_sdk/types/shared/visibility.py
similarity index 100%
rename from src/whopsdk/types/shared/visibility.py
rename to src/whop_sdk/types/shared/visibility.py
diff --git a/src/whopsdk/types/shared/visibility_filter.py b/src/whop_sdk/types/shared/visibility_filter.py
similarity index 100%
rename from src/whopsdk/types/shared/visibility_filter.py
rename to src/whop_sdk/types/shared/visibility_filter.py
diff --git a/src/whopsdk/types/shared/who_can_post.py b/src/whop_sdk/types/shared/who_can_post.py
similarity index 100%
rename from src/whopsdk/types/shared/who_can_post.py
rename to src/whop_sdk/types/shared/who_can_post.py
diff --git a/src/whopsdk/types/shared/who_can_react.py b/src/whop_sdk/types/shared/who_can_react.py
similarity index 100%
rename from src/whopsdk/types/shared/who_can_react.py
rename to src/whop_sdk/types/shared/who_can_react.py
diff --git a/src/whopsdk/types/shared_params/__init__.py b/src/whop_sdk/types/shared_params/__init__.py
similarity index 100%
rename from src/whopsdk/types/shared_params/__init__.py
rename to src/whop_sdk/types/shared_params/__init__.py
diff --git a/src/whopsdk/types/shared_params/access_pass_type.py b/src/whop_sdk/types/shared_params/access_pass_type.py
similarity index 100%
rename from src/whopsdk/types/shared_params/access_pass_type.py
rename to src/whop_sdk/types/shared_params/access_pass_type.py
diff --git a/src/whopsdk/types/shared_params/app_build_platforms.py b/src/whop_sdk/types/shared_params/app_build_platforms.py
similarity index 100%
rename from src/whopsdk/types/shared_params/app_build_platforms.py
rename to src/whop_sdk/types/shared_params/app_build_platforms.py
diff --git a/src/whopsdk/types/shared_params/app_build_statuses.py b/src/whop_sdk/types/shared_params/app_build_statuses.py
similarity index 100%
rename from src/whopsdk/types/shared_params/app_build_statuses.py
rename to src/whop_sdk/types/shared_params/app_build_statuses.py
diff --git a/src/whopsdk/types/shared_params/app_statuses.py b/src/whop_sdk/types/shared_params/app_statuses.py
similarity index 100%
rename from src/whopsdk/types/shared_params/app_statuses.py
rename to src/whop_sdk/types/shared_params/app_statuses.py
diff --git a/src/whopsdk/types/shared_params/app_view_type.py b/src/whop_sdk/types/shared_params/app_view_type.py
similarity index 100%
rename from src/whopsdk/types/shared_params/app_view_type.py
rename to src/whop_sdk/types/shared_params/app_view_type.py
diff --git a/src/whopsdk/types/shared_params/authorized_user_roles.py b/src/whop_sdk/types/shared_params/authorized_user_roles.py
similarity index 100%
rename from src/whopsdk/types/shared_params/authorized_user_roles.py
rename to src/whop_sdk/types/shared_params/authorized_user_roles.py
diff --git a/src/whopsdk/types/shared_params/business_types.py b/src/whop_sdk/types/shared_params/business_types.py
similarity index 100%
rename from src/whopsdk/types/shared_params/business_types.py
rename to src/whop_sdk/types/shared_params/business_types.py
diff --git a/src/whopsdk/types/shared_params/collection_method.py b/src/whop_sdk/types/shared_params/collection_method.py
similarity index 100%
rename from src/whopsdk/types/shared_params/collection_method.py
rename to src/whop_sdk/types/shared_params/collection_method.py
diff --git a/src/whopsdk/types/shared_params/currency.py b/src/whop_sdk/types/shared_params/currency.py
similarity index 100%
rename from src/whopsdk/types/shared_params/currency.py
rename to src/whop_sdk/types/shared_params/currency.py
diff --git a/src/whopsdk/types/shared_params/custom_cta.py b/src/whop_sdk/types/shared_params/custom_cta.py
similarity index 100%
rename from src/whopsdk/types/shared_params/custom_cta.py
rename to src/whop_sdk/types/shared_params/custom_cta.py
diff --git a/src/whopsdk/types/shared_params/direction.py b/src/whop_sdk/types/shared_params/direction.py
similarity index 100%
rename from src/whopsdk/types/shared_params/direction.py
rename to src/whop_sdk/types/shared_params/direction.py
diff --git a/src/whopsdk/types/shared_params/entry_status.py b/src/whop_sdk/types/shared_params/entry_status.py
similarity index 100%
rename from src/whopsdk/types/shared_params/entry_status.py
rename to src/whop_sdk/types/shared_params/entry_status.py
diff --git a/src/whopsdk/types/shared_params/friendly_receipt_status.py b/src/whop_sdk/types/shared_params/friendly_receipt_status.py
similarity index 100%
rename from src/whopsdk/types/shared_params/friendly_receipt_status.py
rename to src/whop_sdk/types/shared_params/friendly_receipt_status.py
diff --git a/src/whopsdk/types/shared_params/global_affiliate_status.py b/src/whop_sdk/types/shared_params/global_affiliate_status.py
similarity index 100%
rename from src/whopsdk/types/shared_params/global_affiliate_status.py
rename to src/whop_sdk/types/shared_params/global_affiliate_status.py
diff --git a/src/whopsdk/types/shared_params/industry_types.py b/src/whop_sdk/types/shared_params/industry_types.py
similarity index 100%
rename from src/whopsdk/types/shared_params/industry_types.py
rename to src/whop_sdk/types/shared_params/industry_types.py
diff --git a/src/whopsdk/types/shared_params/invoice_status.py b/src/whop_sdk/types/shared_params/invoice_status.py
similarity index 100%
rename from src/whopsdk/types/shared_params/invoice_status.py
rename to src/whop_sdk/types/shared_params/invoice_status.py
diff --git a/src/whopsdk/types/shared_params/membership_status.py b/src/whop_sdk/types/shared_params/membership_status.py
similarity index 100%
rename from src/whopsdk/types/shared_params/membership_status.py
rename to src/whop_sdk/types/shared_params/membership_status.py
diff --git a/src/whopsdk/types/shared_params/plan_type.py b/src/whop_sdk/types/shared_params/plan_type.py
similarity index 100%
rename from src/whopsdk/types/shared_params/plan_type.py
rename to src/whop_sdk/types/shared_params/plan_type.py
diff --git a/src/whopsdk/types/shared_params/receipt_status.py b/src/whop_sdk/types/shared_params/receipt_status.py
similarity index 100%
rename from src/whopsdk/types/shared_params/receipt_status.py
rename to src/whop_sdk/types/shared_params/receipt_status.py
diff --git a/src/whopsdk/types/shared_params/release_method.py b/src/whop_sdk/types/shared_params/release_method.py
similarity index 100%
rename from src/whopsdk/types/shared_params/release_method.py
rename to src/whop_sdk/types/shared_params/release_method.py
diff --git a/src/whopsdk/types/shared_params/tax_type.py b/src/whop_sdk/types/shared_params/tax_type.py
similarity index 100%
rename from src/whopsdk/types/shared_params/tax_type.py
rename to src/whop_sdk/types/shared_params/tax_type.py
diff --git a/src/whopsdk/types/shared_params/visibility.py b/src/whop_sdk/types/shared_params/visibility.py
similarity index 100%
rename from src/whopsdk/types/shared_params/visibility.py
rename to src/whop_sdk/types/shared_params/visibility.py
diff --git a/src/whopsdk/types/shared_params/visibility_filter.py b/src/whop_sdk/types/shared_params/visibility_filter.py
similarity index 100%
rename from src/whopsdk/types/shared_params/visibility_filter.py
rename to src/whop_sdk/types/shared_params/visibility_filter.py
diff --git a/src/whopsdk/types/shared_params/who_can_post.py b/src/whop_sdk/types/shared_params/who_can_post.py
similarity index 100%
rename from src/whopsdk/types/shared_params/who_can_post.py
rename to src/whop_sdk/types/shared_params/who_can_post.py
diff --git a/src/whopsdk/types/shared_params/who_can_react.py b/src/whop_sdk/types/shared_params/who_can_react.py
similarity index 100%
rename from src/whopsdk/types/shared_params/who_can_react.py
rename to src/whop_sdk/types/shared_params/who_can_react.py
diff --git a/src/whopsdk/types/shipment_create_params.py b/src/whop_sdk/types/shipment_create_params.py
similarity index 100%
rename from src/whopsdk/types/shipment_create_params.py
rename to src/whop_sdk/types/shipment_create_params.py
diff --git a/src/whopsdk/types/shipment_list_params.py b/src/whop_sdk/types/shipment_list_params.py
similarity index 100%
rename from src/whopsdk/types/shipment_list_params.py
rename to src/whop_sdk/types/shipment_list_params.py
diff --git a/src/whopsdk/types/shipment_list_response.py b/src/whop_sdk/types/shipment_list_response.py
similarity index 100%
rename from src/whopsdk/types/shipment_list_response.py
rename to src/whop_sdk/types/shipment_list_response.py
diff --git a/src/whopsdk/types/support_channel_create_params.py b/src/whop_sdk/types/support_channel_create_params.py
similarity index 100%
rename from src/whopsdk/types/support_channel_create_params.py
rename to src/whop_sdk/types/support_channel_create_params.py
diff --git a/src/whopsdk/types/support_channel_list_params.py b/src/whop_sdk/types/support_channel_list_params.py
similarity index 100%
rename from src/whopsdk/types/support_channel_list_params.py
rename to src/whop_sdk/types/support_channel_list_params.py
diff --git a/src/whopsdk/types/support_channel_list_response.py b/src/whop_sdk/types/support_channel_list_response.py
similarity index 100%
rename from src/whopsdk/types/support_channel_list_response.py
rename to src/whop_sdk/types/support_channel_list_response.py
diff --git a/src/whopsdk/types/transfer_create_params.py b/src/whop_sdk/types/transfer_create_params.py
similarity index 100%
rename from src/whopsdk/types/transfer_create_params.py
rename to src/whop_sdk/types/transfer_create_params.py
diff --git a/src/whopsdk/types/transfer_list_params.py b/src/whop_sdk/types/transfer_list_params.py
similarity index 100%
rename from src/whopsdk/types/transfer_list_params.py
rename to src/whop_sdk/types/transfer_list_params.py
diff --git a/src/whopsdk/types/transfer_list_response.py b/src/whop_sdk/types/transfer_list_response.py
similarity index 100%
rename from src/whopsdk/types/transfer_list_response.py
rename to src/whop_sdk/types/transfer_list_response.py
diff --git a/src/whopsdk/types/unwrap_webhook_event.py b/src/whop_sdk/types/unwrap_webhook_event.py
similarity index 100%
rename from src/whopsdk/types/unwrap_webhook_event.py
rename to src/whop_sdk/types/unwrap_webhook_event.py
diff --git a/src/whopsdk/types/user_check_access_response.py b/src/whop_sdk/types/user_check_access_response.py
similarity index 100%
rename from src/whopsdk/types/user_check_access_response.py
rename to src/whop_sdk/types/user_check_access_response.py
diff --git a/src/whopsdk/types/user_retrieve_response.py b/src/whop_sdk/types/user_retrieve_response.py
similarity index 100%
rename from src/whopsdk/types/user_retrieve_response.py
rename to src/whop_sdk/types/user_retrieve_response.py
diff --git a/tests/api_resources/test_app_builds.py b/tests/api_resources/test_app_builds.py
index c4e23886..ebf289c7 100644
--- a/tests/api_resources/test_app_builds.py
+++ b/tests/api_resources/test_app_builds.py
@@ -7,11 +7,11 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import AppBuildListResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import AppBuild
+from whop_sdk.types import AppBuildListResponse
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import AppBuild
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_apps.py b/tests/api_resources/test_apps.py
index f8a572c8..0e52d0b8 100644
--- a/tests/api_resources/test_apps.py
+++ b/tests/api_resources/test_apps.py
@@ -7,11 +7,11 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import AppListResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import App
+from whop_sdk.types import AppListResponse
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import App
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_authorized_users.py b/tests/api_resources/test_authorized_users.py
index 454da177..179cab59 100644
--- a/tests/api_resources/test_authorized_users.py
+++ b/tests/api_resources/test_authorized_users.py
@@ -7,13 +7,13 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import (
+from whop_sdk.types import (
AuthorizedUserListResponse,
AuthorizedUserRetrieveResponse,
)
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_chat_channels.py b/tests/api_resources/test_chat_channels.py
index 6243042c..5b9e217f 100644
--- a/tests/api_resources/test_chat_channels.py
+++ b/tests/api_resources/test_chat_channels.py
@@ -7,11 +7,11 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import ChatChannelListResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import ChatChannel
+from whop_sdk.types import ChatChannelListResponse
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import ChatChannel
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_checkout_configurations.py b/tests/api_resources/test_checkout_configurations.py
index 0918ecdb..13ad6753 100644
--- a/tests/api_resources/test_checkout_configurations.py
+++ b/tests/api_resources/test_checkout_configurations.py
@@ -7,13 +7,13 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import (
+from whop_sdk.types import (
CheckoutConfigurationListResponse,
)
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import CheckoutConfiguration
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import CheckoutConfiguration
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_companies.py b/tests/api_resources/test_companies.py
index 495fb383..f6e41974 100644
--- a/tests/api_resources/test_companies.py
+++ b/tests/api_resources/test_companies.py
@@ -7,9 +7,9 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types.shared import Company
+from whop_sdk.types.shared import Company
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_course_lesson_interactions.py b/tests/api_resources/test_course_lesson_interactions.py
index 9394c582..f5025c1c 100644
--- a/tests/api_resources/test_course_lesson_interactions.py
+++ b/tests/api_resources/test_course_lesson_interactions.py
@@ -7,10 +7,10 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import CourseLessonInteraction, CourseLessonInteractionListItem
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import CourseLessonInteraction, CourseLessonInteractionListItem
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_entries.py b/tests/api_resources/test_entries.py
index 73f19da5..3d549c16 100644
--- a/tests/api_resources/test_entries.py
+++ b/tests/api_resources/test_entries.py
@@ -7,11 +7,11 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import EntryListResponse, EntryApproveResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Entry
+from whop_sdk.types import EntryListResponse, EntryApproveResponse
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Entry
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_experiences.py b/tests/api_resources/test_experiences.py
index 7579b714..9112113c 100644
--- a/tests/api_resources/test_experiences.py
+++ b/tests/api_resources/test_experiences.py
@@ -7,14 +7,14 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import (
+from whop_sdk.types import (
ExperienceListResponse,
ExperienceDeleteResponse,
)
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Experience
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Experience
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_forum_posts.py b/tests/api_resources/test_forum_posts.py
index ee2a3b95..9487c0de 100644
--- a/tests/api_resources/test_forum_posts.py
+++ b/tests/api_resources/test_forum_posts.py
@@ -7,11 +7,11 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import ForumPostListResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import ForumPost
+from whop_sdk.types import ForumPostListResponse
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import ForumPost
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_invoices.py b/tests/api_resources/test_invoices.py
index b117dd25..ab6c3c7c 100644
--- a/tests/api_resources/test_invoices.py
+++ b/tests/api_resources/test_invoices.py
@@ -7,12 +7,15 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import InvoiceVoidResponse, InvoiceCreateResponse
-from whopsdk._utils import parse_datetime
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Invoice, InvoiceListItem
+from whop_sdk.types import (
+ InvoiceVoidResponse,
+ InvoiceCreateResponse,
+)
+from whop_sdk._utils import parse_datetime
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Invoice, InvoiceListItem
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_ledger_accounts.py b/tests/api_resources/test_ledger_accounts.py
index 6dfd4ae2..036a3034 100644
--- a/tests/api_resources/test_ledger_accounts.py
+++ b/tests/api_resources/test_ledger_accounts.py
@@ -7,9 +7,9 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import LedgerAccountRetrieveResponse
+from whop_sdk.types import LedgerAccountRetrieveResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_memberships.py b/tests/api_resources/test_memberships.py
index 8be7ce6a..f0edf0ab 100644
--- a/tests/api_resources/test_memberships.py
+++ b/tests/api_resources/test_memberships.py
@@ -7,14 +7,14 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import (
+from whop_sdk.types import (
MembershipListResponse,
)
-from whopsdk._utils import parse_datetime
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Membership
+from whop_sdk._utils import parse_datetime
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Membership
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_messages.py b/tests/api_resources/test_messages.py
index f771eb7a..4e79462c 100644
--- a/tests/api_resources/test_messages.py
+++ b/tests/api_resources/test_messages.py
@@ -7,11 +7,11 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import MessageListResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Message
+from whop_sdk.types import MessageListResponse
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Message
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_payments.py b/tests/api_resources/test_payments.py
index a25e86d2..3ad24582 100644
--- a/tests/api_resources/test_payments.py
+++ b/tests/api_resources/test_payments.py
@@ -7,12 +7,12 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import PaymentListResponse
-from whopsdk._utils import parse_datetime
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Payment
+from whop_sdk.types import PaymentListResponse
+from whop_sdk._utils import parse_datetime
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Payment
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_plans.py b/tests/api_resources/test_plans.py
index 7f91a249..b86a579f 100644
--- a/tests/api_resources/test_plans.py
+++ b/tests/api_resources/test_plans.py
@@ -7,14 +7,14 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import (
+from whop_sdk.types import (
PlanListResponse,
PlanDeleteResponse,
)
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Plan
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Plan
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_products.py b/tests/api_resources/test_products.py
index 52b7dc7e..2d66be66 100644
--- a/tests/api_resources/test_products.py
+++ b/tests/api_resources/test_products.py
@@ -7,13 +7,13 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import (
+from whop_sdk.types import (
ProductDeleteResponse,
)
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Product, ProductListItem
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Product, ProductListItem
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_reactions.py b/tests/api_resources/test_reactions.py
index 2286cccb..68b5b427 100644
--- a/tests/api_resources/test_reactions.py
+++ b/tests/api_resources/test_reactions.py
@@ -7,11 +7,11 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import ReactionListResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Reaction
+from whop_sdk.types import ReactionListResponse
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Reaction
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_shipments.py b/tests/api_resources/test_shipments.py
index 948593e8..41d72dbb 100644
--- a/tests/api_resources/test_shipments.py
+++ b/tests/api_resources/test_shipments.py
@@ -7,11 +7,11 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import ShipmentListResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Shipment
+from whop_sdk.types import ShipmentListResponse
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Shipment
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_support_channels.py b/tests/api_resources/test_support_channels.py
index bc89ed62..d449fdb0 100644
--- a/tests/api_resources/test_support_channels.py
+++ b/tests/api_resources/test_support_channels.py
@@ -7,11 +7,13 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import SupportChannelListResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import SupportChannel
+from whop_sdk.types import (
+ SupportChannelListResponse,
+)
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import SupportChannel
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_transfers.py b/tests/api_resources/test_transfers.py
index d50aaa8f..5afce84f 100644
--- a/tests/api_resources/test_transfers.py
+++ b/tests/api_resources/test_transfers.py
@@ -7,11 +7,11 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import TransferListResponse
-from whopsdk.pagination import SyncCursorPage, AsyncCursorPage
-from whopsdk.types.shared import Transfer
+from whop_sdk.types import TransferListResponse
+from whop_sdk.pagination import SyncCursorPage, AsyncCursorPage
+from whop_sdk.types.shared import Transfer
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_users.py b/tests/api_resources/test_users.py
index dc0b13eb..924e77f6 100644
--- a/tests/api_resources/test_users.py
+++ b/tests/api_resources/test_users.py
@@ -7,9 +7,9 @@
import pytest
-from whopsdk import Whop, AsyncWhop
+from whop_sdk import Whop, AsyncWhop
from tests.utils import assert_matches_type
-from whopsdk.types import UserRetrieveResponse, UserCheckAccessResponse
+from whop_sdk.types import UserRetrieveResponse, UserCheckAccessResponse
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/api_resources/test_webhooks.py b/tests/api_resources/test_webhooks.py
index 2738aa36..deebdece 100644
--- a/tests/api_resources/test_webhooks.py
+++ b/tests/api_resources/test_webhooks.py
@@ -8,7 +8,7 @@
import pytest
import standardwebhooks
-from whopsdk import Whop
+from whop_sdk import Whop
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
diff --git a/tests/conftest.py b/tests/conftest.py
index 00e86398..b2907519 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -10,15 +10,15 @@
import pytest
from pytest_asyncio import is_async_test
-from whopsdk import Whop, AsyncWhop, DefaultAioHttpClient
-from whopsdk._utils import is_dict
+from whop_sdk import Whop, AsyncWhop, DefaultAioHttpClient
+from whop_sdk._utils import is_dict
if TYPE_CHECKING:
from _pytest.fixtures import FixtureRequest # pyright: ignore[reportPrivateImportUsage]
pytest.register_assert_rewrite("tests.utils")
-logging.getLogger("whopsdk").setLevel(logging.DEBUG)
+logging.getLogger("whop_sdk").setLevel(logging.DEBUG)
# automatically add `pytest.mark.asyncio()` to all of our async tests
diff --git a/tests/test_client.py b/tests/test_client.py
index 08c528b7..70ee7fd0 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -18,12 +18,12 @@
from respx import MockRouter
from pydantic import ValidationError
-from whopsdk import Whop, AsyncWhop, APIResponseValidationError
-from whopsdk._types import Omit
-from whopsdk._utils import asyncify
-from whopsdk._models import BaseModel, FinalRequestOptions
-from whopsdk._exceptions import WhopError, APIStatusError, APIResponseValidationError
-from whopsdk._base_client import (
+from whop_sdk import Whop, AsyncWhop, APIResponseValidationError
+from whop_sdk._types import Omit
+from whop_sdk._utils import asyncify
+from whop_sdk._models import BaseModel, FinalRequestOptions
+from whop_sdk._exceptions import WhopError, APIStatusError, APIResponseValidationError
+from whop_sdk._base_client import (
DEFAULT_TIMEOUT,
HTTPX_DEFAULT_TIMEOUT,
BaseClient,
@@ -237,10 +237,10 @@ def add_leak(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.Statistic
# to_raw_response_wrapper leaks through the @functools.wraps() decorator.
#
# removing the decorator fixes the leak for reasons we don't understand.
- "whopsdk/_legacy_response.py",
- "whopsdk/_response.py",
+ "whop_sdk/_legacy_response.py",
+ "whop_sdk/_response.py",
# pydantic.BaseModel.model_dump || pydantic.BaseModel.dict leak memory for some reason.
- "whopsdk/_compat.py",
+ "whop_sdk/_compat.py",
# Standard library leaks we don't care about.
"/logging/__init__.py",
]
@@ -769,7 +769,7 @@ def test_parse_retry_after_header(self, remaining_retries: int, retry_after: str
assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("whopsdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("whop_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
@pytest.mark.parametrize("failure_mode", ["status", "exception"])
def test_retries_taken(
@@ -800,7 +800,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("whopsdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("whop_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
def test_omit_retry_count_header(self, client: Whop, failures_before_success: int, respx_mock: MockRouter) -> None:
client = client.with_options(max_retries=4)
@@ -823,7 +823,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("whopsdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("whop_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
def test_overwrite_retry_count_header(
self, client: Whop, failures_before_success: int, respx_mock: MockRouter
@@ -1085,10 +1085,10 @@ def add_leak(leaks: list[tracemalloc.StatisticDiff], diff: tracemalloc.Statistic
# to_raw_response_wrapper leaks through the @functools.wraps() decorator.
#
# removing the decorator fixes the leak for reasons we don't understand.
- "whopsdk/_legacy_response.py",
- "whopsdk/_response.py",
+ "whop_sdk/_legacy_response.py",
+ "whop_sdk/_response.py",
# pydantic.BaseModel.model_dump || pydantic.BaseModel.dict leak memory for some reason.
- "whopsdk/_compat.py",
+ "whop_sdk/_compat.py",
# Standard library leaks we don't care about.
"/logging/__init__.py",
]
@@ -1621,7 +1621,7 @@ async def test_parse_retry_after_header(self, remaining_retries: int, retry_afte
assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("whopsdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("whop_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
@pytest.mark.asyncio
@pytest.mark.parametrize("failure_mode", ["status", "exception"])
@@ -1653,7 +1653,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
assert int(response.http_request.headers.get("x-stainless-retry-count")) == failures_before_success
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("whopsdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("whop_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
@pytest.mark.asyncio
async def test_omit_retry_count_header(
@@ -1679,7 +1679,7 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
assert len(response.http_request.headers.get_list("x-stainless-retry-count")) == 0
@pytest.mark.parametrize("failures_before_success", [0, 2, 4])
- @mock.patch("whopsdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
+ @mock.patch("whop_sdk._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
@pytest.mark.respx(base_url=base_url)
@pytest.mark.asyncio
async def test_overwrite_retry_count_header(
diff --git a/tests/test_deepcopy.py b/tests/test_deepcopy.py
index b627ef27..4fd36e32 100644
--- a/tests/test_deepcopy.py
+++ b/tests/test_deepcopy.py
@@ -1,4 +1,4 @@
-from whopsdk._utils import deepcopy_minimal
+from whop_sdk._utils import deepcopy_minimal
def assert_different_identities(obj1: object, obj2: object) -> None:
diff --git a/tests/test_extract_files.py b/tests/test_extract_files.py
index 350c2613..a737e4c4 100644
--- a/tests/test_extract_files.py
+++ b/tests/test_extract_files.py
@@ -4,8 +4,8 @@
import pytest
-from whopsdk._types import FileTypes
-from whopsdk._utils import extract_files
+from whop_sdk._types import FileTypes
+from whop_sdk._utils import extract_files
def test_removes_files_from_input() -> None:
diff --git a/tests/test_files.py b/tests/test_files.py
index 7143286b..eb04a93b 100644
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -4,7 +4,7 @@
import pytest
from dirty_equals import IsDict, IsList, IsBytes, IsTuple
-from whopsdk._files import to_httpx_files, async_to_httpx_files
+from whop_sdk._files import to_httpx_files, async_to_httpx_files
readme_path = Path(__file__).parent.parent.joinpath("README.md")
diff --git a/tests/test_models.py b/tests/test_models.py
index 37dce791..982f9b81 100644
--- a/tests/test_models.py
+++ b/tests/test_models.py
@@ -7,9 +7,9 @@
import pydantic
from pydantic import Field
-from whopsdk._utils import PropertyInfo
-from whopsdk._compat import PYDANTIC_V1, parse_obj, model_dump, model_json
-from whopsdk._models import BaseModel, construct_type
+from whop_sdk._utils import PropertyInfo
+from whop_sdk._compat import PYDANTIC_V1, parse_obj, model_dump, model_json
+from whop_sdk._models import BaseModel, construct_type
class BasicModel(BaseModel):
diff --git a/tests/test_qs.py b/tests/test_qs.py
index ed94ddb8..72377037 100644
--- a/tests/test_qs.py
+++ b/tests/test_qs.py
@@ -4,7 +4,7 @@
import pytest
-from whopsdk._qs import Querystring, stringify
+from whop_sdk._qs import Querystring, stringify
def test_empty() -> None:
diff --git a/tests/test_required_args.py b/tests/test_required_args.py
index ddd59ecc..6f850cf6 100644
--- a/tests/test_required_args.py
+++ b/tests/test_required_args.py
@@ -2,7 +2,7 @@
import pytest
-from whopsdk._utils import required_args
+from whop_sdk._utils import required_args
def test_too_many_positional_params() -> None:
diff --git a/tests/test_response.py b/tests/test_response.py
index aa15cb1e..028c6a20 100644
--- a/tests/test_response.py
+++ b/tests/test_response.py
@@ -6,8 +6,8 @@
import pytest
import pydantic
-from whopsdk import Whop, AsyncWhop, BaseModel
-from whopsdk._response import (
+from whop_sdk import Whop, AsyncWhop, BaseModel
+from whop_sdk._response import (
APIResponse,
BaseAPIResponse,
AsyncAPIResponse,
@@ -15,8 +15,8 @@
AsyncBinaryAPIResponse,
extract_response_type,
)
-from whopsdk._streaming import Stream
-from whopsdk._base_client import FinalRequestOptions
+from whop_sdk._streaming import Stream
+from whop_sdk._base_client import FinalRequestOptions
class ConcreteBaseAPIResponse(APIResponse[bytes]): ...
@@ -37,7 +37,7 @@ def test_extract_response_type_direct_classes() -> None:
def test_extract_response_type_direct_class_missing_type_arg() -> None:
with pytest.raises(
RuntimeError,
- match="Expected type to have a type argument at index 0 but it did not",
+ match="Expected type to have a type argument at index 0 but it did not",
):
extract_response_type(AsyncAPIResponse)
@@ -68,7 +68,7 @@ def test_response_parse_mismatched_basemodel(client: Whop) -> None:
with pytest.raises(
TypeError,
- match="Pydantic models must subclass our base model type, e.g. `from whopsdk import BaseModel`",
+ match="Pydantic models must subclass our base model type, e.g. `from whop_sdk import BaseModel`",
):
response.parse(to=PydanticModel)
@@ -86,7 +86,7 @@ async def test_async_response_parse_mismatched_basemodel(async_client: AsyncWhop
with pytest.raises(
TypeError,
- match="Pydantic models must subclass our base model type, e.g. `from whopsdk import BaseModel`",
+ match="Pydantic models must subclass our base model type, e.g. `from whop_sdk import BaseModel`",
):
await response.parse(to=PydanticModel)
diff --git a/tests/test_streaming.py b/tests/test_streaming.py
index b56d9da8..9eeb70f9 100644
--- a/tests/test_streaming.py
+++ b/tests/test_streaming.py
@@ -5,8 +5,8 @@
import httpx
import pytest
-from whopsdk import Whop, AsyncWhop
-from whopsdk._streaming import Stream, AsyncStream, ServerSentEvent
+from whop_sdk import Whop, AsyncWhop
+from whop_sdk._streaming import Stream, AsyncStream, ServerSentEvent
@pytest.mark.asyncio
diff --git a/tests/test_transform.py b/tests/test_transform.py
index a201cd06..388f2f17 100644
--- a/tests/test_transform.py
+++ b/tests/test_transform.py
@@ -8,15 +8,15 @@
import pytest
-from whopsdk._types import Base64FileInput, omit, not_given
-from whopsdk._utils import (
+from whop_sdk._types import Base64FileInput, omit, not_given
+from whop_sdk._utils import (
PropertyInfo,
transform as _transform,
parse_datetime,
async_transform as _async_transform,
)
-from whopsdk._compat import PYDANTIC_V1
-from whopsdk._models import BaseModel
+from whop_sdk._compat import PYDANTIC_V1
+from whop_sdk._models import BaseModel
_T = TypeVar("_T")
diff --git a/tests/test_utils/test_datetime_parse.py b/tests/test_utils/test_datetime_parse.py
index 62b1064e..be05afd1 100644
--- a/tests/test_utils/test_datetime_parse.py
+++ b/tests/test_utils/test_datetime_parse.py
@@ -8,7 +8,7 @@
import pytest
-from whopsdk._utils import parse_date, parse_datetime
+from whop_sdk._utils import parse_date, parse_datetime
def create_tz(minutes: int) -> timezone:
diff --git a/tests/test_utils/test_proxy.py b/tests/test_utils/test_proxy.py
index b42ccaa6..e920bc5e 100644
--- a/tests/test_utils/test_proxy.py
+++ b/tests/test_utils/test_proxy.py
@@ -2,7 +2,7 @@
from typing import Any
from typing_extensions import override
-from whopsdk._utils import LazyProxy
+from whop_sdk._utils import LazyProxy
class RecursiveLazyProxy(LazyProxy[Any]):
diff --git a/tests/test_utils/test_typing.py b/tests/test_utils/test_typing.py
index 1a902834..d88b700d 100644
--- a/tests/test_utils/test_typing.py
+++ b/tests/test_utils/test_typing.py
@@ -2,7 +2,7 @@
from typing import Generic, TypeVar, cast
-from whopsdk._utils import extract_type_var_from_base
+from whop_sdk._utils import extract_type_var_from_base
_T = TypeVar("_T")
_T2 = TypeVar("_T2")
diff --git a/tests/utils.py b/tests/utils.py
index 95b18665..f279898c 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -8,8 +8,8 @@
from datetime import date, datetime
from typing_extensions import Literal, get_args, get_origin, assert_type
-from whopsdk._types import Omit, NoneType
-from whopsdk._utils import (
+from whop_sdk._types import Omit, NoneType
+from whop_sdk._utils import (
is_dict,
is_list,
is_list_type,
@@ -19,8 +19,8 @@
is_annotated_type,
is_type_alias_type,
)
-from whopsdk._compat import PYDANTIC_V1, field_outer_type, get_model_fields
-from whopsdk._models import BaseModel
+from whop_sdk._compat import PYDANTIC_V1, field_outer_type, get_model_fields
+from whop_sdk._models import BaseModel
BaseModelT = TypeVar("BaseModelT", bound=BaseModel)