#3d #api-client #unit #file-format #kittycad

kittycad

A fully generated & opinionated API client for the KittyCAD API

53 releases

new 0.2.44 Nov 29, 2023
0.2.41 Oct 24, 2023
0.2.12 Jul 21, 2023
0.2.2 Jan 6, 2023
0.1.10 Jul 26, 2022

#578 in Web programming

Download history 198/week @ 2023-08-11 1644/week @ 2023-08-18 1948/week @ 2023-08-25 1805/week @ 2023-09-01 1499/week @ 2023-09-08 1323/week @ 2023-09-15 906/week @ 2023-09-22 820/week @ 2023-09-29 1129/week @ 2023-10-06 678/week @ 2023-10-13 887/week @ 2023-10-20 822/week @ 2023-10-27 543/week @ 2023-11-03 600/week @ 2023-11-10 974/week @ 2023-11-17 949/week @ 2023-11-24

3,106 downloads per month
Used in kcl-lib

MIT license

660KB
16K SLoC

kittycad

A fully generated & opinionated API client for the KittyCAD API.

docs.rs

API Details

API server for KittyCAD

Contact

url email
https://kittycad.io api@kittycad.io

Client Details

This client is generated from the OpenAPI specs based on API spec version 0.1.0. This way it will remain up to date as features are added.

The documentation for the crate is generated along with the code to make this library easy to use.

To install the library, add the following to your Cargo.toml file.

[dependencies]
kittycad = "0.2.44"

Basic example

Typical use will require intializing a Client. This requires a user agent string and set of credentials.

use kittycad::Client;

let client = Client::new(
    String::from("api-key"),
);

Alternatively, the library can search for most of the variables required for the client in the environment:

  • KITTYCAD_API_TOKEN

And then you can create a client from the environment.

use kittycad::Client;

let client = Client::new_from_env();

Dependencies

~24–41MB
~437K SLoC