
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
crescience-websocket-py
Advanced tools
\n# Crescience Websocket Client
Websocket client for Crescience devices written in python.
You can install the client using pip:
pip install crescience-websocket-py
The client provides two different usage cases:
from crescience_websocket_py import WebsocketClient, Message, ConnectionMessageType
def callback(msg_type: ConnectionMessageType, msg: Message | None, error:ConnectionErrorReason | None) -> None:
if msg_type==ConnectionMessageType.TEXT:
print(f"Received message: {str(msg)}")
elif msg_type==ConnectionMessageType.OPEN:
print("Connection opened")
elif msg_type==ConnectionMessageType.ERROR:
print(f"Connection error: {error}")
elif msg_type==ConnectionMessageType.CLOSE:
print("Connection closed")
client=WebsocketClient(
host="<IP_OR_DOMAIN>",
port=81,
verify_ssl=False,
callback=callback
)
from crescience_websocket_py import WebsocketClient, Message, ConnectionMessageType
class MyCrescienceClient(WebsocketClient):
def __init__(self, host:str) -> None:
super().__init__(host=host, port=81, verify_ssl=False)
async def received(self, msg: Message) -> None:
print(f"Received message: {str(msg)}")
async def on_open(self) -> None:
print("Connection opened")
async def on_close(self) -> None:
print("Connection closed")
async def on_error(self, error:ConnectionMessageType) -> None:
print(f"Connection error: {error}")
client=MyCrescienceClient("<IP_OR_DOMAIN>")
You can check if firmware updates are available using the following command:
from crescience_websocket_py import get_latest_version
latest_version = get_latest_version(device_type="crescontrol")
print(latest_version["version"])
FAQs
Websocket Client for Crescience devices
We found that crescience-websocket-py 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 CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.