Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Zone4 is a Python library for interacting with the Apart Zone4 pre-amplifier over serial.
Use the package manager pip to install zone4.
pip install zone4
import asyncio
from zone4 import Zone4Manager
async def set_volume(manager, zone, volume):
await manager.zone(zone).set_volume(volume)
async def update(manager, loop):
await manager.update()
loop.create_task(update(manager, loop))
if __name__ == '__main__':
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
manager = Zone4Manager('/dev/ttyS3')
loop.run_until_complete(manager.setup())
loop.create_task(set_volume(manager, 'a', 55))
loop.create_task(update(manager, loop))
loop.run_forever()
loop.close()
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
Async library for controlling the Apart Zone4 preamp via serial
We found that zone4 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.