Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A Python extension that provides bindings to WebRTC M92
Examples
•
Documentation
•
PyPI
Let's use the native WebRTC with strict compatibility and fully implemented stuff!
This project follows the W3C specification with some modifications and additions to make it work better with Python applications, with useful APIs like programmatic audio and video.
This project is still under development and isn't ready for any serious use. In the current stage, it's possible to establish connection and work with audio, but many interfaces and methods not implemented yet.
You can easily check status of methods and interfaces availability here.
import asyncio
import webrtc
async def main():
pc = webrtc.RTCPeerConnection()
stream = webrtc.get_user_media()
for track in stream.get_tracks():
pc.add_track(track, stream)
audio_source = webrtc.RTCAudioSource()
track = audio_source.create_track()
pc.add_track(track)
local_sdp = await pc.create_offer()
print(local_sdp.sdp)
if __name__ == '__main__':
asyncio.run(main())
Linux | macOS | Windows | |||||
---|---|---|---|---|---|---|---|
armv7l | arm64 | x86_64 | Intel | Apple Silicon | 64bit | ||
Python | 3.7 | N/A | N/A | ✅ | ✅ | N/A | ✅ |
3.8 | N/A | N/A | ✅ | ✅ | ✅ | ✅ | |
3.9 | N/A | N/A | ✅ | ✅ | ✅ | ✅ | |
3.10 | N/A | N/A | ✅ | ✅ | ✅ | ✅ |
Full building instruction will be present later
Pre-built wheel:
pip3 install --pre wrtc
Build from sources:
pip3 install --pre wrtc --no-binary wrtc
The documentation is live at readthedocs.io.
You can get help in several ways:
Contributions of any sizes are welcome.
The python-webrtc
is published under the BSD 3-Clause License.
FAQs
a Python extension that provides bindings to WebRTC M92
We found that wrtc 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.