{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/3"}],"enrichment":{"capability":"Converts between two's complement integers and gray code (reflected binary code), where successive values differ by only one bit.","skillfed_tags":["bit-manipulation","encoding"],"use_cases":["Digital circuit design where minimizing bit transitions reduces power consumption or glitches.","Rotary encoder applications where gray code naturally represents mechanical position changes.","Error detection and correction systems that exploit the single-bit-change property.","Algorithm development or teaching that requires gray code sequences or conversions."],"what_it_does":"Graycode is a small utility library for converting between standard two's complement integers and gray code (reflected binary code), a binary numeral system where consecutive values differ by exactly one bit. This property makes gray codes useful in applications where bit transitions need to be minimized, such as digital electronics, error correction, and certain optimization problems.\n\nThe library provides three main functions: conversion from integers to gray code, conversion from gray code back to integers, and generation of all n-bit gray codes in sequence. It has no external dependencies and works with Python 3.5 and later. However, the package has been abandoned since late 2020 and receives no maintenance or updates.","worth_installing":"Yes, if you need gray code conversion for a stable, self-contained use case. The library is small, dependency-free, and has no known vulnerabilities. However, the abandoned maintenance status means no bug fixes or Python version updates are forthcoming\u2014install only if the current functionality meets your needs and you can maintain a local fork if necessary."},"id":"graycode","links":{"html":"https://skillfed.io/packages/graycode","md":"https://skillfed.io/packages/graycode.md","pypi":"https://pypi.org/project/graycode/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-11-09","license_spdx":null,"license_treatment":"permissive","name":"graycode","python_support":"supports_current","summary":"Convert two's complement integer to gray code and vice versa"},"popularity":{"monthly_downloads":97771,"position":13127,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.5"}
