Goodconf is a yaml based configuration library, supporting dot access, deep updates and more.
Loading from a string:
s = 'hello: world'
c = Config.from_string(s)
assert c.hello == 'world'
assert c == {'hello': 'world'}
// Compile with: | |
// g++ -c -fpic -o hack.o hack.cpp && g++ -shared -o libhack.so hack.o | |
// Then load with the Python | |
// import ctypes; ctypes.CDLL('libhack.so') | |
#include <stdio.h> | |
#include <dlfcn.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include <sys/mman.h> |