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

Example

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

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

Examples/

Feedback github_issues gitter github_follow

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-0.0.13.tar.gz (2.5 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for only-0.0.13.tar.gz
Algorithm Hash digest
SHA256 a26bc2b9ab88b8c35fd12f7e0e712afd3394c46c4b7475034275786ac6cf5e7b
MD5 d5d07fc8923b2a093e8f600ba009fb77
BLAKE2b-256 0e2c731a37a410db3217ef5663d6f4cd4c4c330ee704f5105bd7c3c0724a3bc0

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