{"library":"p4p","title":"p4p","description":"Python interface to PVAccess (PV Access) protocol client for EPICS. Current version 4.2.2, supports Python >=2.7. Maintained by EPICS community, follow EPICS release cadence.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install p4p"],"cli":null},"imports":["from p4p.client import pva","from p4p.client.pva import PV","from p4p.client.pva import Channel","from p4p.client import Context"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom p4p.client.pva import Context\n\nwith Context('pva') as ctx:\n    value = ctx.get(os.environ.get('PV_NAME', 'blah:example'))\n    print(value)\n\n# Alternatively, using channel for monitoring:\nwith Context('pva') as ctx:\n    ch = ctx.monitor(os.environ.get('PV_NAME', 'blah:example'))\n    for update in ch:\n        print(update)\n        break  # just one sample","lang":"python","description":"Create a PVA client context, fetch a value or monitor a PV.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}