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:
- Library guide: scanning, printing, events, device queries, profiles.
- API reference.
- The bridge:
phomemo-bridgeon the command line.
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.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phomemo-0.3.0.tar.gz | 262.6 kB | With provenance | Details for phomemo-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phomemo-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for phomemo-0.3.0-py3-none-any.whl |
Total release size: 510.0 kB
Release files / phomemo-0.3.0.tar.gz
| Download URL | phomemo-0.3.0.tar.gz |
|---|---|
| Size | 262.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24bbc7a2685a3d34682d14df4ab49b073be0be83cf44c6dc63e86f426934cd3f
|
|
BLAKE2b-256 checksum How to use checksums |
8f6c652ae0fd8abe6773980ec7d2a4fed7c0ff94407de63b5fb2f2498dbbc168
|
| 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 logRelease files / phomemo-0.3.0-py3-none-any.whl
| Download URL | phomemo-0.3.0-py3-none-any.whl |
|---|---|
| Size | 247.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7ebd284b887fa7aba3e26859356268f01aab82a572dc8e493483156e0d07c6e
|
|
BLAKE2b-256 checksum How to use checksums |
c8680cf357e81189521a32cacd89f961044641bc6553ef185822a28df3103a70
|
| 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 logSecurity for phomemo 0.3.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for phomemo-0.3.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 logA 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.