Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Python SDK to simplify integration with GRID services: https://gridgs.com
It's in beta state now. Please expect changes (we'll try to keep them backward-compatible).
GridAuthClient - Used to authorize on GRID SSO server.
GridApiClient - Client for GRID RespAPI that can work with main Grid entities (right now with sessions only).
GridEventSubscriber - subscriber to receive real-time events about changes in sessions (creation, deletion, starting and so on).
GridMQTTClient - Client for GRID MQTT API. It useful for realtime connection (receive downlink frames and send uplink frames).
logger = logging.getLogger()
keycloak_openid = KeycloakOpenID(server_url="https://login.gridgs.com", client_id="grid-api", realm_name="grid")
grid_auth_client = GridAuthClient(open_id_client=keycloak_openid, username="user@gridgs.com", password="userpass", company_id=1, logger=logger)
grid_api_client = GridApiClient(base_url="https://api.gridgs.com" auth_client=grid_auth_client, logger=logger)
sessions = grid_api_client.get_predicted_sessions()
session = Session() # A session from get_predicted_sessions
session = grid_api_client.create_session(session)
Receive statuses of sessions
grid_event_subscriber = GridEventSubscriber(host="api.gridgs.com", port=1883, auth_client=grid_auth_client, logger=logger)
grid_event_subscriber.on_event(on_event)
grid_event_subscriber.run()
def on_event(self, event: SessionEvent):
session = event.session
grid_mqtt_client = GridMQTTClient(host="api.gridgs.com", port=1883, auth_client=grid_auth_client, logger=logger)
grid_mqtt_client.subscribe(session, on_downlink_frame)
grid_mqtt_client.connect()
def on_downlink_frame(frame: Frame):
grid_mqtt_client.send(session, b'Uplink frame data')
FAQs
Python SDK to simplify integration with GRID services
We found that gridgs-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.