Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

exit-codes

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exit-codes

Platform-independent exit codes.

  • 1.3.0
  • PyPI
  • Socket score

Maintainers
2

|Python version| |Build Status|

============ exit_codes

Platform-independent exit codes.

Python provides standard exit status codes for some platforms, but not all. This is technically, pedantically correct, but it makes it awkward to provide practical cross-platform exit statuses. This package takes the exit status codes defined in os for Unixes and make them available to the unwashed masses.

It's simple to use:

.. code-block:: python

from exit_codes import ExitCode

def main(): if big_operation(): # If your program exits normally, return OK return ExitCode.OK else: # Otherwise, return the appropriate error code return ExitCode.IO_ERR

.. |Python version| image:: https://img.shields.io/badge/Python_version-2.6+-blue.svg :target: https://www.python.org/ .. |Build Status| image:: https://travis-ci.org/sixty-north/exit-codes.png?branch=master :target: https://travis-ci.org/sixty-north/exit-codes

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc