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://img.shields.io/pypi/v/only.svg

https://api.codacy.com/project/badge/Grade/fe6a6f03f9354ae391a907cdff85e47b 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

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

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for only-0.0.31.tar.gz
Algorithm Hash digest
SHA256 c8e87ff4ffa3792f483a620364a485ea0de70e8ef11d0d2727b6067a54799f9c
MD5 1495036d795a0d5db4220a92e943a48f
BLAKE2b-256 154f7976047aa6f21ae9d4bc0d19f9f45af9c684108a2449a2f30a8ac0e790f1

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