Skip to main content

Construct Checks for Optional Dependencies

Project description

optional_dependencies

Construct Checks for Optional Dependencies

Installation

PyPI platforms PyPI version

pip install optional_dependencies

Documentation

This package allows for easy construction of checks for optional dependencies. As every Python project can have its own unique set of optional dependencies, optional_dependencies provides an enum.Enum base class for enumerating the optional dependencies.

from optional_dependencies import OptionalDependencyEnum, auto

# Note that `auto` is just a re-export of enum.auto


class OptDeps(OptionalDependencyEnum):
    PACKAGING = auto()


OptDeps.PACKAGING
# <OptDeps.PACKAGING: <Version('...')>>

OptDeps.PACKAGING.is_installed
# True

OptDeps.PACKAGING.version
# <Version('...')>

Citation

[![DOI][zenodo-badge]][zenodo-link]

If you found this library to be useful and want to support the development and maintenance of lower-level code libraries for the scientific community, please consider citing this work.

Development

codecov Actions Status

We welcome contributions!

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

optional_dependencies-0.1.0rc2.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file optional_dependencies-0.1.0rc2.tar.gz.

File metadata

File hashes

Hashes for optional_dependencies-0.1.0rc2.tar.gz
Algorithm Hash digest
SHA256 f336432d6baf74831b4f26b99392806c68eb520f4191d01d31474d990a73c151
MD5 f10ea4929326df61788f1ce10799dfab
BLAKE2b-256 eb462c8e1e41bbf3bb7e97d8e03af8cb691364e600c9c2a11f3ac46a18d6b09b

See more details on using hashes here.

File details

Details for the file optional_dependencies-0.1.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for optional_dependencies-0.1.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6ef6e013f48398f3d78decfe4a92443c577391ba734269e26ac686f19ae6279
MD5 6730b231817bd8bee7de8d5c6b579e21
BLAKE2b-256 b0b02fdebe2949a1b3d943f8e6581117847ec1cd41ab45ab73db0960ef81e6e5

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