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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for only-0.0.29.tar.gz
Algorithm Hash digest
SHA256 5889d30d92bb0336869c21cec3a1fad192d496cd9a4e2608a767c079fd5e22bd
MD5 5341880446d45ef1a1a9dde77b25c737
BLAKE2b-256 1c07cdfcc64d0b91e58a945e13af5a0b8bc277886575e2f32d78072c12f80d96

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