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

Uploaded Python 3

File details

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

File metadata

  • Download URL: device_frames_core-0.1.7.tar.gz
  • Upload date:
  • Size: 41.3 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.7.tar.gz
Algorithm Hash digest
SHA256 be55b1733b376fd3cbfbc67366f2144c26ca00928f954f288864365f845c1af1
MD5 00ce0c662271d9ac5a2b4c178d2a7d5a
BLAKE2b-256 803fe8df65c5ef4f911b747bea313f3dea46a177e66ff3f447d2f8b17616e633

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for device_frames_core-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3866d4c052d0dbda559d0a0940aa8ebbc725dda8221dc1ea15b83ad087f3302d
MD5 64c8503a43627c4177460bba7b1d01aa
BLAKE2b-256 29e4bc80d6d6715c6671f527d16776e18f8875cc3ccdd73747d73e03978f9192

See more details on using hashes here.

Provenance

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