Skip to main content

Library for reading and writing files for the Anycubic Photon 3D-Printer

Project description

pyPhotonfile is a library used for manipulating Photon-files created for the Anycubic Photon 3D-Printer. Currently it supports removing and adding new layers as well as changing global parameters like the exposure time, etc. It is based on the work done by PhotonFileEditor. While PhotonFileEditor works, I was in need of a clean library which is why I refactored most of the code. pyPhotonfile is the backbone of SL1toPhoton.

Friendly Reminder

Use at your own risk. Please verify that what you are doing will not break your printer.

Example Usage

    from pyphotonfile import Photon

    photon = Photon('in_file.Photon')
    for layer in photon.layers:
        print(layer)
    photon.export_images('tempdir')
    photon.delete_layers()
    for filepath in os.listdir('tempdir'):
        photon.append_layer(filepath)
    photon.exposure_time = 10
    photon.bottom_layers = 3
    photon.write('out_file.Photon')

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

pyphotonfile-0.1.1.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

pyphotonfile-0.1.1-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

Details for the file pyphotonfile-0.1.1.tar.gz.

File metadata

  • Download URL: pyphotonfile-0.1.1.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for pyphotonfile-0.1.1.tar.gz
Algorithm Hash digest
SHA256 96b3831c6741c4a831392ec89dfc8d11d8791261d58e7b045d9783ad75c877b4
MD5 157178b4aab2f5494eabd5a53c6e6d96
BLAKE2b-256 302a28fad6fcc8681bb8ee6586b0115ff5da91e9a0c31baa5a31b617e559d8ad

See more details on using hashes here.

File details

Details for the file pyphotonfile-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyphotonfile-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 64.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for pyphotonfile-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3684ccf63f492597153f7ee912487d3b646a1277f22fda7feb851640c28c90f
MD5 d9bad801da4aa18d48205148cdf77ba3
BLAKE2b-256 1e083c07f03564b8b4f58cc5658fb88d1b26a9fe769d2e99f5aef100f3096155

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page