Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
c87cdf7
chore: sync repo
stainless-app[bot] Sep 1, 2025
f9c5565
chore: update SDK settings
stainless-app[bot] Sep 1, 2025
ef41522
feat(api): manual updates
stainless-app[bot] Sep 1, 2025
e5c302f
feat(api): manual updates
stainless-app[bot] Sep 1, 2025
15c93fb
chore: update SDK settings
stainless-app[bot] Sep 1, 2025
20be480
codegen metadata
stainless-app[bot] Sep 1, 2025
83d811b
codegen metadata
stainless-app[bot] Sep 2, 2025
23047c1
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
3d6ee2a
codegen metadata
stainless-app[bot] Sep 2, 2025
cc31c09
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
1d0cd71
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
b7f980c
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
957064e
codegen metadata
stainless-app[bot] Sep 2, 2025
81882b7
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
79f22e5
feat(api): manual updates
stainless-app[bot] Sep 2, 2025
35f1e21
feat(types): replace List[str] with SequenceNotStr in params
stainless-app[bot] Sep 3, 2025
e1df182
feat(api): manual updates
stainless-app[bot] Sep 3, 2025
d486aa9
codegen metadata
stainless-app[bot] Sep 3, 2025
55b2b83
feat: improve future compat with pydantic v3
stainless-app[bot] Sep 4, 2025
502776e
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
5b013ab
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
49ca430
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
0833775
feat(api): manual updates
stainless-app[bot] Sep 4, 2025
7794664
codegen metadata
stainless-app[bot] Sep 4, 2025
e260c6a
codegen metadata
stainless-app[bot] Sep 4, 2025
6a41ff5
chore(internal): codegen related update
stainless-app[bot] Sep 5, 2025
80d5f3b
feat(api): extract UpdateFileDetailsRequest to model
stainless-app[bot] Sep 5, 2025
86c9324
chore(tests): simplify `get_platform` test
stainless-app[bot] Sep 6, 2025
e581082
chore(internal): update pydantic dependency
stainless-app[bot] Sep 17, 2025
5460097
chore(types): change optional parameter type from NotGiven to Omit
stainless-app[bot] Sep 19, 2025
7a0c7b2
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
2270fd4
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
76434a9
feat(api): manual updates
stainless-app[bot] Sep 19, 2025
05ad4e3
codegen metadata
stainless-app[bot] Sep 19, 2025
0844c70
codegen metadata
stainless-app[bot] Sep 19, 2025
bcf925a
chore: do not install brew dependencies in ./scripts/bootstrap by def…
stainless-app[bot] Sep 20, 2025
ecb67ce
feat(api): Update env var name
stainless-app[bot] Sep 20, 2025
5c833b8
feat(api): update api docs link
stainless-app[bot] Sep 20, 2025
5a777b4
feat(api): remove Stainless attribution from readme
stainless-app[bot] Sep 20, 2025
7a506ef
codegen metadata
stainless-app[bot] Sep 21, 2025
215c7a1
release: 0.1.0
stainless-app[bot] Sep 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .coveragerc

This file was deleted.

9 changes: 9 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG VARIANT="3.9"
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

USER vscode

RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.44.0" RYE_INSTALL_OPTION="--yes" bash
ENV PATH=/home/vscode/.rye/shims:$PATH

RUN echo "[[ -d .venv ]] && source .venv/bin/activate || export PATH=\$PATH" >> /home/vscode/.bashrc
43 changes: 43 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},

"postStartCommand": "rye sync --all-features",

"customizations": {
"vscode": {
"extensions": [
"ms-python.python"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"python.pythonPath": ".venv/bin/python",
"python.defaultInterpreterPath": ".venv/bin/python",
"python.typeChecking": "basic",
"terminal.integrated.env.linux": {
"PATH": "/home/vscode/.rye/shims:${env:PATH}"
}
}
}
},
"features": {
"ghcr.io/devcontainers/features/node:1": {}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
17 changes: 0 additions & 17 deletions .editorconfig

This file was deleted.

98 changes: 98 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: CI
on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
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: Install dependencies
run: rye sync --all-features

- name: Run lints
run: ./scripts/lint

build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-python' && 'depot-ubuntu-24.04' || '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: Install dependencies
run: rye sync --all-features

- name: Run build
run: rye build

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

- name: Upload tarball
if: github.repository == 'stainless-sdks/imagekit-python'
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: ${{ github.repository == 'stainless-sdks/imagekit-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
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: Bootstrap
run: ./scripts/bootstrap

- name: Run tests
run: ./scripts/test
31 changes: 31 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -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/imagekit-developer/imagekit-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.IMAGE_KIT_PYPI_TOKEN || secrets.PYPI_TOKEN }}
34 changes: 0 additions & 34 deletions .github/workflows/publish.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release Doctor
on:
pull_request:
branches:
- master
workflow_dispatch:

jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'imagekit-developer/imagekit-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.IMAGE_KIT_PYPI_TOKEN || secrets.PYPI_TOKEN }}
22 changes: 0 additions & 22 deletions .github/workflows/test.yml

This file was deleted.

63 changes: 10 additions & 53 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,58 +1,15 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
.prism.log
_dev

# C extensions
*.so
__pycache__
.mypy_cache

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
sample/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
dist

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# pyenv
.python-version

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
.idea

# Visual Studio Code
.vscode/
htmlcov/
.env
.envrc
codegen.log
Brewfile.lock.json
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.18
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.0"
}
4 changes: 4 additions & 0 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
configured_endpoints: 42
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-d1a3e6dfc45ae832b6b14a0aef25878985c679fa9f48c1470df188b1578ba648.yml
openapi_spec_hash: 1d382866fce3284f26d341f112988d9d
config_hash: d57f3c7c581048428b41398f30da8b9b
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.analysis.importFormat": "relative",
}
2 changes: 2 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
brew "rye"

Loading
Loading