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",
)

Read more about this project on my website
Github repo
device-frames-media Github repo

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.8.tar.gz (41.3 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.8-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for device_frames_core-0.1.8.tar.gz
Algorithm Hash digest
SHA256 38c1aa92c6dba43f96ac52f6e1c5d85a30f38f92c994f1e0f90cd1c5455354b3
MD5 9f9faebcfed400ccd2042ecc9e054ac8
BLAKE2b-256 b6778f9dda46da6ca6f1f96de6ff8d72709b448a32f1d662e5b13294eb98105e

See more details on using hashes here.

Provenance

The following attestation bundles were made for device_frames_core-0.1.8.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.8-py3-none-any.whl.

File metadata

File hashes

Hashes for device_frames_core-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c841feada0e2bbb34d5a0ee7673d49515835977348ef83df80e5bbed43154f38
MD5 09bb28029c6282d94df99a52cb2a72af
BLAKE2b-256 240901b842b2befe4837fb7389a3ffcb72d77a6d8bfe9cbae76834db6019c0e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for device_frames_core-0.1.8-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