[][src]Crate kosmos

Kosmos: A client library for apis of the cosmos.

Kosmos is a client library for a whole host of apis dealing with the universe. This includes apis for our earth e.g. Geomagnetism data, sea level data, as well as apis dealing with space. Specific services are exposed under their respective owning organization, e.g. Nasa's Astronomy Photo of the Day requires you to build a NasaClient. This is because most organizations share an auth strategy over all their services.

The apis are behind feature flags but all are included by default. If you want to cherry-pick apis, use deafult-features = false.

Organizations (and feature flags) with APIs we support (so far)

  • nasa NASA Open APIs

Lookup an Asteroid

// Get asteroid 3542519 from the NASA NeoWS
let asteroid = Kosmos::new().nasa().neo().lookup(3542519).await;

Re-exports

pub use self::error::Error;

Modules

error
nasa

Structs

Kosmos

Type Definitions

Result