You can install oemoflex in your environment e.g. using pip:
pip install -e <path to oemoflex>
Have a look at the examples <examples_label>
to see how to create an EnergyDataPackage by specifying the components, busses, regions and links, how to parametrize it and how to pass it to oemof.solph to solve the optimization problem.