photonscore-d7
Reads and writes D7 .photons files, Photonscore's
format for time-resolved single-photon data, as recorded by LINCam and
LINTag. It runs the native D7 library, which ships inside the wheel, and
hands data over as NumPy arrays. One wheel per platform serves every
Python 3: Windows x64, macOS on Apple silicon and Linux x86_64.
pip install photonscore-d7
import numpy as np
import photonscore_d7 as d7
# Read
with d7.open("scan.photons") as f:
print(f.attributes["FileCreator"])
for name, ds in f.datasets.items():
print(name, ds.dtype, ds.shape)
x = f["/photons/x"][:] # every photon's x
y = f["/photons/y"][1000:2000] # a range of them
# Write: datasets first, then appends and attributes
with d7.create("out.photons") as f:
x = f.create_dataset("/photons/x", np.uint16)
x.append(np.arange(100, dtype=np.uint16))
f.attributes["Comment"] = "a test"
A file that was never closed, by a crash or because it is still being
recorded, opens with d7.open(path, recover=True).
The format, the C++ library, its C API and the .NET package live at github.com/photonscore/d7. Apache-2.0.
Metadata
Release files for photonscore-d7 27.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| photonscore_d7-27.1.11-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for photonscore_d7-27.1.11-py3-none-win_amd64.whl |
| photonscore_d7-27.1.11-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 | Details for photonscore_d7-27.1.11-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
| photonscore_d7-27.1.11-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for photonscore_d7-27.1.11-py3-none-macosx_11_0_arm64.whl |
Total release size: 3.2 MB
Release files / photonscore_d7-27.1.11-py3-none-win_amd64.whl
| Download URL | photonscore_d7-27.1.11-py3-none-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
52431041f6bb0fe769be74bc97cf5059c6cfcae2ed3ad516fd52ccc2b4f9e1e2
|
|
BLAKE2b-256 checksum How to use checksums |
12b8742b2393454f4a807fdfcfd5414ba961e5dd2a26cde896d5020668079235
|
| 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 10, 2026.
Transparency logRelease files / photonscore_d7-27.1.11-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | photonscore_d7-27.1.11-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
5dba306293c1c2628a84ec6ff738142cae86abffa32624e3bbf5d3fbed17b8e0
|
|
BLAKE2b-256 checksum How to use checksums |
4590244fbcd9effbea12549006696bcdfe7f13d16a1fbae53c3ff71055c53a56
|
| 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 10, 2026.
Transparency logRelease files / photonscore_d7-27.1.11-py3-none-macosx_11_0_arm64.whl
| Download URL | photonscore_d7-27.1.11-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 776.7 kB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
793f9ae7ba1ff0bb7548bb227cb48178f9c587aa8a90caaf6773b45eba4feb46
|
|
BLAKE2b-256 checksum How to use checksums |
9a108601f2db5507ef1eda2e4727cf3ff2335dbda62ba07f54ce7f27ae73d55b
|
| 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 10, 2026.
Transparency logSecurity for photonscore-d7 27.1.11
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 3 files in this release have been uploaded with provenance metadata.
Attestation for photonscore_d7-27.1.11-py3-none-win_amd64.whl
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 10, 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.