Skip to main content

Vidimera

PyPI PyPI - Python Version PyPI - Status PyPI - License Python package

Python signature and behaviour checker inspired by Elixir.

In Swedish, vidimera means to attest or to certify. It is commonly used to attest that a copy of a document is accurate compared to the original.

Installation

Install the package vidimera version 0.3+ from PyPI. The recommended requirements.txt line is vidimera~=0.3.

Current Functionality

assert_implements(object, expected, scope=Behaviour.PUBLIC_AND_SPECIAL)

  • Raises an AssertionError listing missing callables and their signatures if there are any. Based on behaviour.implements.

Behaviour(object)

  • Creates a new Behaviour instance.
  • If object already is an instance of Behaviour, it is returned unchanged.

behaviour.implemented_by(other, scope=Behaviour.PUBLIC_AND_SPECIAL)

  • Verifies that other at least has the same public and dunderscore callables with the same signatures as the behaviour.
  • Creats a Behaviour from other before making the comparison.

behaviour.implements(other, scope=Behaviour.PUBLIC_AND_SPECIAL)

  • Verifies that the behaviour at least has the same public and dunderscore callables with the same signatures as other.
  • Creats a Behaviour from other before making the comparison.

behaviour.signatures(scope=Behaviour.PUBLIC_AND_SPECIAL)

  • Returns a set of tuples that represent the name and the callable selected based on the scope.
  • Possible scopes include PUBLIC, PRIVATE, SPECIAL, and PUBLIC_AND_SPECIAL.

MissingBehaviour(delta)

  • An internal representation of missing behaviour. Created from a set of names and signatures. If the set is empty, this object will be truthy. If the set is non-empty, this object is falsy.

Metadata

Release files for vidimera 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vidimera 0.3.1
File Size Uploaded
vidimera-0.3.1.tar.gz 4.0 kB Details

Built distribution (wheel)

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

Total release size: 8.7 kB

Release files / vidimera-0.3.1.tar.gz

Download URL vidimera-0.3.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b4970467f4d07e59f39386cddbdb5bf1b6e9db14d2123312bce884f0a29ac339
BLAKE2b-256 checksum
How to use checksums
2b87441a249cd848d7eb030436d86450195a7b0c5439b9da2b1c9a16f7f6b622
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Release files / vidimera-0.3.1-py3-none-any.whl

Download URL vidimera-0.3.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14d34b9d0bb506e7b9885c1f00984ed06b3f27f25427e925cf76d3c047a53e82
BLAKE2b-256 checksum
How to use checksums
a122a48f5223b6aa8a6bdb02f110b5173f868039c8e1d38ca9e8dc520b58a544
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

1 release file

0.1.0

1 release file

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