pyhocon icon indicating copy to clipboard operation
pyhocon copied to clipboard

HOCON parser for Python

Results 118 pyhocon issues
Sort by recently updated
recently updated
newest added

Trying to fix https://github.com/chimpler/pyhocon/issues/271 and similiar issues once again. Added some tests and make them pass. Did NOT check 4 inlude tests since they're not working on Win.

say I have the following configuration ``` { source = [ { type = mssql port = 1344 tables { une_table360 { id = "UniqueID" view = "someview" } une_table...

I'm creating a config object within a python script using the [from_dict](https://github.com/chimpler/pyhocon#from_dict) method. Is it possible to then save (dump) that config to a .conf file? I see there is...

The substitution resolution is not performed in the order of the HOCON variable assignment. Version: 0.3.58 Example: `pyhocon -i ` Input file: ```ini common = common original = ${common}/original result...

Substitution inside include is not working. I confirmed it by running the same conf on pyhocon and hocon-parser (npm). e.g. ``` include required(file(${CONF_HOME}/base.conf)) ``` throws this error ``` pyparsing.ParseSyntaxException: Expected...

Extracted the period related code to a separate module to allow using outside context of a ConfigTree.

test.conf: ```conf foo { baz = ["a"] baz += "b" } ``` code: ```py from pyhocon import ConfigFactory spec = ConfigFactory.parse_file('./test.conf')) print(spec) ``` output: ``` ConfigTree([('foo', ConfigTree([('baz', ' b')]))]) ```...

Unless I'm mistaken, there is no way that `value` can be an instance of ConfigList or ConfigTree. `ConfigList` is a subclass of `list`, `ConfigTree` is a subclass of `OrderedDict`. There...

If I'd like to use the HOCON conf as "primitive python types", is my only solution to do something like e.g.: ```py def HOCONtoPythonObj(obj): return json.loads(HOCONConverter.to_json(obj)) ``` myself?

I'd like to parse-save multiline configuration, but keep it in a pretty-ascii text too. For multiline strings, the equivalent of `config : |` in yaml would be a nice addition...