Skip to main content

Mocks collection for Fiji-Python. Zero functional code.

Project description

Python mocks 🧌 package for Fiji related code

Initially created for enabling pdoc to generate IMCF Fiji Python packages API docs. Now also used to run pytest on e.g. the python-imcflibs package.

The goal of this project is to provide mocks that can be used to build a fake (thin) pip installable Python package that will allow tools like pdoc or pytest to build up the AST (abstract syntax tree) by using the mocked objects while performing the imports.

🚫 WARNING 🚫

This project and its packages do not contain any functional code that is useful in situations other than the ones described above!

Building artifacts

You'll need poetry installed locally, then using fish run:

rm -r dist/
poetry build -vv

Using release artifacts from GitHub

To create a virtualenv you may use artifacts attached to a public release on Github, for example using the 0.2.1 release:

set REL "0.2.1"
set URL_PFX "https://github.com/imcf/imcf-fiji-mocks/releases/download/v$REL"

pip install --upgrade \
    $URL_PFX/imcf_fiji_mocks-$REL-py2.py3-none-any.whl \
    $URL_PFX/micrometa-15.2.2-py2.py3-none-any.whl \
    $URL_PFX/sjlogging-0.5.2-py2.py3-none-any.whl \
    pdoc \
    olefile \
    pip

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imcf_fiji_mocks-0.3.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

imcf_fiji_mocks-0.3.0-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file imcf_fiji_mocks-0.3.0.tar.gz.

File metadata

  • Download URL: imcf_fiji_mocks-0.3.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/5.15.0-125-generic

File hashes

Hashes for imcf_fiji_mocks-0.3.0.tar.gz
Algorithm Hash digest
SHA256 acd16358f6ca5a7ded6b7c7a29d7006b2d363ba430eb72981f99997fed40d5a8
MD5 ea313dfb7cc2f48602b090036a956eb7
BLAKE2b-256 901e907f4426e6abb39e8e4e1244425dc1ec7587eb27b65cb2192102a9e18379

See more details on using hashes here.

File details

Details for the file imcf_fiji_mocks-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: imcf_fiji_mocks-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/5.15.0-125-generic

File hashes

Hashes for imcf_fiji_mocks-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 53c26891ee9b71cb0af047e0b95baf8997d244746bb997ab50f24a9062114fdb
MD5 42c10555fcbaad736ee1fd8346359518
BLAKE2b-256 046bcaecd83fd369c65a2c461f201c2ede393b7bd0650bc0b634f0759df64030

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page