plenoptic-migrate
Migrate from plenoptic 1.x to 2.0.
Rewrites all occurrences of old API names to their new equivalents, in-place, for each file passed as a command-line argument. After rewriting, reports any deprecated usages that could not be automatically resolved and must be updated manually.
This tool only changes fully resolvable plenoptic objects. For example, it will
replace plenoptic.synth.Metamer with plenoptic.Metamer, but will not
touch from plenoptic.synthesize import Metamer.
We overwrite all files in-place. We therefore recommend that you track your files
using git or make use of the --backup-dir option to create a backup. You are then
encouraged to double-check all the changes! This tool worked for the developers of
plenoptic but has not been tested on a wide variety of setups.
Installation
The recommended way to use the tool is via uvx or pipx, both of which will create a temporary isolated virtual environment for the tool:
$ pipx run plenoptic-migrate --help
or
$ uvx plenoptic-migrate --help
Module aliases
The tool handles the standard module aliases used in plenoptic's tutorials and examples:
import plenoptic as po
import plenoptic.synthesize as synth
import plenoptic.simulate as simul
Non-standard aliases (e.g. import plenoptic as plen) are not handled and
must be updated manually.
Usage:
$ plenoptic-migrate [OPTIONS] PATHS...
Arguments:
PATHS...: Directory or text files to update (e.g., .py scripts, .ipynb notebooks, .md files). Non-text files will be skipped. [required]
Options:
--backup-dir PATH: Path where we will create a directory to copy existing paths into. Must not exist.--help: Show this message and exit.
Metadata
Release files for plenoptic-migrate 1.0.0
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 |
|---|---|---|---|---|
| plenoptic_migrate-1.0.0.tar.gz | 9.1 kB | With provenance | Details for plenoptic_migrate-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plenoptic_migrate-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for plenoptic_migrate-1.0.0-py3-none-any.whl |
Total release size: 16.6 kB
Release files / plenoptic_migrate-1.0.0.tar.gz
| Download URL | plenoptic_migrate-1.0.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f52e396b317cf79dc6ba3d8ecb4f5a6e0c62f45df8e6344105ce001936ba3007
|
|
BLAKE2b-256 checksum How to use checksums |
9e0a95255965538d849de6d9ee9184e6fdc50a1af9dd41f7e76b97eb629f03dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jun 4, 2026.
Transparency logRelease files / plenoptic_migrate-1.0.0-py3-none-any.whl
| Download URL | plenoptic_migrate-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8643ca5bda6a7ebcb4d601c4c22aad47cd0d625f78752c257eab251902c5b78d
|
|
BLAKE2b-256 checksum How to use checksums |
0f79adf723f682619671ffb9cb77d70bbaf65bd15b84436681dd0b8c285f6c07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jun 4, 2026.
Transparency logSecurity for plenoptic-migrate 1.0.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for plenoptic_migrate-1.0.0.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 Jun 4, 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.