Skip to main content

instax_api

.github/workflows/python-test.yml Coverage Status

This is a Python Module to interact and print photos to the Fujifilm Instax SP-2 and SP-3 printers.

Install this library

In order to use this library, you will need to be using Python 3

pip3 install instax-api

Usage

note - From version 0.7.0 to 0.8.0, I moved away from adding a script to just calling the module from pyton using the -m argument.

$ python3 -m instax.print --help
usage: instax-print [-h] [-i PIN] [-v {1,2,3}] image

positional arguments:
  image                 The location of the image to print.

optional arguments:
  -h, --help            show this help message and exit
  -i PIN, --pin PIN     The pin code to use, default: 1111.
  -v {1,2,3}, --version {1,2,3}
                        The version of Instax Printer to use (1, 2 or 3).
                        Default is 2 (SP-2).                       

Examples:

  • Printing a Photo to an SP-2 printer: python3 -m instax.print myPhoto.jpg
  • Printing a Photo to an SP-3 printer: python3 -m instax.print myPhoto.jpg -v 3
  • Printing a Photo to a printer with a pin that is not the default (1111) python3 -m instax.print myPhoto.jpg -i 1234

Hints and tips:

  • Make sure you are connected to the correct wifi network, once the printer is turned on, there will be an SSID / WiFi network available that starts with INSTAX- followed by 8 numbers. You'll need to connect to this.
  • If you have a static IP address set up on your computer, you'll need to turn on DHCP before attempting to print, the Instax printer will automatically assign you a new address once you connect.
  • Some Unix based operating systems may require you to use sudo in order to access the network.
  • The printer will automatically turn itself off after roughly 10 minutes of innactivity.
  • The instax.print utility will attempt to automatically rotate the image so that it either is correctly printed in portrait, or landscape with the thick bottom edge of the print on the left. If you wish to print your photos in a specific orientation that differs from this, then it's reccomended that you orient your photo in a tool like GIMP first, then strip out the rotation metadata. Once the rotation metadata has been stripped, the photo will need to be in a portrait orientation relative to the finished print (e.g. thick edge at the bottom).

Install Manually

git clone https://github.com/jpwsutton/instax_api.git
cd instax_api
python3 setup.py install

Metadata

Release files for instax-api 0.8.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 instax-api 0.8.0
File Size Uploaded Provenance Actions
instax_api-0.8.0.tar.gz 1.7 MB Without provenance Details for instax_api-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for instax-api 0.8.0
File Interpreter ABI Platform Actions
instax_api-0.8.0-py3-none-any.whl Python 3 none any Details for instax_api-0.8.0-py3-none-any.whl

Total release size: 3.5 MB

Release files / instax_api-0.8.0.tar.gz

Download URL instax_api-0.8.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
7673738f77b29b11ccc3e8ed247c8233b025318b4ecbca4da6a54eddba1c059d
BLAKE2b-256 checksum
How to use checksums
3b21c09b10d0bbd8097c85afbdc88917a1e8347e6ff3429d1f576a4591c3c460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.9 Linux/5.15.0-1024-azure

Release files / instax_api-0.8.0-py3-none-any.whl

Download URL instax_api-0.8.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5b9770cd4e3deabfe39dbff39f32d0771097ebc6b51a36b25fb1464833f04b78
BLAKE2b-256 checksum
How to use checksums
1888ab277492760e933296183105c1fc5bf4896dc9dc1fffe01b2ff4765f6525
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.9 Linux/5.15.0-1024-azure

Security for instax-api 0.8.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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