https://github.com/guibranco/sankhya-sdk-dotnet
📊 ⚙️ Sankhya platform .NET SDK
https://github.com/guibranco/sankhya-sdk-dotnet
api dotnet dotnet-core dotnetcore dotnetframework erp hacktoberfest sankhya sankhya-api sankhya-nuget sankhya-platform-sdk sankhya-sdk-dotnet sdk
Last synced: 13 days ago
JSON representation
📊 ⚙️ Sankhya platform .NET SDK
- Host: GitHub
- URL: https://github.com/guibranco/sankhya-sdk-dotnet
- Owner: guibranco
- License: mit
- Created: 2023-01-15T23:30:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-16T06:49:27.000Z (27 days ago)
- Last Synced: 2026-02-16T12:22:44.751Z (27 days ago)
- Topics: api, dotnet, dotnet-core, dotnetcore, dotnetframework, erp, hacktoberfest, sankhya, sankhya-api, sankhya-nuget, sankhya-platform-sdk, sankhya-sdk-dotnet, sdk
- Language: C#
- Homepage: http://guilherme.stracini.com.br/Sankhya-SDK-dotnet/
- Size: 1.68 MB
- Stars: 5
- Watchers: 0
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sankhya SDK
📊⚙️ [Sankhya](https://www.sankhya.com.br/) .NET SDK.
[](https://github.com/guibranco/Sankhya-SDK-dotnet)
[](https://wakatime.com/badge/github/guibranco/Sankhya-SDK-dotnet)

## CI/CD
| Build status | Last commit | Tests | Coverage | Code Smells | LoC |
|--------------|-------------|-------|----------|-------------|-----|
| [](https://ci.appveyor.com/project/guibranco/Sankhya-SDK-dotnet/branch/main) | [](https://github.com/guibranco/Sankhya-SDK-dotnet) | [](https://ci.appveyor.com/project/guibranco/Sankhya-SDK-dotnet/branch/main/tests) | [](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet) | [](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet) | [](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet)
## Code Quality
[](https://app.codacy.com/gh/guibranco/Sankhya-SDK-dotnet/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[](https://app.codacy.com/gh/guibranco/Sankhya-SDK-dotnet/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
[](https://codecov.io/gh/guibranco/Sankhya-SDK-dotnet)
[](https://www.codefactor.io/repository/github/guibranco/Sankhya-SDK-dotnet)
[](https://codeclimate.com/github/guibranco/Sankhya-SDK-dotnet/maintainability)
[](https://codeclimate.com/github/guibranco/Sankhya-SDK-dotnet/test_coverage)
[](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet)
[](https://sonarcloud.io/dashboard?id=guibranco_Sankhya-SDK-dotnet)
---
## Installation
### Github Releases
[](https://github.com/guibranco/Sankhya-SDK-dotnet) [](https://github.com/guibranco/Sankhya-SDK-dotnet)
Download the latest `.zip` file from the [Releases](https://github.com/GuiBranco/Sankhya-SDK-dotnet/releases) page.
### Nuget package manager
| Package | Version | Downloads |
|------------------|:-------:|:-------:|
| **Sankhya** | [](https://www.nuget.org/packages/Sankhya/) | [](https://www.nuget.org/packages/Sankhya/) |
---
## Features
The SDK provides a comprehensive implementation of Sankhya's web services. If the service you need is not included, you can independently implement the request/response and contribute via pull requests.
### Key Highlights
- **Know Services:** Predefined service wrappers for common operations.
- **Sankhya Wrapper:** Handles low-level HTTP requests, serialization, and authentication.
- **Extensibility:** Add custom functionality by extending the SDK.
For details, check the [Know Services Wiki](https://github.com/guibranco/Sankhya-SDK-dotnet/wiki/1.1.1-%E2%80%90-Know-Services-Request-Wrapper-(KSRW)).
---
## Usage
### Dependency Injection (IoC)
Register the Sankhya wrapper using the `CrispyWaffle` toolkit's [Service Locator](https://guibranco.github.io/CrispyWaffle/user-guide/serviceLocator/):
```csharp
var connectionSankhya = new Connection(); // Fill in your details
ServiceLocator.Register(() => new SankhyaContext(connectionSankhya), LifeStyle.Singleton);
```
#### Constructor Injection
```csharp
public class MyClass
{
private readonly SankhyaContext _sankhyaContext;
public MyClass(SankhyaContext sankhyaContext)
{
_sankhyaContext = sankhyaContext ?? throw new ArgumentNullException(nameof(sankhyaContext));
}
}
```
#### Manual Resolution
```csharp
var sankhyaContext = ServiceLocator.Resolve();
```
---
### Session Management
Retrieve and manage active sessions:
```csharp
var sessions = KnowServicesRequestWrapper.GetSessions();
foreach (var session in sessions)
{
KnowServicesRequestWrapper.KillSession(session.Id);
}
```
---
## Support
If you need help, feel free to [open an issue](https://github.com/guibranco/Sankhya-SDK-dotnet/issues/new).
---
## Contributing
Contributions are welcome! Check out the [CONTRIBUTING.md](CONTRIBUTING.md) guide for details.
---
## SDK Implementations
This Sankhya SDK is available in multiple programming languages:
| Language | Repository | Maintainer |
|----------|------------|------------|
| **.NET** | [Sankhya-SDK-dotnet](https://github.com/guibranco/Sankhya-SDK-dotnet) | [@guibranco](https://github.com/guibranco) |
| **Python** | [Sankhya-SDK-python](https://github.com/ssmvictor/Sankhya-SDK-python) | [@ssmvictor](https://github.com/ssmvictor) |
Each implementation provides language-specific features and follows the conventions of its respective ecosystem while maintaining compatibility with Sankhya's web services.
---
## Contributors
Thanks to all contributors! 💙
Guilherme Branco Stracini
Fedor Andriyaninkov
Pedro Henrique
Viktorius Suwandi
### Bots
dependabot[bot]
github-actions[bot]
penify-dev[bot]
stack-file[bot]
gitauto-ai[bot]
codefactor-io[bot]
Snyk bot