Compare commits

..

105 Commits

Author SHA1 Message Date
fec30b6abc bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-08-10 12:44:00 -07:00
3117c86ea4 Merge pull request #47 from KittyCAD/update-spec
Update api spec
2022-08-10 12:43:30 -07:00
8bb54b8382 I have generated the latest API! 2022-08-10 19:41:56 +00:00
08ac3093a8 YOYO NEW API SPEC! 2022-08-10 19:38:23 +00:00
152e2ccc0c Add banner 2022-08-09 11:27:14 +10:00
ef6b1d9ca1 Merge pull request #43 from KittyCAD/dependabot/pip/attrs-gte-20.1.0-and-lt-23.0.0
Update attrs requirement from >=20.1.0,<22.0.0 to >=20.1.0,<23.0.0
2022-08-08 09:30:49 -07:00
284a911a38 Merge pull request #46 from KittyCAD/dependabot/pip/flake8-tw-5.0.4
Update flake8 requirement from ^4.0.1 to ^5.0.4
2022-08-08 09:30:41 -07:00
5c2d11d814 Update flake8 requirement from ^4.0.1 to ^5.0.4
Updates the requirements on [flake8](https://github.com/pycqa/flake8) to permit the latest version.
- [Release notes](https://github.com/pycqa/flake8/releases)
- [Commits](https://github.com/pycqa/flake8/compare/4.0.1...5.0.4)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-04 11:33:00 +00:00
a26c922360 Update attrs requirement from >=20.1.0,<22.0.0 to >=20.1.0,<23.0.0
Updates the requirements on [attrs](https://github.com/python-attrs/attrs) to permit the latest version.
- [Release notes](https://github.com/python-attrs/attrs/releases)
- [Changelog](https://github.com/python-attrs/attrs/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/python-attrs/attrs/compare/20.1.0...22.1.0)

---
updated-dependencies:
- dependency-name: attrs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-29 11:30:06 +00:00
0ba1480511 I HAVE GENERATED YOUR NEW DOCS! 2022-07-28 15:43:45 +00:00
ddb5f19a29 Merge pull request #42 from KittyCAD/update-spec
Update api spec
2022-07-28 08:41:22 -07:00
3c70a17d78 I have generated the latest API! 2022-07-28 15:18:50 +00:00
994b2de5c3 YOYO NEW API SPEC! 2022-07-28 15:15:24 +00:00
29d1308d0e I HAVE GENERATED YOUR NEW DOCS! 2022-07-26 00:51:56 +00:00
4e0a5c1b44 bump
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-25 17:50:01 -07:00
f01cb3c62d Merge pull request #41 from KittyCAD/update-spec
Update api spec
2022-07-25 17:49:23 -07:00
908c7efe12 I have generated the latest API! 2022-07-26 00:49:02 +00:00
df3f38ba7d YOYO NEW API SPEC! 2022-07-26 00:45:36 +00:00
e5b9c1020c I HAVE GENERATED YOUR NEW DOCS! 2022-07-26 00:15:59 +00:00
4a5411d0ca Merge pull request #40 from KittyCAD/update-spec
Update api spec
2022-07-25 17:13:23 -07:00
0422a9a4fd I have generated the latest API! 2022-07-26 00:11:22 +00:00
f622646127 YOYO NEW API SPEC! 2022-07-26 00:07:53 +00:00
b8f4106107 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-25 16:46:23 -07:00
b32d37fc48 bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-25 16:44:15 -07:00
650a99936b I HAVE GENERATED YOUR NEW DOCS! 2022-07-25 23:14:36 +00:00
b4d43b584b Merge pull request #39 from KittyCAD/update-spec
Update api spec
2022-07-25 16:11:49 -07:00
0d39b80547 I have generated the latest API! 2022-07-25 22:46:48 +00:00
d86f2560ac YOYO NEW API SPEC! 2022-07-25 22:43:33 +00:00
c5db75b131 fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:43:17 -07:00
0b33d376c2 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:36:12 -07:00
95faa77326 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:36:12 -07:00
39b183c731 I HAVE GENERATED YOUR NEW DOCS! 2022-07-21 20:25:42 +00:00
f408eae3d2 bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:23:39 -07:00
2134a8e5de add json patch
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-21 13:22:26 -07:00
8d0ab1a2b8 I HAVE GENERATED YOUR NEW DOCS! 2022-07-21 03:31:10 +00:00
efabead34c update spec
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-20 20:28:19 -07:00
4d2468541c bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-18 21:49:25 -07:00
e7f966bea8 I HAVE GENERATED YOUR NEW DOCS! 2022-07-19 04:46:47 +00:00
147dea9927 Merge pull request #37 from KittyCAD/update-spec-v0.2.3
Update go lang spec docs for v0.2.3
2022-07-18 21:44:19 -07:00
6f2330aa85 I have generated the latest API! 2022-07-19 04:44:07 +00:00
8e7d73973d YOYO NEW GO SPEC DOCS v0.2.3! 2022-07-19 04:41:08 +00:00
8c9d476771 Merge pull request #35 from KittyCAD/dependabot/pip/pytest-asyncio-tw-0.19.0
Update pytest-asyncio requirement from ^0.18.3 to ^0.19.0
2022-07-15 15:07:28 -07:00
96a23c4672 Merge pull request #36 from KittyCAD/update-spec-0.1.6
Update rust lang spec docs for 0.1.6
2022-07-15 15:07:20 -07:00
4f88e5f0a7 I have generated the latest API! 2022-07-15 21:49:46 +00:00
a49aa621ed YOYO NEW RUST SPEC DOCS 0.1.6! 2022-07-15 21:46:55 +00:00
eb0380ef2d Update pytest-asyncio requirement from ^0.18.3 to ^0.19.0
Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Changelog](https://github.com/pytest-dev/pytest-asyncio/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.18.3...v0.19.0)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-15 11:27:58 +00:00
9414ebcc0b I HAVE GENERATED YOUR NEW DOCS! 2022-07-08 01:03:24 +00:00
0c6b538605 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-07 18:00:09 -07:00
905e2094de Merge pull request #34 from KittyCAD/update-spec-0.1.5
Update rust lang spec docs for 0.1.5
2022-07-07 17:59:54 -07:00
4623f854af I have generated the latest API! 2022-07-08 00:56:43 +00:00
3802dd36fc YOYO NEW RUST SPEC DOCS 0.1.5! 2022-07-08 00:53:23 +00:00
a046a9a82b push to correct repo
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-07 17:49:43 -07:00
c795346cd0 I HAVE GENERATED YOUR NEW DOCS! 2022-07-05 23:25:53 +00:00
3bd4326f2c Merge pull request #33 from KittyCAD/update-spec-0.1.4
Update rust lang spec docs for 0.1.4
2022-07-05 16:23:39 -07:00
b08726834a I have generated the latest API! 2022-07-05 23:19:40 +00:00
26954ba9f8 YOYO NEW RUST SPEC DOCS 0.1.4! 2022-07-05 23:16:47 +00:00
20496480f7 I HAVE GENERATED YOUR NEW DOCS! 2022-07-05 22:47:27 +00:00
2c8e9f90d7 Merge pull request #32 from KittyCAD/update-spec-0.1.3
Update rust lang spec docs for 0.1.3
2022-07-05 15:44:38 -07:00
197aa2fc55 fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-05 15:38:49 -07:00
4beba625ed bump the version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-05 15:34:46 -07:00
67a03bdd03 update
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-07-05 15:33:51 -07:00
30db5097ff YOYO NEW RUST SPEC DOCS 0.1.3! 2022-07-05 19:27:35 +00:00
b80b69b023 I HAVE GENERATED YOUR NEW DOCS! 2022-06-16 19:06:05 +00:00
9bf4dead4f bump
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-16 12:02:24 -07:00
c727428359 I HAVE GENERATED YOUR NEW DOCS! 2022-06-16 19:01:53 +00:00
055c3bdd8f Merge pull request #29 from KittyCAD/update-spec-0.1.0
Update rust lang spec docs for 0.1.0
2022-06-16 11:58:41 -07:00
55e0cbe58d I have generated the latest API! 2022-06-16 18:58:33 +00:00
851f986d32 YOYO NEW RUST SPEC DOCS 0.1.0! 2022-06-16 18:55:09 +00:00
61ddb1a6d8 I HAVE GENERATED YOUR NEW DOCS! 2022-06-16 01:33:05 +00:00
63b0703ae8 fix for regular spec
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-15 18:29:56 -07:00
c694322a52 bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-15 18:23:57 -07:00
0e24bc5311 I HAVE GENERATED YOUR NEW DOCS! 2022-06-16 01:22:56 +00:00
42e76b4b83 Add failing test to demo to_dict issue 2022-06-15 18:18:42 -07:00
774b8f079c better generatioon
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-15 18:18:19 -07:00
ba8eeca234 Merge pull request #28 from KittyCAD/update-spec-v0.1.6
Update go lang spec docs for v0.1.6
2022-06-15 17:27:09 -07:00
c512fd7f8a YOYO NEW GO SPEC DOCS v0.1.6! 2022-06-16 00:22:46 +00:00
4639d82900 I HAVE GENERATED YOUR NEW DOCS! 2022-06-14 16:23:14 +00:00
39cfd257a8 bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-14 09:20:20 -07:00
82f3361603 update spec
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-14 09:19:55 -07:00
e97a042552 I HAVE GENERATED YOUR NEW DOCS! 2022-06-14 16:13:10 +00:00
65cb520fce Merge pull request #23 from KittyCAD/update-spec-v0.1.5
Update go lang spec docs for v0.1.5
2022-06-14 09:10:33 -07:00
d9067d3292 Merge pull request #25 from KittyCAD/kurt/24-update-codegen-to-handle-query-params
update generate.py to handle query params
2022-06-14 09:10:18 -07:00
2ae59c5ca3 use obj for mass and volume tests 2022-06-14 21:57:15 +10:00
50313ec810 clean up tests 2022-06-14 21:52:17 +10:00
f262b62cb7 I have generated the latest API! 2022-06-14 11:38:28 +00:00
3237e02c10 add tests 2022-06-14 21:35:20 +10:00
374d5bd238 I have generated the latest API! 2022-06-14 10:57:00 +00:00
4933e0106c trigger generate on change to generate.py 2022-06-14 20:53:43 +10:00
f825678307 update generate.py to handle query params 2022-06-14 20:50:22 +10:00
be8df00e51 YOYO NEW GO SPEC DOCS v0.1.5! 2022-06-14 03:17:03 +00:00
58192a56ff I HAVE GENERATED YOUR NEW DOCS! 2022-06-12 01:37:38 +00:00
6103b11ab8 Merge pull request #22 from KittyCAD/update-spec-v0.1.4
Update go lang spec docs for v0.1.4
2022-06-11 18:33:58 -07:00
441db38ca2 fix lint
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 18:30:39 -07:00
61c79305dc bump version
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 18:09:32 -07:00
73cb3ff917 fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 18:08:23 -07:00
7c4321306a fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 17:59:55 -07:00
49b8d2747a first start of fix
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 17:42:00 -07:00
9dc390a64d initial fixing
Signed-off-by: Jess Frazelle <github@jessfraz.com>
2022-06-11 17:26:20 -07:00
929e7fe993 I HAVE GENERATED YOUR NEW DOCS! 2022-06-11 22:56:27 +00:00
ada7da5eca Merge pull request #20 from KittyCAD/dependabot/pip/httpx-gte-0.15.4-and-lt-0.24.0
Update httpx requirement from >=0.15.4,<0.23.0 to >=0.15.4,<0.24.0
2022-06-11 15:53:37 -07:00
829c9cb0fe Merge pull request #21 from KittyCAD/dependabot/github_actions/actions/setup-python-4
Bump actions/setup-python from 3 to 4
2022-06-11 15:53:29 -07:00
4631ca24cb YOYO NEW GO SPEC DOCS v0.1.4! 2022-06-11 22:53:08 +00:00
b9e1d6fda6 Bump actions/setup-python from 3 to 4
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 11:23:38 +00:00
2efdf57ec3 Update httpx requirement from >=0.15.4,<0.23.0 to >=0.15.4,<0.24.0
Updates the requirements on [httpx](https://github.com/encode/httpx) to permit the latest version.
- [Release notes](https://github.com/encode/httpx/releases)
- [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/httpx/compare/0.15.4...0.23.0)

---
updated-dependencies:
- dependency-name: httpx
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-24 11:31:04 +00:00
7f7460d366 I HAVE GENERATED YOUR NEW DOCS! 2022-04-27 20:34:57 +00:00
1072 changed files with 92395 additions and 5480 deletions

View File

@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

View File

@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.x

View File

@ -7,6 +7,7 @@ on:
- 'Makefile'
- .github/workflows/generate.yml
- 'spec.json'
- 'generate/generate.py'
workflow_dispatch:
inputs:
jobs:
@ -34,5 +35,6 @@ jobs:
git config --local user.name "github-actions[bot]"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git fetch origin
git add .
git commit -am "I have generated the latest API!" || true
git push origin ${{github.event.pull_request.head.ref }} || true

View File

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
# Installation instructions are from: https://python-poetry.org/docs/

View File

@ -24,7 +24,7 @@ jobs:
- name: Ensure no files changed
shell: bash
run: |
if [[ `git status --porcelain` ]]; then
if [[ `git status --porcelain kittycad/` ]]; then
echo "Files changed, exiting";
exit 1;
else
@ -34,30 +34,29 @@ jobs:
# Checkout the docs repo since we will want to update the files there.
- uses: actions/checkout@v3
with:
repository: 'kittycad/docs'
repository: 'kittycad/website'
path: 'docs'
token: ${{secrets.PAT_GITHUB}}
- name: move spec to docs
shell: bash
run: |
rm docs/spec.json || true
cp spec.json docs/spec.json
rm docs/kittycad.py.patch.json || true
cp kittycad.py.patch.json docs/kittycad.py.patch.json
- name: commit the changes in the docs repo
shell: bash
run: |
export VERSION=$(cat VERSION.txt);
cd docs
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -am "YOYO NEW SPEC DOCS ${VERSION}!" || exit 0
git commit -am "YOYO NEW SPEC PYTHON DOCS!" || exit 0
git fetch origin
git rebase origin/main || exit 0
export NEW_BRANCH="update-spec-${VERSION}"
export NEW_BRANCH="update-spec-python"
git checkout -b "$NEW_BRANCH"
git push -f origin "$NEW_BRANCH"
gh pr create --title "Update lang spec docs for ${VERSION}" \
--body "Updating the generated docs for go lang" \
gh pr create --title "Update lang spec docs for python" \
--body "Updating the generated docs for python" \
--head "$NEW_BRANCH" \
--base main || true
env:

1
.gitignore vendored
View File

@ -23,3 +23,4 @@ dmypy.json
/.coverage
poetry.lock
testing

View File

@ -16,12 +16,14 @@ generate: docker-image ## Generate the api client.
--disable-content-trust \
-v $(CURDIR):/usr/src \
--workdir /usr/src \
$(DOCKER_IMAGE_NAME) sh -c 'poetry run python generate/generate.py && poetry run autopep8 --in-place --aggressive --aggressive kittycad/models/*.py && poetry run autopep8 --in-place --aggressive --aggressive kittycad/api/*.py && poetry run autopep8 --in-place --aggressive --aggressive kittycad/*.py && poetry run autopep8 --in-place --aggressive --aggressive generate/*.py'
$(DOCKER_IMAGE_NAME) ./generate/run.sh
.PHONY: shell
shell: docker-image ## Pop into a shell in the docker image.
docker run --rm -i $(DOCKER_FLAGS) \
--name python-generator-shell \
-e KITTYCAD_API_TOKEN \
--disable-content-trust \
-v $(CURDIR):/usr/src \
--workdir /usr/src \
$(DOCKER_IMAGE_NAME) /bin/bash

View File

@ -1,3 +1,5 @@
![image](https://user-images.githubusercontent.com/19377312/165883233-3bdbc9fb-ddf9-4173-8cf2-d1b70ab7127d.png)
# kittycad.py
The Python API client for KittyCAD.

1942
assets/testing.obj Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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: 16fe53d77233f18bb10a8972d1624ff3
config: 1ece6d752eecee7facf120d36abf3832
tags: 645f666f9bcd5a90fca523b33c5a78b7

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