WeatherAPI-CSharp
0.5.5
dotnet add package WeatherAPI-CSharp --version 0.5.5
NuGet\Install-Package WeatherAPI-CSharp -Version 0.5.5
<PackageReference Include="WeatherAPI-CSharp" Version="0.5.5" />
<PackageVersion Include="WeatherAPI-CSharp" Version="0.5.5" />
<PackageReference Include="WeatherAPI-CSharp" />
paket add WeatherAPI-CSharp --version 0.5.5
#r "nuget: WeatherAPI-CSharp, 0.5.5"
#:package WeatherAPI-CSharp@0.5.5
#addin nuget:?package=WeatherAPI-CSharp&version=0.5.5
#tool nuget:?package=WeatherAPI-CSharp&version=0.5.5
All badges are clickable for more information
WeatherAPI CSharp
This is a small wrapper library to be used with the weatherapi.com API. It is a much simpler alternative to the official library, with the goal to make building any kind of weather app easy. There are no complicated classes are functions to worry about, you just create your client, call the function, and get perfectly parsed, easily acessable data returned, no need for verbose code.
Getting started (Extract from the documentation)
To get started, you can take a look at the minimal setup down below.
Install the package
dotnet add package WeatherAPI-CSharp
Setup a minimal project
using WeatherAPI_CSharp;
var client = new APIClient("YOUR-API-KEY");
var weather = await client.GetWeatherCurrentAsync("Berlin");
Console.WriteLine($"The temperature in Berlin is {weather.TemperatureCelsius}C at a wind speed of {weather.WindKph}km/h");
API Implementation
The currently implemented endpoints are:
- Current (current.json)
- Forecast daily (forecast.json)
- Forecast hourly (forecast.json)
- IP Lookup (ip.json)
Contribution
For contribution guidelines, refer to the documentation. Coding guidelines can be found here, and contribution guidelines can be found here.
Development Status
Status | Description |
---|---|
Active | The project is actively being worked on and new features are being added |
On Demand | Bugs and other Issues will be fixed, but no new features will be added |
Paused | No development will take place at the moment, but this may change in the future |
Ceased | The project will not be worked on AT ALL |
The development status can change at any time in both ways (more/less work being done).
License
This software is licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.4)
- System.Text.RegularExpressions (>= 4.3.1)
-
net9.0
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.4)
- System.Text.RegularExpressions (>= 4.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated | |
---|---|---|---|
0.5.5 | 870 | 11/27/2024 | |
0.5.4 | 191 | 4/8/2024 | |
0.5.2 | 217 | 9/23/2023 | |
0.5.1 | 255 | 4/13/2023 | |
0.5.0 | 282 | 3/25/2023 | |
0.4.3 | 281 | 3/25/2023 | |
0.4.2 | 295 | 2/24/2023 | |
0.4.1 | 333 | 2/20/2023 | |
0.4.0 | 320 | 2/20/2023 | |
0.3.1 | 369 | 2/18/2023 | |
0.3.0 | 380 | 2/18/2023 | |
0.2.2 | 362 | 2/18/2023 | |
0.2.1 | 352 | 2/16/2023 | |
0.2.0 | 341 | 2/16/2023 | |
0.1.0 | 401 | 2/15/2023 |