CelesTrakSdk 0.0.11

dotnet add package CelesTrakSdk --version 0.0.11                
NuGet\Install-Package CelesTrakSdk -Version 0.0.11                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CelesTrakSdk" Version="0.0.11" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CelesTrakSdk --version 0.0.11                
#r "nuget: CelesTrakSdk, 0.0.11"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CelesTrakSdk as a Cake Addin
#addin nuget:?package=CelesTrakSdk&version=0.0.11

// Install CelesTrakSdk as a Cake Tool
#tool nuget:?package=CelesTrakSdk&version=0.0.11                

CelesTrakSdk

GitHub Workflow Status GitHub Workflow Status GitHub top language GitHub FTB

Introduction

This is a C# SDK for working with the CelesTrak APIs. These APIs are largely modified versions of the Space Track APIs that are slightly easier to work with and have some QoL improvements.

Currently, only the SATCAT Records API is implemented, this may be expanded on in the future.

Getting Started

There are two packages CelesTrakSdk and CelesTrakSdk.Microsoft.Extensions.DependencyInjection, you'll want to install both using NuGet.

Register the services with your DI provider using:

services.AddCelesTrakServices();

This API has no authentication, so that's all there is to it.

You should then be able to inject ICelesTrakClient into any of your services.

Getting Data

There are currently three methods on the client interface:

public interface ICelesTrakClient
{
	public Task<SatCatRecord?>      GetRecord(SatCatRecordQueryType  queryType, string queryValue);
	public Task<List<SatCatRecord>> GetRecords(SatCatRecordQueryType queryType, string queryValue);
	public Task<List<SatCatRecord>> GetAllRecords();
}

You can get a single record, get a group of records, or get all records.

Queries are very simple, consisting of a type and a value. The following types are available, these are defined by CelesTrak:

  • CatalogNumber
  • InternationalDesignator
  • Group
  • Name
  • Special

It's worth noting, this SDK currently does no validation of query values. Furthermore, if a query passed to .GetRecord() returns multiple values, only the first will be returned.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CelesTrakSdk:

Package Downloads
CelesTrakSdk.Microsoft.Extensions.DependencyInjection

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.11 91 5/3/2024
0.0.10 124 4/21/2024
0.0.9 145 1/20/2024
0.0.8 127 1/16/2024
0.0.7 119 1/16/2024
0.0.6 183 7/23/2023
0.0.5 197 6/12/2023
0.0.4 172 6/4/2023
0.0.3 246 3/14/2023
0.0.2 247 3/13/2023
0.0.1 259 3/13/2023