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

Uploaded Python 3

File details

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

File metadata

  • Download URL: device_frames_core-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 fd0dd7b2573969a7baef104124f0b32b53b3e94b47d58e5062076c202014f720
MD5 909aa543f89a5b59e44f68930f4897a5
BLAKE2b-256 019fdf94cb1677aa6f2e0ee968f6b2221dabf4617fe49d0d38ca05e044e9e52c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for device_frames_core-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0757d65f694839367d7f7ce15c125ba52397f82e386bdb4c00a889e329bf905e
MD5 4dc0598a3f5a4ed0d19038a43dcb4c4b
BLAKE2b-256 6bd0eb55ec85cff01a10488ea2aac36f91ca1cb0d37bbf2578efc6ea44787ba9

See more details on using hashes here.

Provenance

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