Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Cross-Platform Key Handling Module: Effortlessly Detect and Describe Keyboard Events
This module offers a comprehensive solution for handling keyboard input across platforms. Whether you’re detecting simple keypresses or complex key combinations, our get_key
function and Keys
constants deliver robust functionality with clear, descriptive outputs. Perfect for developers needing to implement precise keyboard interactions in their applications.
You can install keypress via pip:
pip install keypress
You can run keypress in your terminal.
from keypress import Keys, get_key
if __name__ == "__main__":
key = ""
while key not in ["q", Keys.ENTER]:
key = get_key()
if key.is_printable:
print(key)
print(key.key_codes)
print(key.description)
Contributions are welcome! Please see our contributing guidelines for more information.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
Cross-Platform Key Handling Module: Effortlessly Detect and Describe Keyboard Events
We found that keypress 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.