Metadata-Version: 2.4
Name: dnpy
Version: 0.1.0
Summary: A library for reading and writing .NET modules
Author-email: "Utku Corbaci (rhotav)" <utku@rhotav.com>
Maintainer-email: "Utku Corbaci (rhotav)" <utku@rhotav.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/rhotav/dnpy
Project-URL: Repository, https://github.com/rhotav/dnpy
Project-URL: Documentation, https://github.com/rhotav/dnpy#readme
Project-URL: Bug Tracker, https://github.com/rhotav/dnpy/issues
Keywords: dotnet,.net,parser,disassembly
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pefile>=2024.8.26
Dynamic: license-file

# dnpy

A Python library for reading ~~and writing (TODO)~~ .NET assemblies.

dnpy is released under the MIT license.

## Installation

```bash
pip install dnpy
```

## Basic Usage

```python
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.

