New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

webp-support

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webp-support

A Quickly determine whether Webp is supported from UserAgent.

  • 0.3.0
  • PyPI
  • Socket score

Maintainers
1

webp_supported

Quickly determine whether Webp is supported from UserAgent.

support webp browser list

  • FireFox >= 65
  • Chrome >= 32
  • Edge >= 18
  • AppleWebKit >= 605 # Safari 14
  • OPR >= 19
  • UCBrowser >= 12
  • SamsungBrowser >= 4
  • QQBrowser >= 10

using

webp_supported(user_agent: bytes) -> bool

example:

from webp_support import webp_supported
user_agent = b"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
webp_supported(user_agent)    # Chrome > 32 -> True

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc