Skip to content

Commit

Permalink
Merge pull request #2 from apideck-libraries/samz/change-package-name
Browse files Browse the repository at this point in the history
feat: change package name
  • Loading branch information
Amzani authored Nov 29, 2024
2 parents dec670b + 133da0a commit b0f8f07
Show file tree
Hide file tree
Showing 975 changed files with 4,607 additions and 15,317 deletions.
1,767 changes: 884 additions & 883 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
python:
version: 0.1.1
version: 0.1.5
additionalDependencies:
dev: {}
main: {}
Expand Down
17 changes: 10 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.448.2
sources:
apideck-OAS:
sourceNamespace: apideck-oas
sourceRevisionDigest: sha256:569a82033cf13c3baadece5dceb86b172779135524f7fe4eb27f793ec8298183
sourceBlobDigest: sha256:b6b8a8a94b070fcbb65739c646056e11cd2b47031888af5348c130db4f68251d
sourceRevisionDigest: sha256:8760de187808d31230db0f311e0a640f3276d46214df14735496d94c59315845
sourceBlobDigest: sha256:e6b097d93e10ba4eaa9f98c4162a12d4d7a26787874d6eb398bc81162530b08e
tags:
- latest
- 10.8.1
targets:
apideck:
source: apideck-OAS
sourceNamespace: apideck-oas
sourceRevisionDigest: sha256:569a82033cf13c3baadece5dceb86b172779135524f7fe4eb27f793ec8298183
sourceBlobDigest: sha256:b6b8a8a94b070fcbb65739c646056e11cd2b47031888af5348c130db4f68251d
codeSamplesNamespace: apideck-oas-code-samples
codeSamplesRevisionDigest: sha256:e9aa5570c99dcbed4a67653ae28c9340f2e1ce38c1ad899ee53f6cf5aad05a91
sourceRevisionDigest: sha256:8760de187808d31230db0f311e0a640f3276d46214df14735496d94c59315845
sourceBlobDigest: sha256:e6b097d93e10ba4eaa9f98c4162a12d4d7a26787874d6eb398bc81162530b08e
codeSamplesNamespace: apideck-oas-python-code-samples
codeSamplesRevisionDigest: sha256:fe552c5fa53459c24c878021a60e2dcb7fa5c2a7a09522d872f06ae3e009bfad
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -28,7 +28,10 @@ workflow:
apideck:
target: python
source: apideck-OAS
publish:
pypi:
token: $pypi_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck-oas-code-samples
location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck-oas-python-code-samples
blocking: false
2 changes: 1 addition & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ targets:
token: $pypi_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck-oas-code-samples
location: registry.speakeasyapi.dev/apideck-k2o/apideck/apideck-oas-python-code-samples
blocking: false
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ The SDK can be installed with either *pip* or *poetry* package managers.
*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.

```bash
pip install git+<UNSET>.git
pip install apideck-unify
```

### Poetry

*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.

```bash
poetry add git+<UNSET>.git
poetry add apideck-unify
```
<!-- End SDK Installation [installation] -->

Expand All @@ -81,7 +81,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u

```python
# Synchronous Example
from apideck import Apideck
from apideck_unify import Apideck
import os

with Apideck(
Expand Down Expand Up @@ -114,7 +114,7 @@ with Apideck(
The same SDK client can also be used to make asychronous requests by importing asyncio.
```python
# Asynchronous Example
from apideck import Apideck
from apideck_unify import Apideck
import asyncio
import os

Expand Down Expand Up @@ -681,8 +681,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an

To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
```python
from apideck import Apideck
from apideck.utils import BackoffStrategy, RetryConfig
from apideck_unify import Apideck
import os

with Apideck(
Expand Down Expand Up @@ -714,8 +714,8 @@ with Apideck(

If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
```python
from apideck import Apideck
from apideck.utils import BackoffStrategy, RetryConfig
from apideck_unify import Apideck
import os

with Apideck(
Expand Down Expand Up @@ -774,7 +774,7 @@ When custom error responses are specified for an operation, the SDK may also rai
### Example

```python
from apideck import Apideck, models
from apideck_unify import Apideck, models
import os

with Apideck(
Expand Down Expand Up @@ -831,7 +831,7 @@ with Apideck(

The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
```python
from apideck import Apideck
from apideck_unify import Apideck
import os

with Apideck(
Expand Down Expand Up @@ -865,7 +865,7 @@ with Apideck(

The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example:
```python
from apideck import Apideck
from apideck_unify import Apideck
import os

with Apideck(
Expand Down Expand Up @@ -919,7 +919,7 @@ This allows you to wrap the client with your own custom logic, such as adding cu

For example, you could specify a header for every request that this sdk makes as follows:
```python
from apideck import Apideck
from apideck_unify import Apideck
import httpx

http_client = httpx.Client(headers={"x-custom-header": "someValue"})
Expand All @@ -928,8 +928,8 @@ s = Apideck(client=http_client)

or you could wrap the client with your own custom logic:
```python
from apideck import Apideck
from apideck.httpclient import AsyncHttpClient
from apideck_unify import Apideck
from apideck_unify.httpclient import AsyncHttpClient
import httpx

class CustomClient(AsyncHttpClient):
Expand Down Expand Up @@ -1004,7 +1004,7 @@ This SDK supports the following security scheme globally:

To authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example:
```python
from apideck import Apideck
from apideck_unify import Apideck
import os

with Apideck(
Expand Down Expand Up @@ -1041,11 +1041,11 @@ You can setup your SDK to emit debug logs for SDK requests and responses.

You can pass your own logger class directly into your SDK.
```python
from apideck import Apideck
from apideck_unify import Apideck
import logging

logging.basicConfig(level=logging.DEBUG)
s = Apideck(debug_logger=logging.getLogger("apideck"))
s = Apideck(debug_logger=logging.getLogger("apideck_unify"))
```

You can also enable a default debug logger by setting an environment variable `APIDECK_DEBUG` to true.
Expand Down
4 changes: 2 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- Start SDK Example Usage [usage] -->
```python
# Synchronous Example
from apideck import Apideck
from apideck_unify import Apideck
import os

with Apideck(
Expand Down Expand Up @@ -34,7 +34,7 @@ with Apideck(
The same SDK client can also be used to make asychronous requests by importing asyncio.
```python
# Asynchronous Example
from apideck import Apideck
from apideck_unify import Apideck
import asyncio
import os

Expand Down
36 changes: 18 additions & 18 deletions docs/sdks/activities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ List activities
### Example Usage

```python
import apideck
from apideck import Apideck
import apideck_unify
from apideck_unify import Apideck
import dateutil.parser
import os

Expand All @@ -34,8 +34,8 @@ with Apideck(
"updated_since": dateutil.parser.isoparse("2020-09-30T07:43:32.000Z"),
},
"sort": {
"by": apideck.ActivitiesSortBy.CREATED_AT,
"direction": apideck.SortDirection.DESC,
"by": apideck_unify.ActivitiesSortBy.CREATED_AT,
"direction": apideck_unify.SortDirection.DESC,
},
"pass_through": {
"search": "San Francisco",
Expand Down Expand Up @@ -78,8 +78,8 @@ Create activity
### Example Usage

```python
import apideck
from apideck import Apideck
import apideck_unify
from apideck_unify import Apideck
import os

with Apideck(
Expand All @@ -88,7 +88,7 @@ with Apideck(
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
) as s:
res = s.crm.activities.create(activity={
"type": apideck.ActivityType.MEETING,
"type": apideck_unify.ActivityType.MEETING,
"activity_datetime": "2021-05-01T12:00:00.000Z",
"duration_seconds": 1800,
"user_id": "12345",
Expand All @@ -111,7 +111,7 @@ with Apideck(
"location": "Space",
"location_address": {
"id": "123",
"type": apideck.Type.PRIMARY,
"type": apideck_unify.Type.PRIMARY,
"string": "25 Spring Street, Blackburn, VIC 3130",
"name": "HQ US",
"line1": "Main street",
Expand Down Expand Up @@ -143,7 +143,7 @@ with Apideck(
"child": False,
"archived": False,
"deleted": False,
"show_as": apideck.ShowAs.BUSY,
"show_as": apideck_unify.ShowAs.BUSY,
"done": False,
"start_datetime": "2021-05-01T12:00:00.000Z",
"end_datetime": "2021-05-01T12:30:00.000Z",
Expand Down Expand Up @@ -171,7 +171,7 @@ with Apideck(
"suffix": "PhD",
"email_address": "[email protected]",
"is_organizer": True,
"status": apideck.ActivityAttendeeStatus.ACCEPTED,
"status": apideck_unify.ActivityAttendeeStatus.ACCEPTED,
},
],
"pass_through": [
Expand Down Expand Up @@ -228,7 +228,7 @@ Get activity
### Example Usage

```python
from apideck import Apideck
from apideck_unify import Apideck
import os

with Apideck(
Expand Down Expand Up @@ -276,8 +276,8 @@ Update activity
### Example Usage

```python
import apideck
from apideck import Apideck
import apideck_unify
from apideck_unify import Apideck
import os

with Apideck(
Expand All @@ -286,7 +286,7 @@ with Apideck(
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
) as s:
res = s.crm.activities.update(id="<id>", activity={
"type": apideck.ActivityType.MEETING,
"type": apideck_unify.ActivityType.MEETING,
"activity_datetime": "2021-05-01T12:00:00.000Z",
"duration_seconds": 1800,
"user_id": "12345",
Expand All @@ -309,7 +309,7 @@ with Apideck(
"location": "Space",
"location_address": {
"id": "123",
"type": apideck.Type.PRIMARY,
"type": apideck_unify.Type.PRIMARY,
"string": "25 Spring Street, Blackburn, VIC 3130",
"name": "HQ US",
"line1": "Main street",
Expand Down Expand Up @@ -341,7 +341,7 @@ with Apideck(
"child": False,
"archived": False,
"deleted": False,
"show_as": apideck.ShowAs.BUSY,
"show_as": apideck_unify.ShowAs.BUSY,
"done": False,
"start_datetime": "2021-05-01T12:00:00.000Z",
"end_datetime": "2021-05-01T12:30:00.000Z",
Expand Down Expand Up @@ -380,7 +380,7 @@ with Apideck(
"suffix": "PhD",
"email_address": "[email protected]",
"is_organizer": True,
"status": apideck.ActivityAttendeeStatus.ACCEPTED,
"status": apideck_unify.ActivityAttendeeStatus.ACCEPTED,
},
],
"pass_through": [
Expand Down Expand Up @@ -480,7 +480,7 @@ Delete activity
### Example Usage

```python
from apideck import Apideck
from apideck_unify import Apideck
import os

with Apideck(
Expand Down
Loading

0 comments on commit b0f8f07

Please sign in to comment.