Skip to main content

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

Project description

https://img.shields.io/badge/Language-Python-blue.svg?style=plastic https://img.shields.io/pypi/pyversions/only.svg

https://codeclimate.com/github/russianidiot/only.py/badges/gpa.svg https://landscape.io/github/russianidiot/only.py/master/landscape.svg?style=flat https://scrutinizer-ci.com/g/russianidiot/only.py/badges/quality-score.png?b=master

Usage

>>> import only

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

Examples

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

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

Feedback github_follow github_issues

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for only-0.0.18.tar.gz
Algorithm Hash digest
SHA256 6ea8761376a7478b2dc5cf0a2de40982a9cf87303e4636d64caeaea76b059b19
MD5 a0802dfee96a8abee166c203fe78f34a
BLAKE2b-256 9539c7599f33a34ef38a3c18515ae074d8e1e8c2de6f9479fef07c164b114de1

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