Metadata-Version: 2.2
Name: ueconfigparser
Version: 1.0.8
Summary: ConfigParser (in text) created for read/edit/write Unreal Engine Config files
Home-page: https://github.com/xwoojin/UEConfigParser
Author: WooJin Kim
Author-email: woojinian@gmail.com
License: MIT
Keywords: ueconfig,xwoojin,config,parser,config parser,configparser,unreal engine,unreal config,unreal parser
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=2.7, <4
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: requires-python
Dynamic: summary

# UEConfigParser

An textfile reader that acts as INI parser that reads/modifies/writes ini files regardless of duplicate keys and special characters, comments.
This parser is specially designed for Unreal Engine configuration files.
Compatible with Python 2.7 and 3.x.

## Installation

pip install UEConfigParser

## Usage
```
from UEConfigParser import UnrealConfigParser

parser = UnrealConfigParser()  
parser.read('example.ini')  
parser.display()  

parser.modify('/Script/HardwareTargeting.HardwareTargetingSettings', 'AppliedTargetedHardwareClass', 'Mobile', Spacing=False)    
# Spacing between key/value = (default is False)

parser.add_key('DevOptions.Shaders', 'NeedsShaderStableKeys', 'True')  
parser.remove_key('ConsoleVariables', 'Slate.EnableGlobalInvalidation')  
parser.comment_key('DevOptions.Shaders', 'NeedsShaderStableKeys')  
parser.uncomment_key('ConsoleVariables', 'Slate.EnableGlobalInvalidation')  

newline_option = '\n'  # option: None, '\n' (LF), '\r\n' (CRLF),  Default is None
parser.write('example.ini', newline_option=newline_option)  

parser.display()  
```
