Skip to main content

libflowcam

An optimised, native Python library for working with FlowCam data. Implements lazy-loading wherever possible and maintains open file pointers for speedy access. Returns standard Pillow image objects for further processing.

Example

from libflowcam import ROIReader

# Represents a typical sample density
sample1 = ROIReader("testdata/flowcam_polina_pontoon_0907_r2/flowcam_polina_pontoon_0907_r2.csv")
print(str(len(sample1.rois)) + " ROIs") # Should be 6268 ROIs
for roi_index in [10, 100, 1000]:
    sample1.rois[roi_index].image.save("testout/flowcam_polina_pontoon_0907_r2_" + str(roi_index) + ".png")

# A very dense sample, this is a cruel test
sample2 = ROIReader("testdata/flowcam_polina_pontoon_0707_r1/flowcam_polina_pontoon_0707_r1.csv")
print(str(len(sample2.rois)) + " ROIs") # Should be 137015 ROIs
for roi_index in [10, 100, 1000, 10000, 100000]:
    sample2.rois[roi_index].image.save("testout/flowcam_polina_pontoon_0707_r1_" + str(roi_index) + ".png")

Note

This library has been built with no internal knowledge of the FlowCam software, and the data output format was reverse engineered soley from output data. It would therefore be highly appreciated if users could contribute data that breaks the library in order to better accomodate for all use cases.

Metadata

Release files for libflowcam 0.5.1

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

Source distribution (sdist)

Source distribution for libflowcam 0.5.1
File Size Uploaded Provenance Actions
libflowcam-0.5.1.tar.gz 13.1 kB Without provenance Details for libflowcam-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 23.5 kB

Release files / libflowcam-0.5.1.tar.gz

Download URL libflowcam-0.5.1.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bd16765d33dbb211be64abdce230224f0ef5f8fe5e2b7fb167facb6963c40839
BLAKE2b-256 checksum
How to use checksums
f4bba3806a45ad9862321d35c733825cebd2ec30aed95415a7a70750cd3fc427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / libflowcam-0.5.1-py3-none-any.whl

Download URL libflowcam-0.5.1-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
525c1786fa009a73bde48578d7516fa143b8d23b77343519c586be2c27e9128e
BLAKE2b-256 checksum
How to use checksums
e7c378818f6a8aa86c9d243bcb45d2131270b0f516742e3f1979ad2327488624
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for libflowcam 0.5.1

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