├── .gitattributes ├── .github └── workflows │ ├── ci.yml │ └── lint-and-type.yml ├── .gitignore ├── LICENSE ├── README.md ├── completions ├── install.fish ├── remarshal.bash └── remarshal.fish ├── example.cbor ├── example.json ├── example.msgpack ├── example.py ├── example.toml ├── example.yaml ├── poetry.lock ├── pyproject.toml ├── src └── remarshal │ ├── __init__.py │ ├── __main__.py │ ├── main.py │ └── py.typed └── tests ├── __init__.py ├── array.json ├── array.toml ├── bin.msgpack ├── bin.yml ├── bool-null-key.json ├── bool-null-key.py ├── bool-null-key.toml ├── bool-null-key.yaml ├── colon.json ├── colon.yaml ├── date-yaml-1.1.yaml ├── date.cbor ├── date.json ├── date.toml ├── date.yaml ├── datetime-local.json ├── datetime-local.toml ├── datetime-local.yaml ├── datetime-tz.cbor ├── datetime-tz.json ├── datetime-tz.msgpack ├── datetime-tz.toml ├── datetime-tz.yaml ├── empty-mapping.toml ├── empty-mapping.yaml ├── garbage ├── lol.yml ├── long-line-default.yaml ├── long-line-double-quote.yaml ├── long-line-gt.yaml ├── long-line-pipe.yaml ├── long-line-single-quote.yaml ├── long-line.json ├── multiline-3.toml ├── multiline-5.toml ├── multiline.json ├── multiline.toml ├── newline-default.yaml ├── newline-double-quote.yaml ├── newline-empty.yaml ├── newline-gt.yaml ├── newline-pipe.yaml ├── newline-single-quote.yaml ├── newline.json ├── norway-yaml-1.1.json ├── norway-yaml-1.1.yaml ├── norway-yaml-1.2.yaml ├── norway.json ├── norway.yaml ├── null.json ├── null.yaml ├── numeric-key-null-value.toml ├── numeric-key-null-value.yaml ├── order.json ├── order.toml ├── sorted.json ├── sorted.toml ├── test_remarshal.py ├── time.json ├── time.toml ├── timestamp-key.toml ├── timestamp-key.yaml ├── underscore-number.yaml ├── yaml-1.1-features-as-1.2.json ├── yaml-1.1-features-to-1.2.yaml ├── yaml-1.1-features.json └── yaml-1.1-features.yaml /.gitattributes: -------------------------------------------------------------------------------- 1 | /poetry.lock -diff 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/lint-and-type.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/.github/workflows/lint-and-type.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/README.md -------------------------------------------------------------------------------- /completions/install.fish: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/completions/install.fish -------------------------------------------------------------------------------- /completions/remarshal.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/completions/remarshal.bash -------------------------------------------------------------------------------- /completions/remarshal.fish: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/completions/remarshal.fish -------------------------------------------------------------------------------- /example.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/example.cbor -------------------------------------------------------------------------------- /example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/example.json -------------------------------------------------------------------------------- /example.msgpack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/example.msgpack -------------------------------------------------------------------------------- /example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/example.py -------------------------------------------------------------------------------- /example.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/example.toml -------------------------------------------------------------------------------- /example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/example.yaml -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/remarshal/__init__.py: -------------------------------------------------------------------------------- 1 | from remarshal.main import * # noqa: F403 2 | -------------------------------------------------------------------------------- /src/remarshal/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/src/remarshal/__main__.py -------------------------------------------------------------------------------- /src/remarshal/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/src/remarshal/main.py -------------------------------------------------------------------------------- /src/remarshal/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/array.json: -------------------------------------------------------------------------------- 1 | [{"a":"b"},{"c":[1,2,3]}] 2 | -------------------------------------------------------------------------------- /tests/array.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/array.toml -------------------------------------------------------------------------------- /tests/bin.msgpack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/bin.msgpack -------------------------------------------------------------------------------- /tests/bin.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/bin.yml -------------------------------------------------------------------------------- /tests/bool-null-key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/bool-null-key.json -------------------------------------------------------------------------------- /tests/bool-null-key.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/bool-null-key.py -------------------------------------------------------------------------------- /tests/bool-null-key.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/bool-null-key.toml -------------------------------------------------------------------------------- /tests/bool-null-key.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/bool-null-key.yaml -------------------------------------------------------------------------------- /tests/colon.json: -------------------------------------------------------------------------------- 1 | {"data":[{"src":{"url":"http://example.com"}}]} 2 | -------------------------------------------------------------------------------- /tests/colon.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - src: {url: http://example.com} -------------------------------------------------------------------------------- /tests/date-yaml-1.1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/date-yaml-1.1.yaml -------------------------------------------------------------------------------- /tests/date.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/date.cbor -------------------------------------------------------------------------------- /tests/date.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/date.json -------------------------------------------------------------------------------- /tests/date.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/date.toml -------------------------------------------------------------------------------- /tests/date.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/date.yaml -------------------------------------------------------------------------------- /tests/datetime-local.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/datetime-local.json -------------------------------------------------------------------------------- /tests/datetime-local.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/datetime-local.toml -------------------------------------------------------------------------------- /tests/datetime-local.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/datetime-local.yaml -------------------------------------------------------------------------------- /tests/datetime-tz.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/datetime-tz.cbor -------------------------------------------------------------------------------- /tests/datetime-tz.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/datetime-tz.json -------------------------------------------------------------------------------- /tests/datetime-tz.msgpack: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/datetime-tz.msgpack -------------------------------------------------------------------------------- /tests/datetime-tz.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/datetime-tz.toml -------------------------------------------------------------------------------- /tests/datetime-tz.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/datetime-tz.yaml -------------------------------------------------------------------------------- /tests/empty-mapping.toml: -------------------------------------------------------------------------------- 1 | [foo] 2 | bar = "null" 3 | -------------------------------------------------------------------------------- /tests/empty-mapping.yaml: -------------------------------------------------------------------------------- 1 | foo: 2 | bar: 3 | -------------------------------------------------------------------------------- /tests/garbage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/garbage -------------------------------------------------------------------------------- /tests/lol.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/lol.yml -------------------------------------------------------------------------------- /tests/long-line-default.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/long-line-default.yaml -------------------------------------------------------------------------------- /tests/long-line-double-quote.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/long-line-double-quote.yaml -------------------------------------------------------------------------------- /tests/long-line-gt.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/long-line-gt.yaml -------------------------------------------------------------------------------- /tests/long-line-pipe.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/long-line-pipe.yaml -------------------------------------------------------------------------------- /tests/long-line-single-quote.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/long-line-single-quote.yaml -------------------------------------------------------------------------------- /tests/long-line.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/long-line.json -------------------------------------------------------------------------------- /tests/multiline-3.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/multiline-3.toml -------------------------------------------------------------------------------- /tests/multiline-5.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/multiline-5.toml -------------------------------------------------------------------------------- /tests/multiline.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/multiline.json -------------------------------------------------------------------------------- /tests/multiline.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/multiline.toml -------------------------------------------------------------------------------- /tests/newline-default.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/newline-default.yaml -------------------------------------------------------------------------------- /tests/newline-double-quote.yaml: -------------------------------------------------------------------------------- 1 | 'single': 'this' 2 | 'multiline': "is\nan\nexample" 3 | -------------------------------------------------------------------------------- /tests/newline-empty.yaml: -------------------------------------------------------------------------------- 1 | 'single': 'this' 2 | 'multiline': "is\nan\nexample" 3 | -------------------------------------------------------------------------------- /tests/newline-gt.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/newline-gt.yaml -------------------------------------------------------------------------------- /tests/newline-pipe.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/newline-pipe.yaml -------------------------------------------------------------------------------- /tests/newline-single-quote.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/newline-single-quote.yaml -------------------------------------------------------------------------------- /tests/newline.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/newline.json -------------------------------------------------------------------------------- /tests/norway-yaml-1.1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/norway-yaml-1.1.json -------------------------------------------------------------------------------- /tests/norway-yaml-1.1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/norway-yaml-1.1.yaml -------------------------------------------------------------------------------- /tests/norway-yaml-1.2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/norway-yaml-1.2.yaml -------------------------------------------------------------------------------- /tests/norway.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/norway.json -------------------------------------------------------------------------------- /tests/norway.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/norway.yaml -------------------------------------------------------------------------------- /tests/null.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": null 3 | } 4 | -------------------------------------------------------------------------------- /tests/null.yaml: -------------------------------------------------------------------------------- 1 | foo: null 2 | -------------------------------------------------------------------------------- /tests/numeric-key-null-value.toml: -------------------------------------------------------------------------------- 1 | 0 = "null" 2 | -------------------------------------------------------------------------------- /tests/numeric-key-null-value.yaml: -------------------------------------------------------------------------------- 1 | 0: null 2 | -------------------------------------------------------------------------------- /tests/order.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/order.json -------------------------------------------------------------------------------- /tests/order.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/order.toml -------------------------------------------------------------------------------- /tests/sorted.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/sorted.json -------------------------------------------------------------------------------- /tests/sorted.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/sorted.toml -------------------------------------------------------------------------------- /tests/test_remarshal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/test_remarshal.py -------------------------------------------------------------------------------- /tests/time.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "12:34:56" 3 | } 4 | -------------------------------------------------------------------------------- /tests/time.toml: -------------------------------------------------------------------------------- 1 | foo = 12:34:56 2 | -------------------------------------------------------------------------------- /tests/timestamp-key.toml: -------------------------------------------------------------------------------- 1 | 2023-08-09 = true 2 | -------------------------------------------------------------------------------- /tests/timestamp-key.yaml: -------------------------------------------------------------------------------- 1 | 2023-08-09: true 2 | -------------------------------------------------------------------------------- /tests/underscore-number.yaml: -------------------------------------------------------------------------------- 1 | foo: 1_234_567_890 2 | -------------------------------------------------------------------------------- /tests/yaml-1.1-features-as-1.2.json: -------------------------------------------------------------------------------- 1 | {"sexagesimal":"1:23:45","octal":10} 2 | -------------------------------------------------------------------------------- /tests/yaml-1.1-features-to-1.2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/yaml-1.1-features-to-1.2.yaml -------------------------------------------------------------------------------- /tests/yaml-1.1-features.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/yaml-1.1-features.json -------------------------------------------------------------------------------- /tests/yaml-1.1-features.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/remarshal-project/remarshal/HEAD/tests/yaml-1.1-features.yaml --------------------------------------------------------------------------------