# loadcf **Repository Path**: zmcl/loadcf ## Basic Information - **Project Name**: loadcf - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-26 - **Last Updated**: 2021-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # loadcf It is a python config file loader. It convert config item to python module item, then you can import and use it direct. Support Python2.7, Python3.5 # Usage """ {"debug": true, "items": [1, 2, 3, 4], "mysql": {"slave": {"db": "postgresql", "user": "root"}, "name": "mysql", "db": "blog", "port": 3306}} """ import loadcf loadcf.load("config file path") from loadcf import * print(debug) print(mysql.slave) print(mysql.slave.user) # Install pip install git+https://github.com/singpenguin/loadcf.git@master # License MIT