summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)Author
2026-01-20Update container transform docs.Brian Potchik
2026-01-20Other changes related to handling null strings.Alexander Taylor
This fixes the incorrect type hint and the other instance of the function. It also looks like type parsing could have the same issue, so I've updated that as well.
2026-01-20handle None cases when empty strings are returned from the core and fix ↵Jordan Wiens
associated coreversion usage
2026-01-18fix syntax for note section of newly added api docsJordan Wiens
2026-01-16fix pydoc formatting for recent metadata API changesJordan Wiens
2026-01-16Add get_metadata() method and make query_metadata() raise KeyError consistentlyPeter LaFosse
Introduces a Pythonic get_metadata() method to BinaryView, Function, Project, TypeArchive, and TypeLibrary classes. This method behaves like dict.get(), returning a default value (None by default) when a key doesn't exist, instead of raising a KeyError. Additionally, updates query_metadata() in TypeArchive and TypeLibrary to raise KeyError when a key is not found, making them consistent with BinaryView, Function, and Project. Previously these two classes returned None on missing keys. This breaking change is documented in the method docstrings. This provides a more consistent and Pythonic API for querying metadata across all metadata-supporting classes. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-15Make add_user/auto_segments/sections more pythonic.Peter LaFosse
This introduces two new dataclasses SegmentInfo and SectionInfo which hold information about their respective objects. These are used for specifying information to a BinaryView while class Segment and Section are still the objects used after registration. Additionally I've created two helper functions in Segment/Section which return the respective Info structure which could be useful if you wanted to modify existing Segments/Sections Currently these two APIs are only used by the add_segments/add_sections APIs but maybe more useful in the future.
2026-01-14Allow controlling which address is used for instructions created when ↵Mark Rowe
inlining during analysis Previously the address of the instruction in the function being inlined was used as the new instruction's address when copying it during inlining. Now there is an additional option: use the address of the call instruction that is being replaced as the new instruction's address. This new mode is useful when inlining thunks or stub functions, but care must be taken if using it beyond that. The benefit is that it ensures that when a function contains multiple calls to the same stub function, each inlined copy ends up with distinct addresses. This ensures that call type adjustments and other overrides that are stored on the function and keyed by address can be applied independently to each callsite that was inlined. The trade-off is that if the function being inlined contains non-trivial logic, all of the inlined instructions sharing an address will limit what type of adjustments can be applied to them. The Objective-C and shared cache workflows are updated to take advantage of this new mode when they enable inlining of stub functions. This will make it possible for multiple calls to the same runtime function within a single function to have separate call type adjustments applied in the future.
2026-01-12Add module workflow hello world example.Malware Utkonos
2026-01-01update copyrights for 2026Jordan Wiens
2026-01-01manually update formatting of some copyrightsJordan Wiens
2026-01-01add whole-file entropy calculation to triageJordan Wiens
2025-12-29Add `ProjectFile` type annotation to python `load` function (#7839)utkonos
2025-12-18entropy tooltip showing offset and fix python versionJordan Wiens
2025-12-18fix triage entropy graph navigation for mapped filesJordan Wiens
2025-12-15Add PossibleValueSet operation APIs and fixes to PVS python APIJosh Ferrell
2025-12-12Generator: Detect flag enums and use IntFlag insteadGlenn Smith
Made possible by the new attributes in binja's type system.
2025-12-12Generator: Fix <4 byte signed enums with negative membersGlenn Smith
Literally only affects InvalidILViewType
2025-12-12Python: Make raw operand conversion functions privateGlenn Smith
Fixes Vector35/binaryninja-api#7782. Seems like these were missed in the refactor in de0b872e
2025-12-11Specify fixed underlying types for enums exposed by coreMark Rowe
This allows a few widely-used enums to be shrunk from 4 bytes to 1 byte, improving packing when they're used as struct members. To remain compatible with C, we follow CoreFoundation's approach and use a macro when defining the enum: ``` #if defined(__cplusplus) || __has_extension(c_fixed_enum) #define BN_ENUM(type, name) enum name : type #else #define BN_ENUM(type, name) typedef type name; enum #endif BN_ENUM(uint8_t, SomeEnum) { ... } ``` In C++ and C23 this will expand to an enum with a fixed underlying type. In older C language versions, this will result in the enum type being a typedef of the underlying type, with an unnamed enum providing the enum values. Minor changes were needed within the Python bindings to update places that made assumptions about the underlying type of the enums.
2025-12-11Plugin api docs typos fix (#7751)Max Stanchin
2025-12-11Remove misc stray backticks in python docs (#7776)utkonos
2025-12-09Fix show_message_box crashing with `None` description in Python (#7748)utkonos
2025-12-09Python: Fix enums not being casted to their types in generatorGlenn Smith
2025-12-07Fix docs example rendering for PluginCommandContextJosh Ferrell
2025-12-05add examples for execute_ APIsJordan Wiens
2025-12-05Do not register the dbg object from the APIXusheng
2025-12-01[Python] Add `BinaryView.is_offset_backed_by_file`Mason Reed
Seems we forgot to expose this one
2025-11-25Add SectionMap with bulk operations and batch section APIs.Brian Potchik
2025-11-24Add APIs for getting files in a project folderJosh Ferrell
2025-11-24Add AnalysisContext FFI for SectionMap queries.Brian Potchik
2025-11-23Add IsOffsetReadOnlySemantics API.Brian Potchik
2025-11-23Unify SettingsCache and MemoryMap access under immutable snapshots for ↵Brian Potchik
consistent, lock-free AnalysisContext queries.
2025-11-21Add get and __contains__ methods to all *MetaClassPeter LaFosse
Fixes: https://github.com/Vector35/binaryninja-api/issues/7588
2025-11-19Fix generated type hints for function params in _binaryninjacore.pyJosh Ferrell
2025-11-19Fix BinaryView.set_manual_type_source_overrideJosh Ferrell
2025-11-19Improve python api type hintsJosh Ferrell
2025-11-19Fix some python API error messagesJosh Ferrell
2025-11-19Add more type hints to lineardisassembly.pyJosh Ferrell
2025-11-19Fix DisassemblyTextLine reprJosh Ferrell
2025-11-14add flowgraph supportJordan Wiens
2025-11-14add example render layer to inject newlinesJordan Wiens
2025-11-10fix coreversion info and add docsJordan Wiens
2025-11-10improved indentation and update formatting detectionJordan Wiens
2025-11-10fix missing newlines breaking listsJordan Wiens
2025-11-10fix small formatting in memorymap api docsJordan Wiens
2025-11-04Add auto downloading of project file dependencies, clean up download APIsJosh Ferrell
2025-11-04Add project file dependenciesJosh Ferrell
2025-11-04Update FilterEdit and FilterTarget to preserve existing selectionsMark Rowe
The down and enter keys now preserve an existing selection in the associated list or table views, rather than unconditionally selecting or activating the first item.
2025-11-04[Python] Add virtual `bit_offset` member to the `StructureMember` and ↵Mason Reed
clarify `bit_position` This is a helper because it is likely one dealing with bitfields knows the bit offset, rather than the bit position, so this can be used instead.