$npx skillfedfor your agent

cint

cint - make ctypes great again

With conditionsPyPI Software DevelopmentReleased Mar 2019930.4K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — cint-1.0.0-py3-none-any.whl
v1.0.0 · released 2019-03-19 · Python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*

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—acceptable 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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies.
  • The package is aging—last release was 2019-03-19 and no updates since—but the repository remains unarchived as of 2026-01-06.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), so you can use it freely in commercial or private projects with minimal restrictions.

last release 2019-03-19 (2705 days) · last repo commit 2026-01-06 · 12 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 930,357 downloads/mo, #4,703 on PyPI

Verify before relying

pip install cint

from cint import I8, U16

x = I8(127)
result = x + 1  # I8(-128) due to overflow
y = x + U16(1)  # U16(128) due to type promotion
  • Whether overflow behavior is correct across all supported integer types and edge cases on modern platforms.
  • Actual compatibility with Python 2.7 given the long time since last release.
Same gist for agents: .md · .json

What it is and 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.

This 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—the overflow and type conversion happen transparently.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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—acceptable 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.

Install

cint on PyPI

Before you install

Installation is straightforward with no runtime dependencies. The package is aging—last release was 2019-03-19 and no updates since—but the repository remains unarchived as of 2026-01-06.

License in practice

Licensed under MIT (permissive), so you can use it freely in commercial or private projects with minimal restrictions.

Quickstart

pip install cint

from cint import I8, U16

x = I8(127)
result = x + 1  # I8(-128) due to overflow
y = x + U16(1)  # U16(128) due to type promotion

Verify before relying

  • Whether overflow behavior is correct across all supported integer types and edge cases on modern platforms.
  • Actual compatibility with Python 2.7 given the long time since last release.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 2,705 days since the last release
Last repo commit
First released
Downloads930,357 / month, #4,703 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3

Evidence: cint-1.0.0-py3-none-any.whl

Tags

Capabilities
ctypes integer overflowC-style integer arithmeticsigned unsigned type promotioninteger overflow behaviorctypes wrapper arithmeticc integer semantics python
Topics
ctypes-wrapperreverse-engineeringc-semantics

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “ctypes integer overflow”

  • cintWraps ctypes integer types to perform arithmetic with C-like overflow…
  • fixedintProvides fixed-width integer classes that preserve their bit width…
  • ntstatusProvides Python constants and lookup methods for Windows API…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also fixedint · ml-dtypes · leb128 · intbitset · fxpmath · ctypesgen · comtypes · typedunits · fable-library · infinity