aacommpy - AAComm nuget package wrapper
Project description
AACommPy Package Documentation
AACommPy is a Python package that provides functionalities for working with the AAComm nuget package. AAComm is a nuget package used for communication with FPGA devices. AACommPy provides a Python wrapper for the AAComm nuget package, allowing you to use the nuget package's functionalities in your Python scripts.
1.Installation To install AACommPy, follow these steps: Download the Python package for AACommPy by executing the following command:
pip install aacommpy
Once the package is installed, you can access its functionalities from your Python scripts.
- Usage To use AACommPy, you can import the necessary modules and call the available functions. Here's an example of how to use the package: ---------python------------ from aacommpy.settings import AACOMM_SERVER_EXE_PATH from aacommpy.AAComm import CommAPI, Services, Shared
api = CommAPI()
status = CommAPI.StartAACommServer(AACOMM_SERVER_EXE_PATH)
if status != "": print(status) else: # Access the static variable IsAACommServerRunning is_running = CommAPI.IsAACommServerRunning print(f"AACommServer is running: {is_running}")
cData = Services.ConnectionData() cData.ControllerType = Shared.ProductTypes.AGM800_ID cData.CommChannelType = Shared.ChannelType.Ethernet cData.ET_IP_1 = 172 cData.ET_IP_2 = 1 cData.ET_IP_3 = 1 cData.ET_IP_4 = 101 cData.ET_Port = 5000
res = api.Connect(cData) print(res)-------------------------
3.Available Commands AACommPy provides several commands that can be executed through the command line using the installed package. These commands include:
3.1.install: Downloads and installs the AAComm package. You can specify a version using the --version option. the version number is the same with the AAComm nuget package version you want to use with you python script. 3.2.version: Retrieves the installed version of AAComm. 3.3.update: Updates the installed AAComm package to the latest version. 3.4.dotnetfw: Sets the .NET framework version of AAComm library. You can choose from the available options: net40, net48, net6.0, net8.0. The default version is net48.
Example Usage Here's an example of how to use the AACommPy package:
Install the package:
pip install aacommpy #Run the command to download and install the AAComm package:
aacommpy install #Check the installed version of AAComm:
aacommpy version #Update the AAComm package to the latest version:
aacommpy update #Set the .NET framework version to be used by AAComm to net4.8:
aacommpy dotnetfw --netfw net48 #Please note that the usage examples provided assume that you have the necessary permissions to install packages and run the commands.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aacommpy-0.2.4.tar.gz
.
File metadata
- Download URL: aacommpy-0.2.4.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f011c6ede5cd2533e050fa9112f5e331652487a0ddd6b5e49b0f6bc8f8d5679 |
|
MD5 | f08ee4a1b24b013679dd260f44413202 |
|
BLAKE2b-256 | 3f9d907c13022685dcb03798629bc0e5bf895bac651e373f0688e5c85c2ff58d |
File details
Details for the file aacommpy-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: aacommpy-0.2.4-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 277d622c67fd4646d507285ac616ca035e1f703ff63e98b21c982536d63ea7f7 |
|
MD5 | 7e549c9542b106441b03d6be88ee9dfb |
|
BLAKE2b-256 | 4f166d4d444775611dcdb9b3488ba910fa35216f16b1d491a2159637bf316b68 |