Compare commits
116 Commits
Author | SHA1 | Date | |
---|---|---|---|
62e481fb1e | |||
ff4bff38dd | |||
f417993c85 | |||
8bebb40c9f | |||
ec68e67645 | |||
95894ba00f | |||
ad19153225 | |||
8d476bbec6 | |||
b233f94a24 | |||
6351fb1bbc | |||
0e11945f1d | |||
d3d454a2d7 | |||
b150024bff | |||
0ad6216cde | |||
8925458665 | |||
25f8effd19 | |||
9c6c504ae5 | |||
6e170684d5 | |||
54d2ea373f | |||
43cc9d18b6 | |||
3467a5d5dd | |||
a93e30c3e8 | |||
d5dbeadda3 | |||
ed36086040 | |||
9f8069decb | |||
faaeb3a472 | |||
bc3d698539 | |||
d9d73522fd | |||
243ed3222a | |||
098e1fa97d | |||
738659dfbc | |||
5054fd19d3 | |||
058b4dc40a | |||
373b5ef4ae | |||
6b8807feea | |||
b6aa9ab98b | |||
be246702fd | |||
68d7a6d9a3 | |||
6b2fe3decb | |||
4f29f55190 | |||
6ad21a2c87 | |||
036965255a | |||
4120a139cd | |||
12c164620b | |||
31cd9e532d | |||
29b0200c4c | |||
ba3fb82a86 | |||
4c10c47b4a | |||
2e279da9c1 | |||
12e5baef9e | |||
0ef8f505ad | |||
01a73859d4 | |||
f63509a1eb | |||
7cb8d5327f | |||
1f9a787c15 | |||
3e2c9450dc | |||
eb8d1b77bb | |||
d5184bf172 | |||
3cad86c5a3 | |||
63824cd04f | |||
816904419e | |||
e68857f4c9 | |||
db1bd33c79 | |||
dea0d637fe | |||
2e1c75769f | |||
8162fa1964 | |||
d737fb4e8f | |||
686ec0cb36 | |||
f522911d7b | |||
1e693890ef | |||
755a4fd789 | |||
581c06a943 | |||
3ce38b0b26 | |||
d8a3120db3 | |||
968e8bbefd | |||
9921f5a9f3 | |||
3cde65018e | |||
8ba29a105d | |||
690e7686fd | |||
6a23831e8f | |||
1eafc5225d | |||
1a978b79f0 | |||
20b2a188dc | |||
4c3f497d73 | |||
d678182dcf | |||
6998fc0865 | |||
e2209b2ebd | |||
6c8fc70413 | |||
021595ed07 | |||
f5da088b67 | |||
fd52b906c4 | |||
405e78dc67 | |||
d0a345acd0 | |||
c6af833ec5 | |||
da9376ece5 | |||
e083b6e0e6 | |||
74f5be43fa | |||
65137564cf | |||
9c726ee5da | |||
c111c3813f | |||
42f173783f | |||
d8aeffc780 | |||
55b35a322e | |||
fa2b411b78 | |||
f933b716f4 | |||
8cf515b39f | |||
c209414459 | |||
a6638fb08a | |||
dee61d7b08 | |||
91dbd8bc07 | |||
b80be3ab47 | |||
e23c09d4dd | |||
3734729d22 | |||
0b99828bb6 | |||
7c13493e90 | |||
2ba2a2a771 |
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
docs/html/.doctrees/environment.pickle filter=lfs diff=lfs merge=lfs -text
|
8
.github/workflows/black.yml
vendored
8
.github/workflows/black.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Black
|
||||
name: black
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
@ -15,9 +15,9 @@ jobs:
|
||||
black:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
|
||||
# Installation instructions are from: https://python-poetry.org/docs/
|
||||
- name: Install dependencies
|
||||
@ -35,4 +35,4 @@ jobs:
|
||||
- name: Run black
|
||||
shell: bash
|
||||
run: |
|
||||
poetry run black --check --diff .
|
||||
poetry run black --check --diff . generate/generate.py docs/conf.py kittycad/client_test.py kittycad/examples_test.py
|
||||
|
4
.github/workflows/build-test.yml
vendored
4
.github/workflows/build-test.yml
vendored
@ -22,9 +22,9 @@ jobs:
|
||||
python-version: [3.8, 3.9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
|
5
.github/workflows/generate-docs.yml
vendored
5
.github/workflows/generate-docs.yml
vendored
@ -15,9 +15,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
|
||||
@ -40,6 +40,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
rm -rf docs/html
|
||||
rm -rf docs/_autosummary
|
||||
poetry install
|
||||
poetry run sphinx-build -b html docs/ docs/html/
|
||||
|
||||
|
2
.github/workflows/generate.yml
vendored
2
.github/workflows/generate.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
||||
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
- name: Run generate
|
||||
|
4
.github/workflows/make-release.yml
vendored
4
.github/workflows/make-release.yml
vendored
@ -8,8 +8,8 @@ jobs:
|
||||
name: make-release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
# Installation instructions are from: https://python-poetry.org/docs/
|
||||
|
38
.github/workflows/mypy.yml
vendored
Normal file
38
.github/workflows/mypy.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
name: mypy
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
paths:
|
||||
- '**.py'
|
||||
- .github/workflows/mypy.yml
|
||||
- 'pyproject.toml'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**.py'
|
||||
- .github/workflows/mypy.yml
|
||||
- 'pyproject.toml'
|
||||
jobs:
|
||||
mypy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
|
||||
# Installation instructions are from: https://python-poetry.org/docs/
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
pip install \
|
||||
poetry
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
poetry install
|
||||
poetry build
|
||||
|
||||
- name: Run mypy
|
||||
shell: bash
|
||||
run: |
|
||||
poetry run mypy .
|
25
.github/workflows/ruff.yml
vendored
25
.github/workflows/ruff.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Ruff
|
||||
name: ruff
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
@ -15,5 +15,24 @@ jobs:
|
||||
ruff:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: chartboost/ruff-action@v1
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
|
||||
# Installation instructions are from: https://python-poetry.org/docs/
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
pip install \
|
||||
poetry
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
poetry install
|
||||
poetry build
|
||||
|
||||
- name: Run ruff
|
||||
shell: bash
|
||||
run: |
|
||||
poetry run ruff check --format=github .
|
||||
|
15
.github/workflows/update-spec-for-docs.yml
vendored
15
.github/workflows/update-spec-for-docs.yml
vendored
@ -15,7 +15,14 @@ jobs:
|
||||
name: update-spec
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/create-github-app-token@v1
|
||||
id: app-token
|
||||
with:
|
||||
# required
|
||||
app-id: ${{ secrets.GH_ORG_APP_ID }}
|
||||
private-key: ${{ secrets.GH_ORG_APP_PRIVATE_KEY }}
|
||||
owner: ${{ github.repository_owner }}
|
||||
- uses: actions/checkout@v4
|
||||
- name: make generate
|
||||
shell: bash
|
||||
run: |
|
||||
@ -34,11 +41,11 @@ jobs:
|
||||
echo "No files changed, proceeding";
|
||||
fi
|
||||
# Checkout the docs repo since we will want to update the files there.
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'kittycad/website'
|
||||
path: 'docs'
|
||||
token: ${{secrets.PAT_GITHUB}}
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
- name: move spec to docs
|
||||
shell: bash
|
||||
run: |
|
||||
@ -62,6 +69,6 @@ jobs:
|
||||
--head "$NEW_BRANCH" \
|
||||
--base main || true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.PAT_GITHUB}}
|
||||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
|
||||
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -22,10 +22,11 @@ dmypy.json
|
||||
/coverage.xml
|
||||
/.coverage
|
||||
|
||||
poetry.lock
|
||||
testing
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
docs/_autosummary/
|
||||
docs/html/_sources/
|
||||
|
||||
snapshot.png
|
||||
|
@ -1,18 +1,16 @@
|
||||

|
||||
|
||||
# kittycad.py
|
||||
|
||||
The Python API client for KittyCAD.
|
||||
|
||||
- [PyPI](https://pypi.org/project/kittycad/)
|
||||
- [Python docs](https://python.api.docs.kittycad.io/)
|
||||
- [KittyCAD API Docs](https://docs.kittycad.io/?lang=python)
|
||||
- [Python docs](https://python.api.docs.zoo.dev/)
|
||||
- [KittyCAD API Docs](https://zoo.dev/docs/api?lang=python)
|
||||
|
||||
## Generating
|
||||
|
||||
You can trigger a build with the GitHub action to generate the client. This will
|
||||
automatically update the client to the latest version based on the spec hosted
|
||||
at [api.kittycad.io](https://api.kittycad.io/).
|
||||
at [api.zoo.dev](https://api.zoo.dev/).
|
||||
|
||||
Alternatively, if you wish to generate the client locally, make sure you have
|
||||
[Docker installed](https://docs.docker.com/get-docker/) and run:
|
||||
|
1939
assets/ORIGINALVOXEL-3.obj
Normal file
1939
assets/ORIGINALVOXEL-3.obj
Normal file
File diff suppressed because it is too large
Load Diff
@ -126,6 +126,7 @@ intersphinx_mapping = {
|
||||
"python": ("https://docs.python.org/3", None),
|
||||
}
|
||||
|
||||
|
||||
# This is a function linkcode_resolve(domain, info), which should return the URL
|
||||
# to source code corresponding to the object in given domain with given information.
|
||||
# FROM: https://www.sphinx-doc.org/en/master/usage/extensions/linkcode.html
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Sphinx build info version 1
|
||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: 95c1ca5eb3c37ade6a07a57ad44de426
|
||||
config: 60d57bb036d3b59c436bbb934bec9a4c
|
||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user