ArgosTranslate.PyNet 1.0.21

There is a newer version of this package available.
See the version list below for details.
dotnet add package ArgosTranslate.PyNet --version 1.0.21
NuGet\Install-Package ArgosTranslate.PyNet -Version 1.0.21
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="ArgosTranslate.PyNet" Version="1.0.21" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ArgosTranslate.PyNet --version 1.0.21
#r "nuget: ArgosTranslate.PyNet, 1.0.21"
#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.
// Install ArgosTranslate.PyNet as a Cake Addin
#addin nuget:?package=ArgosTranslate.PyNet&version=1.0.21

// Install ArgosTranslate.PyNet as a Cake Tool
#tool nuget:?package=ArgosTranslate.PyNet&version=1.0.21

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

  1. Clone the repository:
git clone [repository_url]
  1. Navigate to the project directory:
cd [project_directory]
  1. Build the solution using .NET CLI or using your preferred .NET development environment.

Usage

  1. Create an instance of the ArgosTranslatePyInstaller:
var config = new ArgosTranslatePyConfig
{
    PythonEmbeddableZipDownloadUrlOrLocalPath = "[Path_to_Python_Embeddable_Zip_or_URL]"
};

var installer = ArgosTranslatePyInstallerFactory.CreateInstaller(config);
  1. Install the Python environment and the Argos Translate library:
installer.Install();
  1. 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 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. 
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
2.0.3 174 3/17/2024
2.0.2 125 3/17/2024
2.0.1 121 3/17/2024
2.0.0 139 3/17/2024
1.2.2 294 11/20/2023
1.0.30 119 11/16/2023
1.0.28 98 11/16/2023
1.0.23 106 11/15/2023
1.0.22 101 11/15/2023
1.0.21 101 11/15/2023
1.0.16 134 11/6/2023