Skip to main content

@only.<OS> decorator. raise OSError if not supported OS

Project description

Install

$ [sudo] pip install only

Usage

>>> import only

>>> @only.linux
>>> @only.osx
>>> @only.unix
>>> @only.windows

Examples

>>> @only.osx
>>> def osascript(): pass

>>> osascript() # raise OSError if not OS X

Sources

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

only-1.0.2.tar.gz (1.4 kB view details)

Uploaded Source

File details

Details for the file only-1.0.2.tar.gz.

File metadata

  • Download URL: only-1.0.2.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for only-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fa378ee093a565263904b73f9df1d470f44b6e31afe9919d6e7dbde28cf603e2
MD5 762506bf86e79a5f5ff9717dfbfcfcac
BLAKE2b-256 86fe65f95775a17eafcead9811be05f10ad09f50bf560c0dfa642a102dcfb632

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