amlengine-2.0.5.4
توضیحات
Easy access to the .Net implementation of the AML.Engine (https://github.com/AutomationML/AMLEngine2.1)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | amlengine-2.0.5.4 |
| نام | amlengine |
| نسخه کتابخانه | 2.0.5.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matthias Freund |
| ایمیل نویسنده | matth.freund@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/amlengine/ |
| مجوز | - |
# Python AML.Engine
This provides access to the .Net implementation of the [AML.Engine](https://github.com/AutomationML/AMLEngine2.1) - an API for simple access to AutoamtionML files.
Access to the functionalities of the .Net dlls is provided via the [pythonnet](https://pythonnet.github.io/) 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
```python
# 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
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl amlengine-2.0.5.4:
pip install amlengine-2.0.5.4.whl
نصب پکیج tar.gz amlengine-2.0.5.4:
pip install amlengine-2.0.5.4.tar.gz