chromium-binary-lambda
Note: The project does not provide the framework to deal with chrome. But the chrome binaries so that it can be used in either AWS Lambda or Gcloud Functions.
- Free software: MIT license (including the work distributed under the Apache 2.0 license)
- Documentation: https://pyppeteer.github.io/pyppeteer/
Installation
chromium-binary-lambda requires Python >= 3.7
Install with pip from PyPI:
pip install chromium-binary-lambda
Or install the latest version from this github repo:
pip install -U git+https://github.com/chromium-binary-lambda/chromium-binary-lambda@dev
Usage
Note: When you install chromium-binary-lambda, it downloads the latest version of Chromium (~150MB) if it is not found on your system. If you don't prefer this behavior, ensure that a suitable Chrome binary is installed. One way to do this is to run
pip install chromium-binary-lambda==<versionChrome>command before prior to install this library.
Examples
Open web page and take a screenshot usin Playwright:
pip install playwright
import asyncio
from chromium_binary_lambda import chromium_executable, default_args
from playwright.async_api import async_playwright
async def main():
client = await async_playwright().start()
browser = await client.chromium.launch(executable_path=chromium_executable(), args=default_args)
page = await browser.new_page()
await page.goto('https://example.com')
await page.screenshot({'path': 'example.png'})
await browser.close()
asyncio.get_event_loop().run_until_complete(main())
Credits
- python setup.py sdist
- twine upload --repository pypi ./dist/*.tar.gz
This package was created by Fabricio Silva.
Metadata
Release files for chromium-binary-lambda 1.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chromium-binary-lambda-1.0.13.tar.gz | 5.9 kB | Without provenance | Details for chromium-binary-lambda-1.0.13.tar.gz |
Release files / chromium-binary-lambda-1.0.13.tar.gz
| Download URL | chromium-binary-lambda-1.0.13.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b472a5f687f7bae06d5f4d43a1cd0a752f0351ddd39d7df9cf3b977535163d58
|
|
BLAKE2b-256 checksum How to use checksums |
4925984dea0e101a3412c1c760b23693a8e85cb55edda6ada7d74909c63be6ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.5
|
Security for chromium-binary-lambda 1.0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.