Sankhya.Mudra.Rupantraan 1.0.0

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

Sankhya.Mudra.Rupantraan

A lightweight .NET Framework library for real-time currency conversion and exchange rate fetching, leveraging the Frankfurter.dev API. "Sankhya.Mudra.Rupantraan" translates from Sanskrit to "Numerical Currency Transformation," embodying its core purpose.

This package provides a simple and efficient way to integrate currency conversion capabilities into your .NET Framework applications, including VSTO Add-ins for Excel.

Features

  • Get All Currencies: Retrieve a comprehensive list of all supported currency codes and their full names.
  • Convert Currency: Easily convert amounts between any two supported currencies based on the latest exchange rates.
  • No API Key Required: Utilizes the free Frankfurter.dev API, which does not require an API key for public use.
  • Reliable: Built with robust error handling and fallback mechanisms.

Installation

Install the Sankhya.Mudra.Rupantraan NuGet package into your .NET Framework project:

Install-Package Sankhya.Mudra.Rupantraan

Or via the .NET CLI:

dotnet add package Sankhya.Mudra.Rupantraan

Usage

Here's a quick example of how to use the CurrencyService to fetch currencies and perform a conversion:

using Sankhya.Mudra.Rupantraan;
using System;
using System.Threading.Tasks;

public class Program
{
    public static async Task Main(string[] args)
    {
        var currencyService = new CurrencyService();

        // Get all available currencies
        Console.WriteLine("Fetching all currencies...");
        var currencies = await currencyService.GetCurrenciesAsync();
        foreach (var currency in currencies)
        {
            Console.WriteLine($"{currency.Key}: {currency.Value}");
        }

        // Convert 100 USD to INR
        decimal amountToConvert = 100;
        string fromCurrency = "USD";
        string toCurrency = "INR";

        Console.WriteLine($"\nConverting {amountToConvert} {fromCurrency} to {toCurrency}...");
        decimal convertedAmount = await currencyService.ConvertCurrencyAsync(
            fromCurrency, 
            toCurrency, 
            amountToConvert
        );

        Console.WriteLine($"{amountToConvert} {fromCurrency} = {convertedAmount:F2} {toCurrency}");
    }
}

API Details

This library relies on the Frankfurter.dev API. All exchange rates are quoted against the Euro (EUR) by default and are sourced from the European Central Bank.

Contribution

Feel free to open issues or submit pull requests on the GitHub repository if you find any bugs or have suggestions for improvements.

License

This project is licensed. Check the repo for license.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.0 123 11/1/2025

Here are the metadata fields for your package delivery, ready to copy and paste.

Description
A lightweight .NET Framework library for real-time currency conversion and exchange rate fetching, leveraging the Frankfurter.dev API. "Sankhya.Mudra.Rupantraan" translates from Sanskrit to "Numerical Currency Transformation," embodying its core purpose. This package provides a simple and efficient way to integrate currency conversion capabilities into your .NET Framework applications, including VSTO Add-ins for Excel.

Copyright
Copyright © 2025 Yash Saini

Tags
currency;conversion;exchange;rates;frankfurter;vsto;excel;finance;money;rupantraan

Release Notes
Version 1.0.0: Initial release of the Sankhya.Mudra.Rupantraan library.

Includes CurrencyService for fetching all available currencies.

Provides ConvertCurrencyAsync method to convert amounts between any two supported currencies.

Uses the free Frankfurter.dev API (v1) with no API key required.

Includes fallback for GetCurrenciesAsync in case of API failure.