AurelienAVZN.OpenWeather.Client 0.0.1

dotnet add package AurelienAVZN.OpenWeather.Client --version 0.0.1
                    
NuGet\Install-Package AurelienAVZN.OpenWeather.Client -Version 0.0.1
                    
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="AurelienAVZN.OpenWeather.Client" Version="0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AurelienAVZN.OpenWeather.Client" Version="0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="AurelienAVZN.OpenWeather.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AurelienAVZN.OpenWeather.Client --version 0.0.1
                    
#r "nuget: AurelienAVZN.OpenWeather.Client, 0.0.1"
                    
#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.
#:package AurelienAVZN.OpenWeather.Client@0.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AurelienAVZN.OpenWeather.Client&version=0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=AurelienAVZN.OpenWeather.Client&version=0.0.1
                    
Install as a Cake Tool

☁️ OpenWeather Client for .NET

NuGet GitLab Pipeline License: MIT

A strongly-typed C# client library for the OpenWeather API, built on .NET 10.

πŸ“¦ Packages

Package Description NuGet
AurelienAVZN.OpenWeather.Client Main client library NuGet
AurelienAvzn.OpenWeather.Client.Core Core logic & configuration NuGet
AurelienAVZN.OpenWeather.Client.Bundles DTOs, forms & result models NuGet

✨ Supported APIs

πŸš€ Getting Started

Prerequisites

Installation

dotnet add package AurelienAVZN.OpenWeather.Client

Configuration

using AurelienAVZN.OpenWeather.Client.Core;

var config = new OpenWeatherConfig
{
    ApiKey = "YOUR_API_KEY",
    Urls = new OpenWeatherUrls() // default URLs are pre-configured
};

Usage Example

using AurelienAVZN.OpenWeather.Client.Bundles;

// Build a request for current weather (Paris, France)
var form = new CurrentWeatherForm
{
    Lat = 48,
    Lon = 2,
    AppId = config.ApiKey,
    Units = "metric",
    Lang = "fr"
};

πŸ—οΈ Project Structure

openweather.client.csharp/
β”œβ”€β”€ AurelienAVZN.OpenWeather.Client.Bundles/   # DTOs & models
β”‚   β”œβ”€β”€ Forms/                                 # Request models
β”‚   β”‚   β”œβ”€β”€ Common/                            #   Shared form base
β”‚   β”‚   └── CurrentForecast/                   #   Weather & road risk forms
β”‚   └── Results/                               # Response models
β”‚       └── Json/                              #   JSON deserialization models
β”‚           β”œβ”€β”€ Common/                        #     Shared result base
β”‚           └── CurrentForecast/               #     Weather & forecast results
β”œβ”€β”€ AurelienAvzn.OpenWeather.Client.Core/      # Core logic & config
β”‚   └── Config/                                #   OpenWeatherConfig & URLs
β”œβ”€β”€ OpenWeather.Client/                        # Main client library
β”œβ”€β”€ .gitlab-ci.yml                             # CI/CD pipeline
└── OpenWeather.slnx                           # Solution file

βš™οΈ CI/CD

The project uses GitLab CI/CD with automatic publishing:

  1. Create a tag following the pattern vX.Y.Z (e.g., v1.0.0)
  2. The pipeline automatically:
    • βœ… Builds the solution
    • πŸ“¦ Packs all NuGet packages
    • πŸš€ Publishes to NuGet.org
    • 🏷️ Creates a GitLab Release
git tag v1.0.0
git push origin v1.0.0

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/my-feature)
  3. Commit your changes (git commit -m 'Add my feature')
  4. Push to the branch (git push origin feature/my-feature)
  5. Open a Merge Request

πŸ“„ License

This project is licensed under the MIT License β€” see the LICENSE file for details.

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

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on AurelienAVZN.OpenWeather.Client:

Package Downloads
AurelienAvzn.OpenWeather.Client.Core

Core logic for the OpenWeather API client.

AurelienAVZN.OpenWeather.Client.Bundles

Bundles (DTOs, forms) for the OpenWeather API client.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.1 153 7/5/2026