{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"}],"enrichment":{"capability":"Provides fixed-width integer classes that preserve their bit width across arithmetic operations, with both mutable and immutable variants for emulating machine integers.","skillfed_tags":["bit-manipulation","hardware-emulation"],"use_cases":["Emulate CPU registers or memory-mapped hardware with fixed bit widths and wraparound arithmetic.","Extract and manipulate individual bits or bit ranges from flag registers without manual bitwise operations.","Implement low-level algorithms that depend on C-style integer overflow and truncation behavior.","Convert between fixed-width binary representations and Python integers for protocol or file format handling."],"what_it_does":"fixedint provides Python classes that represent integers with a fixed number of bits, mimicking the behavior of machine integers in C or assembly. It includes predefined classes for common widths (8, 16, 32, 64 bits) in both signed and unsigned variants, plus mutable and immutable versions of each. Arithmetic operations on these integers automatically wrap and truncate to preserve the fixed width, so operations like bitwise NOT on a 32-bit unsigned integer produce the expected 0xffffffff rather than Python's arbitrary-precision result.\n\nThe package supports slicing to extract and manipulate individual bits or bit ranges, making it useful for register emulation and bitfield manipulation. Mutable instances can be modified in-place while retaining their type, and both variants provide byte conversion methods compatible with Python 3.4+. It is designed as a drop-in replacement for int in contexts where fixed-width semantics are required.","worth_installing":"Yes, if you need fixed-width integer semantics for hardware emulation, low-level algorithms, or bitfield manipulation and can tolerate dormant maintenance. The package has no dependencies, installs easily, and carries no security vulnerabilities. However, do not use it if you require active bug fixes or Python version support beyond what was tested at the last release in 2022."},"id":"fixedint","links":{"html":"https://skillfed.io/packages/fixedint","md":"https://skillfed.io/packages/fixedint.md","pypi":"https://pypi.org/project/fixedint/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-09-16","license_spdx":null,"license_treatment":"permissive","name":"fixedint","python_support":"unspecified","summary":"simple fixed-width integers"},"popularity":{"monthly_downloads":4369384,"position":2317,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.2.0"}
