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.2.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

imcf_fiji_mocks-0.2.1-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: imcf_fiji_mocks-0.2.1.tar.gz
  • Upload date:
  • Size: 4.1 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.2.1.tar.gz
Algorithm Hash digest
SHA256 1a69bef1cc44bb4ed550f8e6145f5f51c85066c5b54360523e287c838aa4702d
MD5 cbaf1a921e22a751b935aa5ad7656a7f
BLAKE2b-256 722d7e0f04af2c679b9cdc54a08aa55e35e7cd1e5bd36c11971eb695c1ed0a70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imcf_fiji_mocks-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c6601933ad804bc4b3b230f9c8e2d69f30ddb58b2c2d719ad726829029d79ca6
MD5 4f14e9ea130cfcf1e5de2357a8fab27f
BLAKE2b-256 d10bb5c4a89f5ae362624667ea1519cd3b9ac07d1fbbd66a6e81ee51ea317c6e

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