#client #schema #id #open-api #name #registry #generated

benchling

Benchling client, generated from the OpenAPI spec

5 releases (major breaking)

5.0.0 Nov 8, 2022
4.0.0 Oct 30, 2022
3.0.0 Oct 27, 2022
2.0.0 Oct 21, 2022
1.0.0 Oct 13, 2022

#2303 in Database interfaces

22 downloads per month

MIT license

1MB
26K SLoC

GitHub Contributors Stars Build Status Downloads Crates.io

Benchling client, generated from the OpenAPI spec.

Usage

use benchling::BenchlingClient;
use benchling::model::*;
#[tokio::main]
async fn main() {
    let client = BenchlingClient::from_env();
    let response = client
        .list_aa_sequences()
        .page_size(1)
        .next_token("your next token")
        .sort("your sort")
        .modified_at("your modified at")
        .name("your name")
        .name_includes("your name includes")
        .amino_acids("your amino acids")
        .folder_id("your folder id")
        .mentioned_in("your mentioned in")
        .project_id("your project id")
        .registry_id("your registry id")
        .schema_id("your schema id")
        .schema_fields(SchemaFieldsQueryParam {})
        .archive_reason("your archive reason")
        .mentions("your mentions")
        .ids("your ids")
        .entity_registry_ids_any_of("your entity registry ids.any of")
        .names_any_of("your names.any of")
        .names_any_of_case_sensitive("your names.any of.case sensitive")
        .creator_ids("your creator ids")
        .author_ids_any_of("your author ids.any of")
        .send()
        .await
        .unwrap();
    println!("{:#?}", response);
}

This example loads configuration from environment variables, specifically:

  • BENCHLING_BASIC_API_KEY_AUTH

Installation

Add this to your Cargo.toml:

[dependencies]
benchling = "0.1.0"

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.

Dependencies

~15–27MB
~555K SLoC