Skip to main content

DistOptica

Test library Code Coverage Documentation PyPi Version Conda-Forge Version License DOI

distoptica is a Python library for modelling optical distortions.

Visit the distoptica website for a web version of the installation instructions, the reference guide, and the examples archive.

The source code can be found in the distoptica GitHub repository.

Table of contents

Instructions for installing and uninstalling distoptica

Installing distoptica

For all installation scenarios, first open up the appropriate command line interface. On Unix-based systems, you could open e.g. a terminal. On Windows systems you could open e.g. an Anaconda Prompt as an administrator.

Before installing distoptica, it is recommended that users install PyTorch in the same environment that they intend to install distoptica according to the instructions given here for their preferred PyTorch installation option.

Installing distoptica using pip

Before installing distoptica, make sure that you have activated the (virtual) environment in which you intend to install said package. After which, simply run the following command:

pip install distoptica

The above command will install the latest stable version of distoptica.

To install the latest development version from the main branch of the distoptica GitHub repository, one must first clone the repository by running the following command:

git clone https://github.com/mrfitzpa/distoptica.git

Next, change into the root of the cloned repository, and then run the following command:

pip install .

Note that you must include the period as well. The above command executes a standard installation of distoptica.

Optionally, for additional features in distoptica, one can install additional dependencies upon installing distoptica. To install a subset of additional dependencies (along with the standard installation), run the following command from the root of the repository:

pip install .[<selector>]

where <selector> can be one of the following:

  • tests: to install the dependencies necessary for running unit tests;
  • examples: to install the dependencies necessary for executing files stored in <root>/examples, where <root> is the root of the repository;
  • docs: to install the dependencies necessary for documentation generation;
  • all: to install all of the above optional dependencies.

Alternatively, one can run:

pip install distoptica[<selector>]

elsewhere in order to install the latest stable version of distoptica, along with the subset of additional dependencies specified by <selector>.

Installing distoptica using conda

Before proceeding, make sure that you have activated the (virtual) conda environment in which you intend to install said package. For Windows systems, users must install PyTorch separately prior to following the remaining instructions below.

To install distoptica using the conda package manager, run the following command:

conda install -c conda-forge distoptica

The above command will install the latest stable version of distoptica.

Uninstalling distoptica

If distoptica was installed using pip, then to uninstall, run the following command:

pip uninstall distoptica

If distoptica was installed using conda, then to uninstall, run the following command:

conda remove distoptica

Learning how to use distoptica

For those new to the distoptica library, it is recommended that they take a look at the Examples page, which contain code examples that show how one can use the distoptica library. While going through the examples, readers can consult the distoptica reference guide to understand what each line of code is doing.

Metadata

Release files for distoptica 0.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 distoptica 0.4.4
File Size Uploaded Provenance Actions
distoptica-0.4.4.tar.gz 558.5 kB With provenance Details for distoptica-0.4.4.tar.gz

Built distribution (wheel)

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

Total release size: 604.4 kB

Release files / distoptica-0.4.4.tar.gz

Download URL distoptica-0.4.4.tar.gz
Size 558.5 kB
Tags Source
SHA-256 checksum
How to use checksums
906dfdc8e92d2ef911baf8bdf3f4f34f4f1322776275b4b045893a21e2c11486
BLAKE2b-256 checksum
How to use checksums
401fe33ad23110ad43797e951b08ec5d593dd9755804cb0ddf947eb90314dcf7
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 Jan 18, 2026.

Transparency log

Release files / distoptica-0.4.4-py3-none-any.whl

Download URL distoptica-0.4.4-py3-none-any.whl
Size 45.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25a4fccc457f0f824bf33eec69314cda31da87315b5e093238d7327fcd760f4e
BLAKE2b-256 checksum
How to use checksums
845d92682d4c8a2f61b0a4bdec1e8865dd1251d04070cb1b9c88b8dc828a9b68
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 Jan 18, 2026.

Transparency log

Security for distoptica 0.4.4

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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for distoptica-0.4.4.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 Jan 18, 2026.

Transparency log

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