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

kittycad

A fully generated & opinionated API client for the KittyCAD API

79 releases

0.3.1 May 3, 2024
0.2.69 Apr 22, 2024
0.2.63 Mar 26, 2024
0.2.45 Dec 21, 2023
0.1.10 Jul 26, 2022

#1 in #opinionated

Download history 537/week @ 2024-01-25 609/week @ 2024-02-01 1511/week @ 2024-02-08 2019/week @ 2024-02-15 1502/week @ 2024-02-22 1573/week @ 2024-02-29 1857/week @ 2024-03-07 1111/week @ 2024-03-14 2095/week @ 2024-03-21 1198/week @ 2024-03-28 1030/week @ 2024-04-04 2158/week @ 2024-04-11 1670/week @ 2024-04-18 1371/week @ 2024-04-25 1091/week @ 2024-05-02 417/week @ 2024-05-09

4,891 downloads per month
Used in 3 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.3.1"

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

~23–39MB
~411K SLoC