Skip to main content

Core library for applying device frames to screenshots.

Project description

device-frames-core

Python core library for applying device frames to screenshots and retrieving up-to-date media of device frame PNGs (with metadata)

apply_frame function example

pip install device-frames-core
from pathlib import Path
from device_frames_core import apply_frame, list_devices

# List devices
all_devices = list_devices()

# Apply a frame
apply_frame(
    screenshot_path=Path("input.png"),
    device="16-pro-max",
    variation="black-titanium",
    output_path=Path("output/framed.png"),
    category="ios",
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

device_frames_core-0.1.4.tar.gz (41.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

device_frames_core-0.1.4-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file device_frames_core-0.1.4.tar.gz.

File metadata

  • Download URL: device_frames_core-0.1.4.tar.gz
  • Upload date:
  • Size: 41.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for device_frames_core-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7d63bc76d259f9f3299cecc5c0e427d029247de8ad67f15dc11941b659a2ff81
MD5 335bf99e68e7f9704a7879539f2c2e78
BLAKE2b-256 9476ffcf0157e43bdad0c8a95c871965077b041977e16da596e2dc007813cb5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for device_frames_core-0.1.4.tar.gz:

Publisher: updatePyPi.yml on jonnyjackson26/device-frames-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file device_frames_core-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for device_frames_core-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ede79829eafe22b2da610dc5638a3aa4b8d47b130a97aa4ba38da51e666193e8
MD5 aee696eb7fec79a05afd47e2a5f0a4d0
BLAKE2b-256 871a4968f44a96f330258edb563252ae6c5e5b8d63ac52870c9e2fa79c50977b

See more details on using hashes here.

Provenance

The following attestation bundles were made for device_frames_core-0.1.4-py3-none-any.whl:

Publisher: updatePyPi.yml on jonnyjackson26/device-frames-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page