Skip to main content

Python pfm files reader. Fast and python3 compatible, with compression included

Install

pip install pypfm

If you know the size upfront, specify it:

from pypfm import PFMLoader
loader = PFMLoader((width, height), color=False, compress=False)

Otherwise it will find it by itself (slower):

from pypfm import PFMLoader
loader = PFMLoader(color=False, compress=False)

Read a pfm file

pfm = loader.load_pfm('test.pfm')

Save a pfm file:

loader.save_pfm('test.pfm', pfm)

Using zfp compression:

from pypfm import PFMLoader
loader = PFMLoader(color=False, compress=True)
pfm = loader.load_pfm('test.pfm')
loader.save_pfm('test.pfm', pfm)

Release files for pypfm 1.4.4

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

Source distribution (sdist)

Source distribution for pypfm 1.4.4
File Size Uploaded
pypfm-1.4.4.tar.gz 2.4 kB Details

Built distribution (wheel)

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

Total release size: 6.1 kB

Release files / pypfm-1.4.4.tar.gz

Download URL pypfm-1.4.4.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dc26e6f9a3936039c69d8fcdce48474e799f9c1cc3f5c0bc6975632d923e0cd1
BLAKE2b-256 checksum
How to use checksums
86a8670988f9439b1c8b57c59aefa783529d4ca8335caf670ef8663b2a21596b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

Release files / pypfm-1.4.4-py3-none-any.whl

Download URL pypfm-1.4.4-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eca0612d0119a9b5c977b453af2be6a6eedc015df3e8c6f55a0893b8be1738c6
BLAKE2b-256 checksum
How to use checksums
1df254d78078586e3a9a7e361ac4e1cf65db4410918d15228289f5143a0b7ea1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.4.4 This release

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

3 release files

1.4

2 release files

1.3

2 release files

1.1

2 release files

1.0

2 release files

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