A library for reading and writing .NET modules
Project description
dnpy
A Python library for reading and writing (TODO) .NET assemblies.
dnpy is released under the MIT license.
Installation
pip install dnpy
Basic Usage
from dnpy import Module
# Load a .NET assembly
module = Module.from_path("MyAssembly.exe")
# Iterate through types
for module_type in module.types:
print(f"Type: {module_type.full_name}")
# Check methods
for method in module_type.methods:
print(f" Method: {method.name}")
# Iterate through instructions
for instruction in method.instructions:
print(instruction)
For more examples, you can look in the examples folder.
Documentation
Documentation is being prepared. When ready, it will be available in the docs folder along with more Guides and API References.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dnpy-0.1.0.tar.gz.
File metadata
- Download URL: dnpy-0.1.0.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
447f02d357972fc1a70691f48e37e98cf84e5266d81ec37a2e5889c2b6102143
|
|
| MD5 |
db3d33dc376b839f085a5143067c7452
|
|
| BLAKE2b-256 |
28f597e6d805da0de671a344d8f8d105a822c14f1e407537ac24c0080d52c800
|
File details
Details for the file dnpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dnpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 47.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8d693260693890d63a0cf1f4be009d3e4ec1cd8bdde63d5211b331117f6e62f
|
|
| MD5 |
2b14d38f756060553fd2568dd424b040
|
|
| BLAKE2b-256 |
2c9ca4bbced8005e678701091629dc50f5d3446e7c41abb801a9d89e23776e3f
|