django-screenshots
DM me on github, or @barce on twitter, if you want to see a working demo.
installation
pip install django-screenshots pip install requests
set values for using environment variables:
export SCREENSHOT_USER=’’ export SCREENSHOT_PASSWORD=’’ export SCREENSHOT_SERVER_URL=’’ export SCREENSHOT_FORCE_ENV=’1’
set values for using django settings:
SCREENSHOT_USER=’’ SCREENSHOT_PASSWORD=’’ SCREENSHOT_SERVER_URL=’’
Capture a screen shot and get the URL:
from django_screenshots import Builder b = Builder(’http://www.google.com/’) b.capture() print(b.image_url)
Get info about a screen shot:
from django_screenshots import Builder b = Builder(’http://www.google.com/’) print(b.info())
Search for a URL:
from django_dscreenshots import Builder b = Builder(’http://www.google.com/’) print(b.search())
IPFS local use:
from django_screenshots import ScreenShotIpfs import ipfshttpclient b = ScreenShotIpfs(’https://www.reddit.com/’) b.image_directory = ‘./tests’ b.capture() b.upload() b.get(b.ipfs_hash, ‘./tests/output.png’)
For developers:
- How to upload to pypi:
python setup.py sdist register upload # python setup.py sdist # twine upload dist/*
Metadata
Release files for django-screenshots 0.2.0
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 |
|---|---|---|---|---|
| django-screenshots-0.2.0.tar.gz | 3.8 kB | Without provenance | Details for django-screenshots-0.2.0.tar.gz |
Release files / django-screenshots-0.2.0.tar.gz
| Download URL | django-screenshots-0.2.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66046edce6acf24d28d248a66f7923d7543e09ecd31284dd7781c6cad8ee132e
|
|
BLAKE2b-256 checksum How to use checksums |
425e5f988c17efb326fa15aff767e37baf677c8b509003510ae4a340b9bbea4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for django-screenshots 0.2.0
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.