Defineif

Latest version: v0.1.0

Safety actively analyzes 681874 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.0

Added

- DefineIf class implemented, we can now use it via inheritance and decorators. For
example:

python
import os

from defineif import DefineIf


class Klass(DefineIf):

staticmethod
DefineIf(os.name == 'nt')
def get_platform():
return 'Windows'

staticmethod
DefineIf(os.name == 'posix')
def get_platform():
return 'Linux'

platform = Klass.get_platform()

print(platform)

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.