This release is a pre-release and may not be stable for production use.
fpm-rs
Reconstruct and simulate image-plane Fourier ptychographic microscopy (FPM) acquisitions from Rust or Python.
fpm-rs gives microscopy researchers and algorithm developers a CPU-based core
for compiling illumination geometry, simulating measurements, and recovering a
complex object. It supports image-plane FPM only: diffraction-plane
ptychography, multislice propagation, and GPU execution are not implemented.
What it can do for you
- Compile an optical model. Resolve source geometry, stable calibration, and sparse acquisition structure into Fourier-space sampling and a pupil.
- Simulate an acquisition. Generate ideal or camera-affected intensity frames from synthetic or supplied complex objects.
- Reconstruct the object. Start with alternating projection, or use FPIE, mPIE, EPRY, ADMM, or gradient descent when their convergence, calibration, and regularization options fit the experiment.
- Reconstruct narrowband wavelength channels. Compile separate or multiplexed spectral acquisitions and recover independent or explicitly shared complex transmissions with fixed wavelength-specific pupils. See the multi-wavelength workflow.
- Unwrap phase across wavelengths. Mix referenced independent channel phases through synthetic wavelengths to recover a common nondispersive OPD map in an explicit interval. See the OPD workflow.
- Fit one OPD map to all wavelengths. Jointly optimize common nondispersive OPD and channel amplitudes against all detector exposures, starting from phase mixing or an explicit branch. See the joint OPD solver.
- Calibrate a planar LED array physically. Alternate analytic object or
object/pupil updates with bounded pose, pitch, reference-index,
selected-offset, source-power, or frame-gain updates and reuse the returned
Illumination. - Initialize a planar array from bright-field circles. Detect pupil edges
before reconstruction, fit bounded global physical geometry, and reuse the
returned
Illuminationand refreshedImagePlaneModel. - Keep a run inspectable. Record diagnostics, write checkpoints, and compare simulations with known ground truth. Optional Parquet support writes self-describing result and benchmark bundles for downstream analysis.
- Measure at the right layer. Reusable reference/estimate metrics, optimization objectives, reconstruction evaluation, and recorder-driven diagnostics are separate APIs.
A typical workflow
- Compile the optics and illumination into an
ImagePlaneModel. - Load measured intensity frames, or simulate them from a known object.
- Build a
ReconstructionProblem, run an algorithm, and inspect amplitude, phase, diagnostics, or checkpoints.
The same forward model is used for simulation and reconstruction, while algorithms consume the compiled model rather than experimental geometry.
Array layout contract
The Rust API uses native ndarray arrays and views. Pointwise utilities and
metrics accept arbitrary logical layouts, including transposed and stepped
views. Computational inputs whose kernels use flat Fourier-grid offsets—such
as pupils, synthetic objects, measurement stacks, crop operations, and direct
forward-model spectra—require standard C-style row-major layout. Those APIs
validate the layout without copying and return a NonStandardLayout error for
strided input. Owned result and diagnostic arrays are ordinary ndarray
arrays. Result bundle export is a strict persistence boundary and rejects
nonstandard result layouts rather than silently materializing a copy.
Python follows the same distinction. Metrics accept strided NumPy arrays.
Reconstruction, simulation, pupil, and measurement inputs require
C-contiguous arrays and raise an error suggesting numpy.ascontiguousarray;
the caller therefore decides whether to pay for that copy. Accepted NumPy
inputs are copied into Rust-owned storage at the binding boundary. Arrays
opened through a result bundle are loaded on first access, cached, and exposed
as immutable NumPy arrays.
Start here
Install the Python package:
python -m pip install fpm-rs
Then compile a small model, simulate it, and reconstruct it:
import numpy as np
import fpm_rs as fpm
optics = fpm.Optics(
wavelength_vacuum_m=532e-9,
objective_na=0.10,
magnification=4.0,
camera_pixel_size=6.5e-6,
)
geometry = fpm.PlanarLEDArray(
shape=(3, 3),
pitch_m=4e-3,
reference_index=(1.0, 1.0),
pose=fpm.ArrayPose.from_translation(
translation_m=(0.0, 0.0, -90e-3),
),
)
illumination = fpm.Illumination(geometry=geometry)
model = fpm.compile_model(
optics=optics,
illumination=illumination,
image_shape=(32, 32),
)
simulation = fpm.simulate(
true_model=model,
object=np.ones(model.reconstruction_shape, dtype=np.complex128),
seed=1234,
)
problem = fpm.ReconstructionProblem(
measurements=simulation.measurements,
model=simulation.reconstruction_model,
)
result = fpm.AlternatingProjection(iterations=20).run(problem)
print(result.amplitude.shape)
For the Rust equivalent, run:
cargo run --example simulate_and_reconstruct
Go deeper
- Documentation: installation, tutorials, guides, concepts, and API references.
- Quickstart: a narrated Python workflow.
- Reconstruction guide: model sizing, algorithms, physical illumination calibration, callbacks, and checkpoints.
- Measurements, simulation, and datasets: prepare real data and create test cases.
- Contributor guide: build, test, and document a checkout.
License
fpm-rs is available under the MIT License.
Metadata
Release files for fpm-rs 0.2.0b3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fpm_rs-0.2.0b3.tar.gz | 479.4 kB | With provenance | Details for fpm_rs-0.2.0b3.tar.gz |
Built distributions (wheels)
Total release size: 158.4 MB
Release files / fpm_rs-0.2.0b3.tar.gz
| Download URL | fpm_rs-0.2.0b3.tar.gz |
|---|---|
| Size | 479.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a2f113ec31fe7b49854d5125d1d1848ab653def58944bd4f17652e477b0c1a3
|
|
BLAKE2b-256 checksum How to use checksums |
eea568397349da1effc27b1631bc12b504f3a2161e1a4a642d1801bbb59665eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp314-cp314-win_amd64.whl
| Download URL | fpm_rs-0.2.0b3-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1beea6257e9de2cc1d4f7064b3aa1ed83d92666ba0c2c5b6243417f5ea5a7054
|
|
BLAKE2b-256 checksum How to use checksums |
68b08f0fd9ba15e4a5f65d4f6ae77a945e8fd4be786596ae2b33b45334b285c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fpm_rs-0.2.0b3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 11.0 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e916ed417aaaedeb74e06730e0bac9ae074088d25ba4d5641eed5e4a81561225
|
|
BLAKE2b-256 checksum How to use checksums |
8db7d9faf76f4c34634ebe37356b31c7c5520510edc5285d1bd0aa4e59b273b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | fpm_rs-0.2.0b3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 10.1 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
0bf66c8634309d198a89d62a59ff98fbfe9a61302d006d41eefca7489345abe2
|
|
BLAKE2b-256 checksum How to use checksums |
a69568f7c41ea704af9752543a00cb666a710698bffa6c2c56b49991cc6546b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | fpm_rs-0.2.0b3-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.7 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3980963e2d59d3f4873aaac0efe9f626155776a6a9475ada0f3655cf062b02a8
|
|
BLAKE2b-256 checksum How to use checksums |
44872c8373c5bad5b79cbe2b3b6300d640f8a42f2c7c39b8f148c6edbba55b8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp314-cp314-macosx_10_12_x86_64.whl
| Download URL | fpm_rs-0.2.0b3-cp314-cp314-macosx_10_12_x86_64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.14 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
f556f5bdac285718f1d5acdf8bfbab8bde4124d7e09073a2f21fe8d94fe4c39b
|
|
BLAKE2b-256 checksum How to use checksums |
8c51685de732417c02fab9943926996e84106b2754e93c2be6a9003a203d124b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp313-cp313-win_amd64.whl
| Download URL | fpm_rs-0.2.0b3-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6bffbcf98d273e2197175e1d30814802601d8b035d229c5e396136361c227a5e
|
|
BLAKE2b-256 checksum How to use checksums |
b78ac6bff54082b14fd9fb5e73762145c32c8bbc7c31b4408af2c32a1df89d68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fpm_rs-0.2.0b3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 11.0 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
3506ae4e6c05fcdccf1043b4a5744f461062c55289a656809c0ffd2692fedbdd
|
|
BLAKE2b-256 checksum How to use checksums |
ec2a1bb661228acc7308dd98a21da2431ae1354153ff0116edcb2ff4a332f360
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | fpm_rs-0.2.0b3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 10.2 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
cdf583699a9b21bdfbb33bacfff7610c163e96c214912d6b75b720933be97429
|
|
BLAKE2b-256 checksum How to use checksums |
ff3abfef2640d68bce284999d6c9d82ef09221b15d618b4f85a133bf7aa1e23c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | fpm_rs-0.2.0b3-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.7 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
264b20d818221f3096d9ed988da15781f566ce74cfc69aacfdaef72966617a37
|
|
BLAKE2b-256 checksum How to use checksums |
5fa04b56ebe7c084e9c217dc09060df550adbbda5d3b2693fc18a4f34d21e1b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp313-cp313-macosx_10_12_x86_64.whl
| Download URL | fpm_rs-0.2.0b3-cp313-cp313-macosx_10_12_x86_64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.13 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
1feddc256a94bd865c3b8b922709577de30c27fa49e5143c800662dc7e5ffce0
|
|
BLAKE2b-256 checksum How to use checksums |
bec73d09d16d4cc5bdcf747c34601ca8bd9d0fe81c5dd9ec520c9341fb96ed94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp312-cp312-win_amd64.whl
| Download URL | fpm_rs-0.2.0b3-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6d4b743eac59c7f3fa820031ccfa5aca2c58cac4ee09519023eaeddcd01afac1
|
|
BLAKE2b-256 checksum How to use checksums |
eaad0917947b1a5bab32e7204d3daaf0aa88e5c715bea9a2a0032c82c59c86f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fpm_rs-0.2.0b3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 11.0 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
7e9b483e33977f0679d454ea56dca34f3efd077410b27d85c0e0f5bfd5213a26
|
|
BLAKE2b-256 checksum How to use checksums |
7d9d6f6208d9e954f2facfcf22058c552251ca4c8beabf6321e1419f79c4a453
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | fpm_rs-0.2.0b3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 10.2 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
1e11c5391db5e13d981aa34faa622abe3f233205e00a318c8be666b97f4ff19e
|
|
BLAKE2b-256 checksum How to use checksums |
b6dabc39d59c9b4273b332e965c42575552247167f4b2e1848061c30b5d85da1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | fpm_rs-0.2.0b3-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 9.7 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
91d4cf8a13f0eee92eee02b9a3a5b3eaa6b92c8988ff6938f413467f2e55e5cb
|
|
BLAKE2b-256 checksum How to use checksums |
c837333bcc8b606e5a1e599e1d5f56e581b8b26bec8d6e0f5977bd36c42b4298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / fpm_rs-0.2.0b3-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | fpm_rs-0.2.0b3-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
89122331c326df8d50d9973ff05521d4e05b52373f9202fc8108c0f18ae55660
|
|
BLAKE2b-256 checksum How to use checksums |
310454e09baffe45e020c0beae6c7c4b967b996a09ce4159864ef2f4591a61f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logSecurity for fpm-rs 0.2.0b3
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 16 files in this release have been uploaded with provenance metadata.
Attestation for fpm_rs-0.2.0b3.tar.gz
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 Oct 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.