{"library":"perky","title":"Perky Configuration Format","description":"Perky is a new, simple, and Pythonic text file format designed for configuration files, serving as an alternative to INI, TOML, and JSON. It focuses on a minimal, human-friendly syntax and explicit data type handling, supporting strings, mappings (dicts), and sequences (lists) natively, leaving other type transformations to the user. The library is lightweight, fast, written in 100% pure Python, and currently maintained with version 0.9.3, supporting Python 3.6+.","language":"python","status":"active","last_verified":"Thu Apr 16","install":{"commands":["pip install perky"],"cli":null},"imports":["from perky import load","from perky import loads"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import perky\n\nconfig_string = \"\"\"\nname = ExampleApp\nversion = 1.0\nsettings = {\n  debug = True\n  log_level = INFO\n  features = [\n    feature_a\n    feature_b\n  ]\n}\n\"\"\"\n\nconfig = perky.loads(config_string)\n\nprint(config['name'])\nprint(config['settings']['debug'])\nprint(config['settings']['features'][0])\n\n# Example of loading from a file (if 'config.perky' existed)\n# with open('config.perky', 'w') as f:\n#     f.write(config_string)\n# file_config = perky.load('config.perky')\n# print(file_config)\n","lang":"python","description":"This quickstart demonstrates how to parse a Perky formatted string using `perky.loads`. The output will show how to access the parsed dictionary's values. Perky files support strings, dictionaries (mappings), and lists (sequences). Perky does not automatically convert values like 'True' to a boolean or '1.0' to a float; these remain as strings unless explicitly transformed by the user.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}