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.7

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.7
File Size Uploaded
conditional_method-0.2.7.tar.gz 21.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for conditional-method 0.2.7
File
conditional_method-0.2.7-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details
conditional_method-0.2.7-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
conditional_method-0.2.7-cp39-abi3-win32.whl CPython 3.9 abi3 Windows x86-32 Details
conditional_method-0.2.7-cp39-abi3-pyemscripten_2026_0_wasm32.whl CPython 3.9 abi3 PyEmscripten 2026.0+ WebAssembly Details
conditional_method-0.2.7-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
conditional_method-0.2.7-cp39-abi3-musllinux_1_2_s390x.whl CPython 3.9 abi3 Linux musl 1.2+ IBM System/390x Details
conditional_method-0.2.7-cp39-abi3-musllinux_1_2_ppc64le.whl CPython 3.9 abi3 Linux musl 1.2+ PowerPC 64-le Details
conditional_method-0.2.7-cp39-abi3-musllinux_1_2_i686.whl CPython 3.9 abi3 Linux musl 1.2+ x86-32 Details
conditional_method-0.2.7-cp39-abi3-musllinux_1_2_armv7l.whl CPython 3.9 abi3 Linux musl 1.2+ ARMv7l Details
conditional_method-0.2.7-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
conditional_method-0.2.7-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.7-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl CPython 3.9 abi3 Linux glibc 2.28+ PowerPC 64-le, Linux glibc 2.17+ PowerPC 64-le Details
conditional_method-0.2.7-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl CPython 3.9 abi3 Linux glibc 2.31+ ARMv7l, Linux glibc 2.17+ ARMv7l Details
conditional_method-0.2.7-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.7-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.7-cp39-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl CPython 3.9 abi3 Linux glibc 2.5+ x86-32, Linux glibc 2.28+ x86-32 Details
conditional_method-0.2.7-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
conditional_method-0.2.7-cp39-abi3-macosx_10_9_x86_64.whl CPython 3.9 abi3 macOS 10.9+ x86-64 Details

Total release size: 754.6 kB

Release files / conditional_method-0.2.7.tar.gz

Download URL conditional_method-0.2.7.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
64ca12738530f9bebb8a179582ade16ca96bca6ab1677a94166b8c68d17d9c9b
BLAKE2b-256 checksum
How to use checksums
9a7b1f1d2dc9b949a02dbecd456e54a6b8bee8e6958bb28817d23a5a878df4aa
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.7-cp39-abi3-win_arm64.whl

Download URL conditional_method-0.2.7-cp39-abi3-win_arm64.whl
Size 25.3 kB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
ce58964645a957b6cbabde9179b4a8167815903d48e7ca325b12cd8a22f93aa6
BLAKE2b-256 checksum
How to use checksums
9ef397b56c1eeb1e64b461af3cf7539fd800847dc7e1eecf9ee0f1c141fa579f
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.7-cp39-abi3-win_amd64.whl

Download URL conditional_method-0.2.7-cp39-abi3-win_amd64.whl
Size 24.6 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
61a46da31447d0a52a72eab87c7fc5804a53d43811e4f1a8a3bcbb64bf8762cf
BLAKE2b-256 checksum
How to use checksums
31d5c39348b459c93ae8c57b08b13611c0665624fe95dec05dd871e9fff706c1
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.7-cp39-abi3-win32.whl

Download URL conditional_method-0.2.7-cp39-abi3-win32.whl
Size 23.9 kB
Tags CPython 3.9 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
837bc4adba6838f237d751dc478f155907c9f7f54becc23501ceff72f5dd76c2
BLAKE2b-256 checksum
How to use checksums
f003ed05ae5c0a4a29c16c6f316c1f9c1ee816b8efef234fa050dedadb2faaf3
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.7-cp39-abi3-pyemscripten_2026_0_wasm32.whl

Download URL conditional_method-0.2.7-cp39-abi3-pyemscripten_2026_0_wasm32.whl
Size 19.5 kB
Tags CPython 3.9 PyEmscripten 2026.0+ WebAssembly abi3
SHA-256 checksum
How to use checksums
d2b9bba02d27c1b86dc04a3d22f5ba4646cabcbd0bc19ed9d2cfc4c89a2d6323
BLAKE2b-256 checksum
How to use checksums
e7e60ceaa31f7164985d4914e7aa8184181c0effce9fe02d21cd296729905e5a
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.7-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL conditional_method-0.2.7-cp39-abi3-musllinux_1_2_x86_64.whl
Size 48.5 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
5422ab19efd30532c7fa60abd99f4111fa498717e9d4275643c6399bea070f0e
BLAKE2b-256 checksum
How to use checksums
4d5423adaf1b5dfa504297f4a909e7f3a305ad641e1a18dccff62cff7f022ba9
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.7-cp39-abi3-musllinux_1_2_s390x.whl

Download URL conditional_method-0.2.7-cp39-abi3-musllinux_1_2_s390x.whl
Size 48.5 kB
Tags CPython 3.9 Linux musl 1.2+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
73df9454221c6b44dadb4cf51bd5d6dc9bc780e3c8025a1917bde9c83db4771e
BLAKE2b-256 checksum
How to use checksums
cf7ef39f879ad95757711d7621f772decff3d5bc2953e8c2ee6cf5a3c957095d
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.7-cp39-abi3-musllinux_1_2_ppc64le.whl

Download URL conditional_method-0.2.7-cp39-abi3-musllinux_1_2_ppc64le.whl
Size 50.9 kB
Tags CPython 3.9 Linux musl 1.2+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
f270dae0414c5ed6c0cdc072c579ea71e6b974eb3ad60e3294533955e002eb4a
BLAKE2b-256 checksum
How to use checksums
f520231ef80f03e9456123dcb3c3f82a835d7e7e2ef7de058060b4d589922848
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.7-cp39-abi3-musllinux_1_2_i686.whl

Download URL conditional_method-0.2.7-cp39-abi3-musllinux_1_2_i686.whl
Size 47.1 kB
Tags CPython 3.9 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
7e4a15c71a80531e197dd0af686e1adaba32f83859f9994514fbd8316234b4e3
BLAKE2b-256 checksum
How to use checksums
8d516be4617ff3520d9e591e581563bbfd554f596188f5b10ddf79c8d771928d
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.7-cp39-abi3-musllinux_1_2_armv7l.whl

Download URL conditional_method-0.2.7-cp39-abi3-musllinux_1_2_armv7l.whl
Size 46.9 kB
Tags CPython 3.9 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
1a35b82c1fe55b858a6b73781327df11be004c14b70a8a4a8d3371f1dc65d97d
BLAKE2b-256 checksum
How to use checksums
485cd53b0af844a75f2c2b0dfc28b134b4e291c4051e477342e20f856f804f39
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.7-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL conditional_method-0.2.7-cp39-abi3-musllinux_1_2_aarch64.whl
Size 48.5 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
e582d5e75ff3a49889774a155c264d6d05edb072eefe047f7f57d606cdc9b3d4
BLAKE2b-256 checksum
How to use checksums
2911b4278c4a4fab2325ef7c6ff5c19d70c2f4bbfc7af2c5feb4db7e47a7b107
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.7-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl

Download URL conditional_method-0.2.7-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl
Size 50.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
e5e75de7dbf40090071197a986a1284194a522b50cb12f188ecc95e539e05a5a
BLAKE2b-256 checksum
How to use checksums
4adef97a5637c067d0a0ccfe6713f30e69f8419ad48e5b5e34a304a4ddd5e93b
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.7-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl

Download URL conditional_method-0.2.7-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl
Size 53.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
5e8ecfc705a5eea6587f6e470ba711cf463c12f77129e44c597c57391a8b616e
BLAKE2b-256 checksum
How to use checksums
9aca40a71a397caa3c3f7900181df9a448290770256f1af018be5782dd129111
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.7-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl

Download URL conditional_method-0.2.7-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl
Size 52.9 kB
Tags CPython 3.9 Linux glibc 2.17+ ARMv7l Linux glibc 2.31+ ARMv7l abi3
SHA-256 checksum
How to use checksums
c2fe7f58196ecac27a0e5eaa80e8fd5dc4b314b60de0083b942e393018755625
BLAKE2b-256 checksum
How to use checksums
ef7846b0557c412ca026759c11683b419850627584d2efc0ba6ea03f66940496
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.7-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL conditional_method-0.2.7-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 50.1 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
b0a757534434dd8f6163b94488cc252849b109899d6257633fa76382fc9ed552
BLAKE2b-256 checksum
How to use checksums
4290d93c361a856aef805149c5301e93ad8cff0e639091fdf1bbacc0dda6dbbc
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.7-cp39-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl

Download URL conditional_method-0.2.7-cp39-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Size 49.3 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
dcf7d7887cd0a45615310e6788f5fc608bf7b03db3950a33acc08b71069869a5
BLAKE2b-256 checksum
How to use checksums
77dd99a9b31e547afa92e7872fdb057771beb1f80ffd13cbb18c3b8abc772d22
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.7-cp39-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl

Download URL conditional_method-0.2.7-cp39-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Size 47.2 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
b689d490c7e8f32be375514605614e5d140c53b6f752de7e941e29b2ba201f48
BLAKE2b-256 checksum
How to use checksums
e5a11a45dbea7bf4e9256b59b55e7a32a791debfa1882e35818b79451bc663eb
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.7-cp39-abi3-macosx_11_0_arm64.whl

Download URL conditional_method-0.2.7-cp39-abi3-macosx_11_0_arm64.whl
Size 23.6 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ec7538ffd9db295a48f50d21fdfe9b4463191d130c8e9610cbdbd1eb5338d91c
BLAKE2b-256 checksum
How to use checksums
854e344ea89dee9ba0ad97679628d69e8d581def81aca4c1d11a6a683816d8a9
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.7-cp39-abi3-macosx_10_9_x86_64.whl

Download URL conditional_method-0.2.7-cp39-abi3-macosx_10_9_x86_64.whl
Size 23.3 kB
Tags CPython 3.9 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
6e9d28889af6bcc6d487ff908692801e14e6b517a3f509c55e83ec39ee5addd0
BLAKE2b-256 checksum
How to use checksums
3d0e81ca48e81932f6503a717051e8a155888ae4aae89c937e34391e2b99e741
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

0.2.8

19 release files

This release

0.2.7 This release

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