Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
eb2a3c0
chore: fix typos (#14)
stainless-app[bot] Mar 27, 2025
6f59618
codegen metadata
stainless-app[bot] Mar 27, 2025
6767b9e
chore(internal): remove trailing character (#16)
stainless-app[bot] Apr 4, 2025
4e0ac65
chore(internal): slight transform perf improvement (#17)
stainless-app[bot] Apr 9, 2025
3a957ac
chore(internal): expand CI branch coverage
stainless-app[bot] Apr 10, 2025
d430c9e
chore(internal): reduce CI branch coverage
stainless-app[bot] Apr 10, 2025
8aa6646
fix(perf): skip traversing types for NotGiven values
stainless-app[bot] Apr 12, 2025
ecb9584
fix(perf): optimize some hot paths
stainless-app[bot] Apr 12, 2025
ad15860
chore(internal): update pyright settings
stainless-app[bot] Apr 15, 2025
d24355f
chore(client): minor internal fixes
stainless-app[bot] Apr 15, 2025
879292d
chore(internal): bump pyright version
stainless-app[bot] Apr 17, 2025
dee6c3e
chore(internal): base client updates
stainless-app[bot] Apr 17, 2025
0b4fc44
chore(internal): update models test
stainless-app[bot] Apr 19, 2025
8543410
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 23, 2025
dff6dbc
chore(internal): import reformatting
stainless-app[bot] Apr 23, 2025
a21db39
chore(internal): fix list file params
stainless-app[bot] Apr 23, 2025
2240d34
chore(internal): refactor retries to not use recursion
stainless-app[bot] Apr 23, 2025
9f21dda
fix(pydantic v1): more robust ModelField.annotation check
stainless-app[bot] Apr 23, 2025
1129dd7
chore(internal): codegen related update
stainless-app[bot] Apr 24, 2025
7c65d52
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 24, 2025
b1102cc
chore: broadly detect json family of content-type headers
stainless-app[bot] Apr 24, 2025
95d0df1
chore(internal): avoid errors for isinstance checks on proxies
stainless-app[bot] May 9, 2025
4b04db6
fix(package): support direct resource imports
stainless-app[bot] May 10, 2025
789f72e
chore(ci): upload sdks to package manager
stainless-app[bot] May 15, 2025
f1e5b1b
chore(ci): fix installation instructions
stainless-app[bot] May 16, 2025
e7d87d4
chore(internal): codegen related update
stainless-app[bot] May 17, 2025
1aaee49
release: 0.1.0-alpha.4
stainless-app[bot] May 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 34 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- next
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ubuntu-latest

runs-on: ${{ github.repository == 'stainless-sdks/postcall-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -30,10 +30,34 @@ jobs:
- name: Run lints
run: ./scripts/lint

upload:
if: github.repository == 'stainless-sdks/postcall-python'
timeout-minutes: 10
name: upload
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Get GitHub OIDC Token
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh

test:
timeout-minutes: 10
name: test
runs-on: ubuntu-latest

runs-on: ${{ github.repository == 'stainless-sdks/postcall-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.3"
".": "0.1.0-alpha.4"
}
2 changes: 2 additions & 0 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configured_endpoints: 1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metavoice-labs-inc%2Fpostcall-e73c3ee8a697d595fd64419862b18b9a93abd48bff0dd99fa8b2d5de24ef52ce.yml
openapi_spec_hash: a54ece3ef322a18116138761d38e933d
config_hash: ca6003299c6b8fe023366b454a4d2743
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

## 0.1.0-alpha.4 (2025-05-17)

Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/metavoiceio/postcall-python-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)

### Bug Fixes

* **package:** support direct resource imports ([4b04db6](https://github.com/metavoiceio/postcall-python-sdk/commit/4b04db64aafc1779bfdde44741ecb5ef0e8bc7fa))
* **perf:** optimize some hot paths ([ecb9584](https://github.com/metavoiceio/postcall-python-sdk/commit/ecb9584f8036124fc3ddb790137a9b89eb831b6e))
* **perf:** skip traversing types for NotGiven values ([8aa6646](https://github.com/metavoiceio/postcall-python-sdk/commit/8aa664658cb5ef7f5e1ce83879153a5bfc13bb51))
* **pydantic v1:** more robust ModelField.annotation check ([9f21dda](https://github.com/metavoiceio/postcall-python-sdk/commit/9f21dda26442323bf3593e01ae9881e0538b87cd))


### Chores

* broadly detect json family of content-type headers ([b1102cc](https://github.com/metavoiceio/postcall-python-sdk/commit/b1102cc444c038685fc5054ce1640f106c00809e))
* **ci:** add timeout thresholds for CI jobs ([8543410](https://github.com/metavoiceio/postcall-python-sdk/commit/85434108fded1daf5474c27c14d08007f3314ed2))
* **ci:** fix installation instructions ([f1e5b1b](https://github.com/metavoiceio/postcall-python-sdk/commit/f1e5b1bbb1fd583b098b53f1471eff930b89959e))
* **ci:** only use depot for staging repos ([7c65d52](https://github.com/metavoiceio/postcall-python-sdk/commit/7c65d52cf380e558f08e674fa181ab4118aa4814))
* **ci:** upload sdks to package manager ([789f72e](https://github.com/metavoiceio/postcall-python-sdk/commit/789f72e6148887ce95e81cb0d1ec23d1706778ba))
* **client:** minor internal fixes ([d24355f](https://github.com/metavoiceio/postcall-python-sdk/commit/d24355f4724c10a740b0f194bcdf10c4972beb38))
* fix typos ([#14](https://github.com/metavoiceio/postcall-python-sdk/issues/14)) ([eb2a3c0](https://github.com/metavoiceio/postcall-python-sdk/commit/eb2a3c098ebfe67e716367b3224f738b11707d16))
* **internal:** avoid errors for isinstance checks on proxies ([95d0df1](https://github.com/metavoiceio/postcall-python-sdk/commit/95d0df148fe419a337a1f93c90990081073a45bd))
* **internal:** base client updates ([dee6c3e](https://github.com/metavoiceio/postcall-python-sdk/commit/dee6c3ef9c7292359f6ac2bab4357a1b2b2b87c3))
* **internal:** bump pyright version ([879292d](https://github.com/metavoiceio/postcall-python-sdk/commit/879292dba00b4e72ad92cddf7d04705044214b99))
* **internal:** codegen related update ([e7d87d4](https://github.com/metavoiceio/postcall-python-sdk/commit/e7d87d4dbd4f05cf2267a140395b37a991c18da2))
* **internal:** codegen related update ([1129dd7](https://github.com/metavoiceio/postcall-python-sdk/commit/1129dd74e4a72ab42e3f29796710a4a2c449e8cb))
* **internal:** expand CI branch coverage ([3a957ac](https://github.com/metavoiceio/postcall-python-sdk/commit/3a957ac21c2e4b83edc8987202c6a4e777a86a40))
* **internal:** fix list file params ([a21db39](https://github.com/metavoiceio/postcall-python-sdk/commit/a21db3954c633e41cafeb2ee0592d93099c2843a))
* **internal:** import reformatting ([dff6dbc](https://github.com/metavoiceio/postcall-python-sdk/commit/dff6dbc5b2174dc22d61bdfbf956fa15a3bec444))
* **internal:** reduce CI branch coverage ([d430c9e](https://github.com/metavoiceio/postcall-python-sdk/commit/d430c9e7721e788a4d7f07be09f4db0c2fdfc2fd))
* **internal:** refactor retries to not use recursion ([2240d34](https://github.com/metavoiceio/postcall-python-sdk/commit/2240d34cf754144f04c2805bce70547037be914c))
* **internal:** remove trailing character ([#16](https://github.com/metavoiceio/postcall-python-sdk/issues/16)) ([6767b9e](https://github.com/metavoiceio/postcall-python-sdk/commit/6767b9ecc2264d69984db9d7fa59c34a672487c0))
* **internal:** slight transform perf improvement ([#17](https://github.com/metavoiceio/postcall-python-sdk/issues/17)) ([4e0ac65](https://github.com/metavoiceio/postcall-python-sdk/commit/4e0ac65d5cd7f3233705312152ded82d84771682))
* **internal:** update models test ([0b4fc44](https://github.com/metavoiceio/postcall-python-sdk/commit/0b4fc44e40883a30180ac46971af0e4ce4d22d3e))
* **internal:** update pyright settings ([ad15860](https://github.com/metavoiceio/postcall-python-sdk/commit/ad15860a9f338e088392dcfca63c19e71303faf3))

## 0.1.0-alpha.3 (2025-03-19)

Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/metavoiceio/postcall-python-sdk/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "postcall"
version = "0.1.0-alpha.3"
version = "0.1.0-alpha.4"
description = "The official Python library for the postcall API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -42,7 +42,7 @@ Repository = "https://github.com/metavoiceio/postcall-python-sdk"
managed = true
# version pins are in requirements-dev.lock
dev-dependencies = [
"pyright>=1.1.359",
"pyright==1.1.399",
"mypy",
"respx",
"pytest",
Expand Down Expand Up @@ -147,6 +147,7 @@ exclude = [
]

reportImplicitOverride = true
reportOverlappingOverload = false

reportImportCycles = false
reportPrivateUsage = false
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
# via rich
pyright==1.1.392.post0
pyright==1.1.399
pytest==8.3.3
# via pytest-asyncio
pytest-asyncio==0.24.0
Expand Down
25 changes: 25 additions & 0 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -exuo pipefail

RESPONSE=$(curl -X POST "$URL" \
-H "Authorization: Bearer $AUTH" \
-H "Content-Type: application/json")

SIGNED_URL=$(echo "$RESPONSE" | jq -r '.url')

if [[ "$SIGNED_URL" == "null" ]]; then
echo -e "\033[31mFailed to get signed URL.\033[0m"
exit 1
fi

UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$SIGNED_URL" 2>&1)

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
echo -e "\033[32mInstallation: pip install --pre 'https://pkg.stainless.com/s/postcall-python/$SHA'\033[0m"
else
echo -e "\033[31mFailed to upload artifact.\033[0m"
exit 1
fi
5 changes: 5 additions & 0 deletions src/postcall/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import typing as _t

from . import types
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
from ._utils import file_from_path
Expand Down Expand Up @@ -78,6 +80,9 @@
"DefaultAsyncHttpxClient",
]

if not _t.TYPE_CHECKING:
from ._utils._resources_proxy import resources as resources

_setup_logging()

# Update the __module__ attribute for exported symbols so that
Expand Down
Loading