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.6.tar.gz (4.5 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.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ueconfigparser-1.0.6.tar.gz
  • Upload date:
  • Size: 4.5 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.6.tar.gz
Algorithm Hash digest
SHA256 3a73cb4d8abf9b60a29cbc33e4ad5c7ddcf5a67f0491564825aa8272ec9494d7
MD5 6b99b62a28b80e6b1fd1d240ac357aa1
BLAKE2b-256 9947d7ce154bd1e81d7f2986f3123acc44e2f4b95e7b4d7edb004009e5257160

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ueconfigparser-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f82b329ee4060e7f11dbf8697a3e320c2d2b8e10039e2004b1da2df48f9a46d4
MD5 7623300070f7d5f44c98baa091c737ca
BLAKE2b-256 37e35d01ef15ced6cf9ce4c6e1ff7de8bedd5bdaeb76fe60a20de790b5717cad

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