Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

CounterFit Shims - Picamera

Picamera Shim PyPI

Shims for the Picamera to read from a virtual camera

See the Picamera Docs for the API documentation.

Getting started

To use these shims, you will need to install CounterFit and have it running, with the appropriate camera hardware created. Create the camera with a name of Picamera.

  • Install this package from pip:

    pip install counterfit-shims-picamera
    
  • Import Picamera using the counterfit_shims_picamera package instead of the picamera package, as well as importing the CounterFitConnection from the counterfit_shims_grove.counterfit_connection module:

    from counterfit_connection import CounterFitConnection
    import counterfit_shims_picamera
    
  • Configure the connection to the CounterFit app. Change the hostname and port to where you are running it:

    CounterFitConnection.init('127.0.0.1', 5000)
    
  • Write your Picamers code as usual.

    For example, to capture an image as a JPEG:

    camera = PiCamera()
    image = io.BytesIO()
    camera.capture(image, 'jpeg')
    

Metadata

Release files for counterfit-shims-picamera 0.1.0.dev5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for counterfit-shims-picamera 0.1.0.dev5
File Interpreter ABI Platform Actions
counterfit_shims_picamera-0.1.0.dev5-py3-none-any.whl Python 3 none any Details for counterfit_shims_picamera-0.1.0.dev5-py3-none-any.whl

Release files / counterfit_shims_picamera-0.1.0.dev5-py3-none-any.whl

Download URL counterfit_shims_picamera-0.1.0.dev5-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c698a67447db6c9b01385ff570db7ae8105283a27682ea789dedc192941d9f7
BLAKE2b-256 checksum
How to use checksums
fd8c9bfe40f5977922052b8b4f78366ff31e7c586d2197575b72694edafce915
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.1

Security for counterfit-shims-picamera 0.1.0.dev5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page