aacommpy


Nameaacommpy JSON
Version 0.1.38 PyPI version JSON
download
home_pagehttps://github.com/jamesbond90/aacommpyDownloader
Summaryaacommpy - AACOMM nuget package wrapper
upload_time2023-06-19 13:49:08
maintainer
docs_urlNone
authorHIEU
requires_python>=3.10.1
licenseMIT
keywords package development stage
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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.

2. 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------------
import clr
import os
path = os.path.join(os.path.dirname(__file__), 'AAComm.dll')
clr.AddReference(path)
from AAComm import Services
from AAComm import CommAPI
from AAComm import Shared
api = CommAPI()
status = CommAPI.StartAACommServer()
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, net46, net48, netcoreapp3.1, net5.0. The default version is net40.

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 net5.0:


aacommpy dotnetfw --netfw net5.0
#Please note that the usage examples provided assume that you have the necessary permissions to install packages and run the commands.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jamesbond90/aacommpyDownloader",
    "name": "aacommpy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10.1",
    "maintainer_email": "",
    "keywords": "package development stage",
    "author": "HIEU",
    "author_email": "trunghieupcs@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1a/1b/f2cd63af63c85b04efc3e984dce3b71f8aafb6fd9f7bebd5184418e85bc5/aacommpy-0.1.38.tar.gz",
    "platform": null,
    "description": "AACommPy Package Documentation\r\n\r\nAACommPy 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.\r\n\r\n1.Installation\r\nTo install AACommPy, follow these steps:\r\nDownload the Python package for AACommPy by executing the following command:\r\n\r\npip install aacommpy\r\n\r\nOnce the package is installed, you can access its functionalities from your Python scripts.\r\n\r\n2. Usage\r\nTo use AACommPy, you can import the necessary modules and call the available functions. Here's an example of how to use the package:\r\n---------python------------\r\nimport clr\r\nimport os\r\npath = os.path.join(os.path.dirname(__file__), 'AAComm.dll')\r\nclr.AddReference(path)\r\nfrom AAComm import Services\r\nfrom AAComm import CommAPI\r\nfrom AAComm import Shared\r\napi = CommAPI()\r\nstatus = CommAPI.StartAACommServer()\r\nif status != \"\":\r\n    print(status)\r\nelse:\r\n    # Access the static variable IsAACommServerRunning\r\n    is_running = CommAPI.IsAACommServerRunning\r\n    print(f\"AACommServer is running: {is_running}\")\r\ncData = Services.ConnectionData()\r\ncData.ControllerType = Shared.ProductTypes.AGM800_ID\r\ncData.CommChannelType = Shared.ChannelType.Ethernet\r\ncData.ET_IP_1 = 172\r\ncData.ET_IP_2 = 1\r\ncData.ET_IP_3 = 1\r\ncData.ET_IP_4 = 101\r\ncData.ET_Port = 5000\r\nres = api.Connect(cData)\r\nprint(res)\r\n-------------------------\r\n3.Available Commands\r\nAACommPy provides several commands that can be executed through the command line using the installed package. These commands include:\r\n\r\n3.1.install: Downloads and installs the AAComm package. You can specify a version using the --version option.\r\n    the version number is the same with the AAComm nuget package version you want to use with you python script.\r\n3.2.version: Retrieves the installed version of AAComm.\r\n3.3.update: Updates the installed AAComm package to the latest version.\r\n3.4.dotnetfw: Sets the .NET framework version of AAComm library. You can choose from the available options: net40, net46, net48, netcoreapp3.1, net5.0. The default version is net40.\r\n\r\nExample Usage\r\nHere's an example of how to use the AACommPy package:\r\n\r\nInstall the package:\r\n\r\npip install aacommpy\r\n#Run the command to download and install the AAComm package:\r\n\r\naacommpy install\r\n#Check the installed version of AAComm:\r\n\r\n\r\naacommpy version\r\n#Update the AAComm package to the latest version:\r\n\r\naacommpy update\r\n#Set the .NET framework version to be used by AAComm to net5.0:\r\n\r\n\r\naacommpy dotnetfw --netfw net5.0\r\n#Please note that the usage examples provided assume that you have the necessary permissions to install packages and run the commands.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "aacommpy - AACOMM nuget package wrapper",
    "version": "0.1.38",
    "project_urls": {
        "Homepage": "https://github.com/jamesbond90/aacommpyDownloader"
    },
    "split_keywords": [
        "package",
        "development",
        "stage"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a1bf2cd63af63c85b04efc3e984dce3b71f8aafb6fd9f7bebd5184418e85bc5",
                "md5": "c71cf6f1fb248679304786d02f4403ca",
                "sha256": "ded38346f418ff8836579ff8198529390ac1dfe64e98525aad6b4b5a2f3ec9ea"
            },
            "downloads": -1,
            "filename": "aacommpy-0.1.38.tar.gz",
            "has_sig": false,
            "md5_digest": "c71cf6f1fb248679304786d02f4403ca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10.1",
            "size": 7633,
            "upload_time": "2023-06-19T13:49:08",
            "upload_time_iso_8601": "2023-06-19T13:49:08.210889Z",
            "url": "https://files.pythonhosted.org/packages/1a/1b/f2cd63af63c85b04efc3e984dce3b71f8aafb6fd9f7bebd5184418e85bc5/aacommpy-0.1.38.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-19 13:49:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jamesbond90",
    "github_project": "aacommpyDownloader",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aacommpy"
}
        
Elapsed time: 0.07983s