Skip to main content

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.

Note: Starting from version 0.3.8, AACommPy will automatically download and install the AAComm NuGet package on first import if it's not already installed. You no longer need to run aacommpy install manually (though you still can if preferred).

  1. 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 import CommAPI, Services, Shared, AACOMM_SERVER_EXE_PATH

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: 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

The AAComm NuGet package will be automatically downloaded on first import. Alternatively, you can manually install it:

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 net48:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aacommpy-0.3.8.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aacommpy-0.3.8-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file aacommpy-0.3.8.tar.gz.

File metadata

  • Download URL: aacommpy-0.3.8.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for aacommpy-0.3.8.tar.gz
Algorithm Hash digest
SHA256 e663cb843009c56278a3c2de4fa9ead7ceb72df496db15862336f4fd28b310e4
MD5 295fb58cdd848820b44a470a72319f0b
BLAKE2b-256 9a5b50b3767407e7a77e2101f26b6bb33ec7b189c490fedebe750e6ff1f88feb

See more details on using hashes here.

File details

Details for the file aacommpy-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: aacommpy-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for aacommpy-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ecc1ef7e6f46beba2c5ada9843dbfe62f2e781be86f84fd2fa0e2896eb55fd1f
MD5 192db657c0ab852bda75e5eaca09a96f
BLAKE2b-256 e1db00222afa66772e006a73891de861cb3e930afd7cde83f849f0878d62279f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page