ArgosTranslate.PyNet
1.0.16
See the version list below for details.
dotnet add package ArgosTranslate.PyNet --version 1.0.16
NuGet\Install-Package ArgosTranslate.PyNet -Version 1.0.16
<PackageReference Include="ArgosTranslate.PyNet" Version="1.0.16" />
paket add ArgosTranslate.PyNet --version 1.0.16
#r "nuget: ArgosTranslate.PyNet, 1.0.16"
// Install ArgosTranslate.PyNet as a Cake Addin
#addin nuget:?package=ArgosTranslate.PyNet&version=1.0.16
// Install ArgosTranslate.PyNet as a Cake Tool
#tool nuget:?package=ArgosTranslate.PyNet&version=1.0.16
ArgosTranslate.PyNet
.NET Wrapper for the Argos Translate Python Library
Description
ArgosTranslate.PyNet
is a .NET library that provides a convenient interface for integrating the functionality of the open-source Python library, Argos Translate
, into .NET applications. Argos Translate is an open-source offline translation library that uses OpenNMT for translations.
This wrapper is built on top of pythonnet, which enables calling Python libraries from .NET. The library takes care of setting up the Python environment, managing dependencies, and exposing functionalities seamlessly to the .NET environment.
Features
- Easy Python environment setup and management.
- Configuration flexibility with support for both embedded Python or custom installations.
- Out-of-the-box support for Argos Translate functionalities including translation and language model management.
Getting Started
Prerequisites
Installation
- Clone the repository:
git clone [repository_url]
- Navigate to the project directory:
cd [project_directory]
- Build the solution using .NET CLI or using your preferred .NET development environment.
Usage
- Create an instance of the ArgosTranslatePyInstaller:
var config = new ArgosTranslatePyConfig
{
PythonEmbeddableZipDownloadUrlOrLocalPath = "[Path_to_Python_Embeddable_Zip_or_URL]"
};
var installer = ArgosTranslatePyInstallerFactory.CreateInstaller(config);
- Install the Python environment and the Argos Translate library:
installer.Install();
- After your operations, ensure to close the Python engine:
installer.Close();
Contributing
Contributions are welcome!
License
This project is open-source, licensed under MIT License. See MIT LICENSE for more details.
Acknowledgments
- Argos Translate: [https://github.com/argosopentech/argos-translate]
- PythonNet: [https://github.com/pythonnet/pythonnet]
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
-
net7.0
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
- pythonnet (>= 3.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.