Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 735 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 735 Bytes

JEC-py Python

Jabacat's Easy Config

JEC-py | JEC-rs | JEC-go | JEC-c | JEC-c++ | JEC-zig | JEC-ts

API

ConfigFile
  - from_home
  - exists
  - remove
  - create
  
ConfigDir
  - from_home
  - exists
  - remove
  - create

Usage

conf_1 = ConfigFile("./config.yml")
conf_2 = ConfigFile.from_home("./config.yml")

dir_1 = ConfigDir("./config/")
dir_2 = ConfigDir.from_home("./config/")

if not dir_1.exists():
	dir_1.create()

dir_1.remove()