pypanasonic


Namepypanasonic JSON
Version 0.0.7 PyPI version JSON
download
home_pageNone
SummaryPanasonic PLC mewtocol lib via serial port
upload_time2024-05-03 15:08:46
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords mewtocol plc panasonic protocol serial
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pypanasonic

**Table of Contents**

- [Installation](#installation)
- [License](#license)

# Install
This lib contains panasonic PLC use mewtocol via serial port.<br>
`pip install regex`<br>
`pip install pypanasonic`<br>
`pip install pyserial`
# Usage
Here is an example of using it.
````
import serial
from pypansonic import mewtocol

#Change port number fits your desired port, here is com3
ser = serial.Serial(port="COM3",
                    baudrate=9600,
                    bytesize=serial.EIGHTBITS,
                    parity=serial.PARITY_ODD,
                    stopbits=serial.STOPBITS_ONE,
                    xonxoff = True,
                    timeout=0.5)
if ser.is_open:
    print("\n"+ser.name)

    #Write the function here:
    write_len = ser.write(plcVer().encode('ascii'))
    write_len = ser.write(switchSingleOn('R0001'))

    while True:
        com_message=ser.readline()
        if com_message:
            print("Port Open sucesses, message received is: ")
            print(com_message.decode('ascii'))
    ser.close()
else:
    print("Fail of open ports")

````

## License
MIT

`pypanasonic` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pypanasonic",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "Mewtocol, PLC, Panasonic, Protocol, Serial",
    "author": null,
    "author_email": "hy1stax <luweizhao09@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/90/d0/7fbad6e145eba39d6acedd6ae9ef303bb75c99f1fb7b7e796a151ca0d6be/pypanasonic-0.0.7.tar.gz",
    "platform": null,
    "description": "# pypanasonic\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [License](#license)\n\n# Install\nThis lib contains panasonic PLC use mewtocol via serial port.<br>\n`pip install regex`<br>\n`pip install pypanasonic`<br>\n`pip install pyserial`\n# Usage\nHere is an example of using it.\n````\nimport serial\nfrom pypansonic import mewtocol\n\n#Change port number fits your desired port, here is com3\nser = serial.Serial(port=\"COM3\",\n                    baudrate=9600,\n                    bytesize=serial.EIGHTBITS,\n                    parity=serial.PARITY_ODD,\n                    stopbits=serial.STOPBITS_ONE,\n                    xonxoff = True,\n                    timeout=0.5)\nif ser.is_open:\n    print(\"\\n\"+ser.name)\n\n    #Write the function here:\n    write_len = ser.write(plcVer().encode('ascii'))\n    write_len = ser.write(switchSingleOn('R0001'))\n\n    while True:\n        com_message=ser.readline()\n        if com_message:\n            print(\"Port Open sucesses, message received is: \")\n            print(com_message.decode('ascii'))\n    ser.close()\nelse:\n    print(\"Fail of open ports\")\n\n````\n\n## License\nMIT\n\n`pypanasonic` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.",
    "bugtrack_url": null,
    "license": null,
    "summary": "Panasonic PLC mewtocol lib via serial port",
    "version": "0.0.7",
    "project_urls": {
        "Homepage": "https://github.com/hy1stax/pypanasonic"
    },
    "split_keywords": [
        "mewtocol",
        " plc",
        " panasonic",
        " protocol",
        " serial"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "92f87c7a2f0c442f37dd5884f22c1c5e70ad02bc948765386de5868e907906b5",
                "md5": "0157fe02f59a321229fa27d23a1b7c2a",
                "sha256": "9f339a34d88daf4890ab8e9d5faf06826de21b5eebb4cd59f837f511359172c9"
            },
            "downloads": -1,
            "filename": "pypanasonic-0.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0157fe02f59a321229fa27d23a1b7c2a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4804,
            "upload_time": "2024-05-03T15:08:44",
            "upload_time_iso_8601": "2024-05-03T15:08:44.711687Z",
            "url": "https://files.pythonhosted.org/packages/92/f8/7c7a2f0c442f37dd5884f22c1c5e70ad02bc948765386de5868e907906b5/pypanasonic-0.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "90d07fbad6e145eba39d6acedd6ae9ef303bb75c99f1fb7b7e796a151ca0d6be",
                "md5": "15a2b11359026a6a067dea3159adc1c6",
                "sha256": "fcc2dc5da6832cf9975e2d08cde34ba1e2bb00e6f47d8820c6a58188a4e372f3"
            },
            "downloads": -1,
            "filename": "pypanasonic-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "15a2b11359026a6a067dea3159adc1c6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4982,
            "upload_time": "2024-05-03T15:08:46",
            "upload_time_iso_8601": "2024-05-03T15:08:46.686638Z",
            "url": "https://files.pythonhosted.org/packages/90/d0/7fbad6e145eba39d6acedd6ae9ef303bb75c99f1fb7b7e796a151ca0d6be/pypanasonic-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-03 15:08:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hy1stax",
    "github_project": "pypanasonic",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pypanasonic"
}
        
Elapsed time: 0.24688s