Easy access to the .Net implementation of the AML.Engine (https://github.com/AutomationML/AMLEngine2.1)
Project description
Python AML.Engine
This provides access to the .Net implementation of the AML.Engine - an API for simple access to AutoamtionML files.
Access to the functionalities of the .Net dlls is provided via the pythonnet package.
Besides the access to the native API of the AML.Engine, the package also contains some additional helper functions implemented in Python that are available via the amlhelper module.
Usage
# ensure the package is loaded correctly and the required DLLs are registered with pythonnet
import amlengine
# depending on what functionalities you want to use
from Aml.Engine import *
from Aml.Engine.CAEX import *
from Aml.Engine.CAEX.Extensions import *
from Aml.Engine.AmlObjects import *
from Aml.Engine.AmlObjects.Extensions import *
from Aml.Engine.Services import *
from Aml.Engine.Adapter import *
# access to the native .Net API
aml_file = CAEXDocument.New_CAEXDocument(CAEXDocument.CAEXSchema.CAEX2_15)
.Net version
By default, the DLLs compiled for .Net Framework 4.8 are used. However, using another version provided by the AML.Engine is also possible. Therefore, set the environment variable AML_ENGINE_DOTNET_VERSION to one of the following values before importing the amlengine:
- net5.0
- net6.0
- net48 (default)
- netcoreapp3.1
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file amlengine-2.0.5.4.tar.gz
.
File metadata
- Download URL: amlengine-2.0.5.4.tar.gz
- Upload date:
- Size: 3.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8632325bf6e8cf4ee3453d080a2e10079d7b2467d76a4797143fc87f7576e5e |
|
MD5 | c688fbfa8a103c14ca4ec4144b875f8b |
|
BLAKE2b-256 | 01bcda3e5276d5b4930afd30b3ad6dc6041d6ce86eb7162b81a4e525c4513c05 |