Skip to main content

conditional-method

Conditionally select which method implementation survives class creation — decided at runtime, at startup, or at class build time.

CI PyPI version Python versions Wheel License


Documentation: https://jymchng.github.io/conditional-method/

Source Code: https://github.com/jymchng/conditional-method


A decorator @cfg (aliases: @cm, @if_) that selects a method implementation among those that are identically named on a class — during class build time. Only the selected method remains in the class attributes, i.e. the class is well-formed. The same decorators also work on module-level functions and on classes themselves.

  • Conditional method selection — define several implementations of the same name; the one whose condition is true survives.
  • Decided when you need it — evaluate conditions at import/startup time (boolean) or lazily per call (callable).
  • Clean class design — keep conditional logic out of the method body; the resulting class exposes only the chosen implementation.
  • Conditional decorators@cfg_attr applies decorators only when a condition is true.
  • Type-safe — ships py.typed and a stable public API.
  • Zero runtime dependencies.
  • Fast — the entire implementation is a C extension (conditional_method._c) built against the Python Limited API (abi3): a single cp39-abi3 wheel covers CPython 3.9–3.14.
  • Debuggable — optional debug logging for troubleshooting.

Requirements

Python 3.9+ (CPython 3.9, 3.10, 3.11, 3.12, 3.13, 3.14).

Installation

$ pip install conditional-method

---> 100%
Successfully installed conditional-method

Example

Pick one implementation per environment

import os

from conditional_method import cfg

ENVIRONMENT = os.environ.get("ENV", "development")


class Worker:
    @cfg(condition=ENVIRONMENT == "production")
    def work(self, *args, **kwargs):
        return "production"

    @cfg(condition=ENVIRONMENT == "development")
    def work(self, *args, **kwargs):
        return "development"

    @cfg(condition=ENVIRONMENT == "staging")
    def work(self, *args, **kwargs):
        return "staging"


worker = Worker()
print(worker.work())
# development

print(Worker.__dict__)
# Only ONE `work` survives — the class is well-formed:
# {'__module__': '__main__', 'work': <function Worker.work at 0x...>, ...}

Callable conditions — decided lazily, per call

import os

from conditional_method import cfg


class DatabaseConnector:
    @cfg(condition=lambda f: os.environ.get("ENV") == "production")
    def connect(self, config):
        print("Connecting to the production database...")

    @cfg(condition=lambda f: os.environ.get("ENV") == "development")
    def connect(self, config):
        print("Connecting to the development database...")

When a condition is false, the corresponding function/class raises TypeError if called or instantiated. If no condition is true, the last false one is kept as the raiser. If several conditions are true, the last one that evaluated true wins.

Apply decorators conditionally with @cfg_attr

import os

from conditional_method import cfg_attr

os.environ["FEATURE_FLAG"] = "enabled"


@cfg_attr(
    condition=os.environ.get("FEATURE_FLAG") == "enabled",
    decorators=[log_calls, cache_result],
)
def experimental_feature(value): ...

Decorators are applied in order — but only when condition is true.

More examples live in the examples/ directory and in the documentation.

Debugging

Enable debug logging by setting the environment variable __conditional_method_debug__ to any value other than "false":

# Linux / macOS
export __conditional_method_debug__=true

# Windows
set __conditional_method_debug__=true

License

This project is licensed under the terms of the MIT license.

Links

Release files for conditional-method 0.2.8

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

Source distribution (sdist)

Source distribution for conditional-method 0.2.8
File Size Uploaded
conditional_method-0.2.8.tar.gz 22.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for conditional-method 0.2.8
File
conditional_method-0.2.8-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details
conditional_method-0.2.8-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
conditional_method-0.2.8-cp39-abi3-win32.whl CPython 3.9 abi3 Windows x86-32 Details
conditional_method-0.2.8-cp39-abi3-pyemscripten_2026_0_wasm32.whl CPython 3.9 abi3 PyEmscripten 2026.0+ WebAssembly Details
conditional_method-0.2.8-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
conditional_method-0.2.8-cp39-abi3-musllinux_1_2_s390x.whl CPython 3.9 abi3 Linux musl 1.2+ IBM System/390x Details
conditional_method-0.2.8-cp39-abi3-musllinux_1_2_ppc64le.whl CPython 3.9 abi3 Linux musl 1.2+ PowerPC 64-le Details
conditional_method-0.2.8-cp39-abi3-musllinux_1_2_i686.whl CPython 3.9 abi3 Linux musl 1.2+ x86-32 Details
conditional_method-0.2.8-cp39-abi3-musllinux_1_2_armv7l.whl CPython 3.9 abi3 Linux musl 1.2+ ARMv7l Details
conditional_method-0.2.8-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
conditional_method-0.2.8-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl CPython 3.9 abi3 Linux glibc 2.17+ IBM System/390x, Linux glibc 2.28+ IBM System/390x Details
conditional_method-0.2.8-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl CPython 3.9 abi3 Linux glibc 2.17+ PowerPC 64-le, Linux glibc 2.28+ PowerPC 64-le Details
conditional_method-0.2.8-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl CPython 3.9 abi3 Linux glibc 2.17+ ARMv7l, Linux glibc 2.31+ ARMv7l Details
conditional_method-0.2.8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 Details
conditional_method-0.2.8-cp39-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl CPython 3.9 abi3 Linux glibc 2.5+ x86-64, Linux glibc 2.28+ x86-64 Details
conditional_method-0.2.8-cp39-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-32, Linux glibc 2.5+ x86-32 Details
conditional_method-0.2.8-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
conditional_method-0.2.8-cp39-abi3-macosx_10_9_x86_64.whl CPython 3.9 abi3 macOS 10.9+ x86-64 Details

Total release size: 769.4 kB

Release files / conditional_method-0.2.8.tar.gz

Download URL conditional_method-0.2.8.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9c00df9259c48535c3633883a2c1b9c76e8b8f4a7cb3a6f54707e2be59629f95
BLAKE2b-256 checksum
How to use checksums
4c6086aed0446507f246c7dcfacf2cb0b178f19f3673f33ada17e738ff29398b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-win_arm64.whl

Download URL conditional_method-0.2.8-cp39-abi3-win_arm64.whl
Size 25.9 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
b0ecf0e7d8db4ad8ff93365f69fefb4ad1b6aa12217d9ce4fe90ab768ca6c74d
BLAKE2b-256 checksum
How to use checksums
41b604e30a42b38dc6f9ea8dde3353875724766f3f9adb2c2e05db077bfa04f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-win_amd64.whl

Download URL conditional_method-0.2.8-cp39-abi3-win_amd64.whl
Size 25.1 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
47fe777fb3bff060678801624dbec2965300031a06d6d944fe029720792f61bc
BLAKE2b-256 checksum
How to use checksums
5d47422c95bcb5cf5b9405bfae8d041821af832473350cb74aca425feb9d1362
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-win32.whl

Download URL conditional_method-0.2.8-cp39-abi3-win32.whl
Size 24.5 kB
Tags CPython 3.9 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
f7c1e599e9c913a36077f9e5473b7c9accb00915649ff9398e8f8546be2c9a86
BLAKE2b-256 checksum
How to use checksums
4338ff55e1f5d2d650e421ff02e8faa41af91fcad1162cdb496061ffb9f8db40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-pyemscripten_2026_0_wasm32.whl

Download URL conditional_method-0.2.8-cp39-abi3-pyemscripten_2026_0_wasm32.whl
Size 20.0 kB
Tags CPython 3.9 PyEmscripten 2026.0+ WebAssembly abi3
SHA-256 checksum
How to use checksums
c1052f0a2872ba4808c867283c5156352d8d54c7c19d070745bd25c0250c4aa9
BLAKE2b-256 checksum
How to use checksums
ef6c346e05781a76279954486958b4293eb2f481108ff9824612773262d88f8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL conditional_method-0.2.8-cp39-abi3-musllinux_1_2_x86_64.whl
Size 49.2 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
a3466f97263c32c43d714da7235616b46a1e777b0cf2ba80c76c6a75e9babd8a
BLAKE2b-256 checksum
How to use checksums
16e5eef9e8f6017875c56753fbbeb14a671438f3eeede3b782ed65720612f10c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-musllinux_1_2_s390x.whl

Download URL conditional_method-0.2.8-cp39-abi3-musllinux_1_2_s390x.whl
Size 49.4 kB
Tags CPython 3.9 Linux musl 1.2+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
e122416e6bb796674c2ec3a0d7bdfdae9030fe858ba2f8d601ad39ffe55f711b
BLAKE2b-256 checksum
How to use checksums
16dc642a35f049bf750dae5bfa16178cbce7c0cfbc844de51aab828c11ade794
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-musllinux_1_2_ppc64le.whl

Download URL conditional_method-0.2.8-cp39-abi3-musllinux_1_2_ppc64le.whl
Size 52.0 kB
Tags CPython 3.9 Linux musl 1.2+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
b7a80c1c4b8247c7fbb45c259d2b795e52676aec9ca4448037f0f5331a59d217
BLAKE2b-256 checksum
How to use checksums
541701e9915e403b846d1b52bfb45cab66993e8107c6c6a5d513b66f28043424
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-musllinux_1_2_i686.whl

Download URL conditional_method-0.2.8-cp39-abi3-musllinux_1_2_i686.whl
Size 47.8 kB
Tags CPython 3.9 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
50e5182e68e2840eae6ea405fa07181928812e55d4d43299fde4c67238fd785a
BLAKE2b-256 checksum
How to use checksums
a4a3cc747df32b23eccadf802e2443118beeebb38ac6786963f9911a8ae254c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-musllinux_1_2_armv7l.whl

Download URL conditional_method-0.2.8-cp39-abi3-musllinux_1_2_armv7l.whl
Size 47.9 kB
Tags CPython 3.9 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
ca760c7b22b9b67c9d0b77d85fbc9a1862f987f855175c29befd519502ce5b6b
BLAKE2b-256 checksum
How to use checksums
b22471f7c401f0efde1369a4a8e696e53bb95e7f0432a255b44e2dd126f8003d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL conditional_method-0.2.8-cp39-abi3-musllinux_1_2_aarch64.whl
Size 49.5 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
19707c99f66f846403aacbfe09a4062aa93ec3fd93ff24c85ac0e5b7be252d83
BLAKE2b-256 checksum
How to use checksums
4587638fb2522cd4b58e7cb525f5ae7fb431242f0d93cded551a44575b3bac33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl

Download URL conditional_method-0.2.8-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl
Size 51.0 kB
Tags CPython 3.9 Linux glibc 2.17+ IBM System/390x Linux glibc 2.28+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
26fde77cf6a37dcac909b2605d0d483c9d2bb7aaf0c921edfde594c4c067be15
BLAKE2b-256 checksum
How to use checksums
4c5ed5230a1e66fd6a7fe621a696a02a1e83d29a5a19ac4c546c86d70d5e6d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl

Download URL conditional_method-0.2.8-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl
Size 54.0 kB
Tags CPython 3.9 Linux glibc 2.17+ PowerPC 64-le Linux glibc 2.28+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
a3e8ebaad3f2b09df7d57895a8e9a4d4001f07eadf44dcb1688252c95aae8947
BLAKE2b-256 checksum
How to use checksums
02d1b47deb2d4d737c913b2eb26949ab23410d4af1df7eeb050170b41c558995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl

Download URL conditional_method-0.2.8-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl
Size 53.8 kB
Tags CPython 3.9 Linux glibc 2.17+ ARMv7l Linux glibc 2.31+ ARMv7l abi3
SHA-256 checksum
How to use checksums
501abc4a0a2e0b868beb33b2ded6600688a8dc05aa14e6ccdeefb56c2b8c40fa
BLAKE2b-256 checksum
How to use checksums
5dff73edca4d73687824af86bd290c688b8749fa2f91bf122bd178b7fad6edd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL conditional_method-0.2.8-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 51.1 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
c7f1e70fb781661d23952ecf9af0cc08e2ecd632538d91e3f73208e8459f067d
BLAKE2b-256 checksum
How to use checksums
95fbfed9e53d2fbf7b4896dba9372f91331b9ca00d388865651fa82acd85e0c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL conditional_method-0.2.8-cp39-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 50.1 kB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3
SHA-256 checksum
How to use checksums
59e8403f10dd0e82c175a58f4bae272a5b7684fe434e35f78a5ea88bd6aabdb2
BLAKE2b-256 checksum
How to use checksums
d6ed1b54d7094299b26c60d2433af3db9409791fd1b09fa31da1d54a1263568a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl

Download URL conditional_method-0.2.8-cp39-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Size 47.9 kB
Tags CPython 3.9 Linux glibc 2.28+ x86-32 Linux glibc 2.5+ x86-32 abi3
SHA-256 checksum
How to use checksums
cbae41055e4d7b9f467da5f6b6c7419e595f454d5f575659a6c6246866829907
BLAKE2b-256 checksum
How to use checksums
e8b66f3a5aca2218f382421547c58da2a0c46f6f0f0bbb3c9d06dc1f258e06a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-macosx_11_0_arm64.whl

Download URL conditional_method-0.2.8-cp39-abi3-macosx_11_0_arm64.whl
Size 24.2 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f5f9af0d376d61105d12192cc81066f07f8e47b70e91d733d9578864dac18d3a
BLAKE2b-256 checksum
How to use checksums
81f4acf3ec682b99d9b6238748ab2a599218db9f9179c6cda3bd70f966cc16d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / conditional_method-0.2.8-cp39-abi3-macosx_10_9_x86_64.whl

Download URL conditional_method-0.2.8-cp39-abi3-macosx_10_9_x86_64.whl
Size 23.8 kB
Tags CPython 3.9 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
453c6c165dc07010e042d8fa8a65dbbb16092e2dd6ea292cc4af2100b86e971d
BLAKE2b-256 checksum
How to use checksums
681e2ebb9ab68d673d0e92852d8b1b85b3c0dcc81755cc97b08389a4c65b16ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.3

19 release files

0.3.2

19 release files

0.3.1

19 release files

0.3.0

19 release files

0.2.9

19 release files

This release

0.2.8 This release

19 release files

0.2.7

19 release files

0.2.6

18 release files

0.2.5

18 release files

0.2.4

18 release files

0.2.3

19 release files

0.2.2

19 release files

0.2.1

19 release files

0.2.0

19 release files

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