Skip to main content

phomemo

Async Python library for Phomemo thermal printers over Bluetooth Low Energy.

Scan for printers, print images and bitmaps, read the battery and the lid and paper sensors, and react to the printer's events, all from asyncio. Built from a reverse-engineered protocol reference for the Phomemo M08F, with one profile per printer model.

The package also ships phomemo-bridge, the service the phomemo-driver printer app prints through.

Documentation: passionatebytes.github.io/phomemo-driver/library

Install

pip install phomemo

Python 3.13 or later, and a platform with Bluetooth Low Energy (Linux with BlueZ is tested).

Print a page

import asyncio

from phomemo import Density, ImageFit, Printer


async def main() -> None:
    async with Printer("m08f") as printer:
        await printer.connect()  # scans for the M08F in range and connects
        await printer.wait_for_ready(timeout=60)  # lid closed, sheet loaded
        await printer.print_image("photo.png", density=Density.MEDIUM, fit=ImageFit.FIT_PAGE)
        await printer.eject_paper()


asyncio.run(main())

Where to go next:

Supported printers

Model Profile Status
Phomemo M08F (A4) m08f Tested

New models are very welcome: see Printer models.

License

Copyright (C) 2026 Paul Bütof, Passionate Bytes Solutions.

GNU Lesser General Public License, version 3 or later: see COPYING.LESSER and the GNU General Public License it builds on in COPYING. This README is documentation and licensed under CC BY-SA 4.0.

Metadata

Release files for phomemo 0.4.0

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

Source distribution (sdist)

Source distribution for phomemo 0.4.0
File Size Uploaded Provenance Actions
phomemo-0.4.0.tar.gz 263.1 kB With provenance Details for phomemo-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phomemo 0.4.0
File Interpreter ABI Platform Actions
phomemo-0.4.0-py3-none-any.whl Python 3 none any Details for phomemo-0.4.0-py3-none-any.whl

Total release size: 510.9 kB

Release files / phomemo-0.4.0.tar.gz

Download URL phomemo-0.4.0.tar.gz
Size 263.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c9e19ddf4b03830008bc03a9102938940759ca2de1d1db5003cd37571f24e119
BLAKE2b-256 checksum
How to use checksums
fea020cd889472cde0dc6c930e0f089d4052c41320211a2d894441805fbc8747
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / phomemo-0.4.0-py3-none-any.whl

Download URL phomemo-0.4.0-py3-none-any.whl
Size 247.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b94ec5857452e41a081064f6a0dd3984022a5ca0cffdca337480b9176bebe26
BLAKE2b-256 checksum
How to use checksums
702151fe3fa8c058dad446a4d58cad4028f1dd72dcaa43ba6ba762ef56f542a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for phomemo 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for phomemo-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files Full provenance

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