Skip to main content

errno_converter & signal_converter & http_converter

As simple command line tool to convert error numbers (of C errno.h), signal numbers and HTTP-Status-Codes to human readable strings or back to numbers. This tool makes use of errno, signal and http module of the python standard library.

Example usage of errno_converter:

$ errno_converter.py
./dev/errno_converter/errno_converter.py [-v] list|<errno-number>|<errno-name>

$ errno_converter.py ENOENT
2

$ errno_converter.py -v ENOENT
  2 - ENOENT         : No such file or directory

$ errno_converter.py 2
ENOENT

$ errno_converter.py -v 2
  2 - ENOENT         : No such file or directory

$ errno_converter.py ENOE
  2 - ENOENT
  8 - ENOEXEC

$ errno_converter.py -v ENOE
No errno matched the input 'ENOE' (module 'errno' has no attribute 'ENOE'). Try to match as re:
  2 - ENOENT         : No such file or directory
  8 - ENOEXEC        : Exec format error

$ errno_converter.py list
  1 - EPERM
  2 - ENOENT
…
130 - EOWNERDEAD
131 - ENOTRECOVERABLE

$ errno_converter.py -v list
  1 - EPERM          : Operation not permitted
  2 - ENOENT         : No such file or directory
…
130 - EOWNERDEAD     : Owner died
131 - ENOTRECOVERABLE: State not recoverable
invalids: {41, 58}

Example usage of signal_converter:

$ signal_converter.py
signal_converter.py [-v] list|<errno-number>|<errno-name>

$ signal_converter.py SIGINT
2

$ signal_converter.py -v SIGINT
  2 - SIGINT         : Interrupt

$ signal_converter.py 2
SIGINT

$ signal_converter.py -v 2
  2 - SIGINT         : Interrupt

$ signal_converter.py SIGIO.*
 29 - SIGIO
  6 - SIGIOT

~$ signal_converter.py -v SIGIO.*
No signal matched the input 'SIGIO.*' (module 'signal' has no attribute 'SIGIO.*'). Try to match as re:
 29 - SIGIO          : I/O possible
  6 - SIGIOT         : Aborted

$ signal_converter.py list
  1 - SIGHUP
  2 - SIGINT
…
 34 - SIGRTMIN
 64 - SIGRTMAX

$ signal_converter.py -v list
  1 - SIGHUP         : Hangup
  2 - SIGINT         : Interrupt
…
 34 - SIGRTMIN       : Real-time signal 0
 64 - SIGRTMAX       : Real-time signal 30
invalids: {16, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63}

Installation

This package is on pypi:errno-converter

pip install errno-converter

Release files for errno_converter 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for errno_converter 0.2.1
File Size Uploaded
errno_converter-0.2.1.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for errno_converter 0.2.1
File Interpreter ABI Platform
errno_converter-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.0 kB

Release files / errno_converter-0.2.1.tar.gz

Download URL errno_converter-0.2.1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d25a23c3904033c2382393b6e054ffee4aa7e7a63676dcace5ce53682614843f
BLAKE2b-256 checksum
How to use checksums
2ea05c9d091065088b8a7ae6c553b215ecd34b3afe81427cc44659032273c894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.16

Release files / errno_converter-0.2.1-py3-none-any.whl

Download URL errno_converter-0.2.1-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5783deb2955af3ee1ed3b022807f607b6766ea3ce8c9d66c1bba5a39dddb85dc
BLAKE2b-256 checksum
How to use checksums
54d6961c0705e411cd98082768b0e865f3e78fd5a5c69828217973243a029f8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.16

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page