Skip to main content

ConfigParser (in text) created for read/edit/write Unreal Engine Config files

Project description

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()  

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ueconfigparser-1.0.7.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ueconfigparser-1.0.7-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file ueconfigparser-1.0.7.tar.gz.

File metadata

  • Download URL: ueconfigparser-1.0.7.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.13

File hashes

Hashes for ueconfigparser-1.0.7.tar.gz
Algorithm Hash digest
SHA256 9604d6aa73830d731e0044670c39905d098cead767e96535a5af2d6ef9493f4e
MD5 267dc5670f26008bee341fc6705695d6
BLAKE2b-256 3fe11c2d0183253378a616e4f627001ce50b6442bf498ac82a645a08973917ab

See more details on using hashes here.

File details

Details for the file ueconfigparser-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: ueconfigparser-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.13

File hashes

Hashes for ueconfigparser-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ff85d993e78c140a52d7e15ecbd4f0441bf3cad9e754943df597d39b7c92f50e
MD5 ba73c89bad7907ef466c75099d214227
BLAKE2b-256 0edfac0cba802c79ee12df7f1f6a9283191166233597ea276164b1a0a92c1a58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page