{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/6"}],"enrichment":{"capability":"Wraps ctypes integer types to perform arithmetic with C-like overflow and type-promotion semantics, so operations behave exactly as they would in C rather than Python.","skillfed_tags":["ctypes-wrapper","reverse-engineering","c-semantics"],"use_cases":["Reverse-engineer C programs by replicating their integer arithmetic behavior exactly, including overflows and type promotions.","Port a C random-number generator or algorithm to Python while preserving the original's numeric semantics.","Interpret signed integers as unsigned to display them in readable hex form.","Validate or test C code logic by running it through Python with identical integer behavior.","Handle binary protocol parsing where integer fields must behave exactly as the C implementation that created them."],"what_it_does":"cint is a thin wrapper around ctypes integer types (I8, U16, I32, U64, etc.) that makes arithmetic operations follow C semantics instead of Python's unlimited-precision integers. When you add, multiply, or otherwise operate on cint values, they overflow and underflow exactly as they would in C, and when you mix types in a calculation, the result automatically promotes to the larger or unsigned type, just like C's type promotion rules.\n\nThis is useful when reverse-engineering C programs, porting C algorithms to Python while preserving their exact numeric behavior, or interpreting raw binary data that was originally processed by C code. You construct a cint value with the type and initial value, then use it in normal Python arithmetic\u2014the overflow and type conversion happen transparently.","worth_installing":"Yes, if you need exact C integer semantics in Python. The package has no dependencies, installs easily, carries no security vulnerabilities, and is permissively licensed. The main caveat is that it has not been updated since 2019\u2014acceptable for a narrow, stable utility, but verify that its overflow behavior matches your specific C compiler and platform before relying on it for critical work."},"id":"cint","links":{"html":"https://skillfed.io/packages/cint","md":"https://skillfed.io/packages/cint.md","pypi":"https://pypi.org/project/cint/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2019-03-19","license_spdx":null,"license_treatment":"permissive","name":"cint","python_support":"supports_current","summary":"cint - make ctypes great again"},"popularity":{"monthly_downloads":930357,"position":4703,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
