#user #api-client #user-agent #opinionated #generated #zoo

kittycad

A fully generated & opinionated API client for the KittyCAD API

72 releases

new 0.2.63 Mar 26, 2024
0.2.58 Feb 25, 2024
0.2.45 Dec 21, 2023
0.2.44 Nov 29, 2023
0.1.10 Jul 26, 2022

#322 in Web programming

Download history 249/week @ 2023-12-06 670/week @ 2023-12-13 234/week @ 2023-12-20 146/week @ 2023-12-27 508/week @ 2024-01-03 332/week @ 2024-01-10 363/week @ 2024-01-17 569/week @ 2024-01-24 565/week @ 2024-01-31 1410/week @ 2024-02-07 1806/week @ 2024-02-14 1736/week @ 2024-02-21 1654/week @ 2024-02-28 1296/week @ 2024-03-06 1539/week @ 2024-03-13 1556/week @ 2024-03-20

6,204 downloads per month
Used in 2 crates

MIT license

1MB
21K SLoC

kittycad

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

docs.rs

API Details

API server for Zoo

Contact

url email
https://zoo.dev api@zoo.dev

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.63"

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

~25–42MB
~438K SLoC