Giana.Api 0.0.8.31-alpha

This is a prerelease version of Giana.Api.
dotnet add package Giana.Api --version 0.0.8.31-alpha
                    
NuGet\Install-Package Giana.Api -Version 0.0.8.31-alpha
                    
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="Giana.Api" Version="0.0.8.31-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Giana.Api" Version="0.0.8.31-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Giana.Api" />
                    
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 Giana.Api --version 0.0.8.31-alpha
                    
#r "nuget: Giana.Api, 0.0.8.31-alpha"
                    
#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 Giana.Api@0.0.8.31-alpha
                    
#: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=Giana.Api&version=0.0.8.31-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Giana.Api&version=0.0.8.31-alpha&prerelease
                    
Install as a Cake Tool

Giana.Api readme

Functional API

const string gitExePath = @"C:\Program Files\Git\bin\git.exe";
const string gitRepository = "https://github.com/dotnet/wpf.git";

string tempClone = Actions.CreateCloneFromUri(gitRepository, gitExePath);
string repoName = Actions.RequestRepositoryName(tempClone, gitExePath);

var records = Actions.RequestGitLog(tempClone, repoName, gitExePath);

records = records.WithTimeRange(DateTime.Now.AddMonths(-6), DateTime.Now);
records = records.RenameAuthor("Thomas Goulet", "ThomasGoulet73");

var authorRanking = AuthorRankingCalculations.CreateAuthorRankingSorted(records);
AuthorRankingActions.WriteAsCsv(authorRanking, Console.Out);

Output, 26. Jan 2025

Author,FileTouches
Jeremy Kuhne,3994
Harshit,927
h3xds1nz,664
dotnet-maestro[bot],474
Thomas Goulet,343
Hugh Bellamy,147
Himanshi Goyal,141
Dipesh Kumar,113
Adam Sitnik,59
Sia Gupta,48
Ashish Kumar Singh,45
Pankaj Chaurasia,12
Anjali,12
Eric StJohn,12
Kuldeep,8
Mitch Razga,5
Loni Tra,5
...

Fluent API

const string gitExePath = @"C:\Program Files\Git\bin\git.exe";
const string gitRepository = "https://github.com/dotnet/wpf.git";

var repo = await GitRepository.CreateAsync(gitRepository, gitExePath);

var records = await repo.LogAsync();

records = await records
  .TimeRange().In(DateTime.Now.AddMonths(-6), DateTime.Now)
  .Rename().Author("Thomas Goulet", "ThomasGoulet73")
  .BuildAsync();

var authorRanking = AuthorRankingCalculations.CreateAuthorRankingSorted(records);
AuthorRankingActions.WriteAsCsv(authorRanking, Console.Out);

Output, 26. Jan 2025

Author,FileTouches
Jeremy Kuhne,3994
Harshit,927
h3xds1nz,664
dotnet-maestro[bot],474
Thomas Goulet,343
Hugh Bellamy,147
Himanshi Goyal,141
Dipesh Kumar,113
Adam Sitnik,59
Sia Gupta,48
Ashish Kumar Singh,45
Pankaj Chaurasia,12
Anjali,12
Eric StJohn,12
Kuldeep,8
Mitch Razga,5
Loni Tra,5
...
Product 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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Giana.Api:

Package Downloads
Giana.App

C# Application API for Git Analysis (giana)

GitHub repositories

This package is not used by any popular GitHub repositories.

pre-release. Remember, anything can happen in a pre-release.