

datapackage = folder with dataio.yaml file, with extra fields:

name:
path: (from root)
type: or archetype: None 
other_datapackages: {name, version, path} (path from root)
resources:

  path:
  foreignKeys: 
    fields:
    resource:
    datapackage:

###########################3

dataio.read(path_to_dataio.yaml):
  create temporary datapackage.yaml in root
  validate
  extract 
  
-> dp.__metadata__: dataio_yaml
-> dp.__report__: validate report
     .<table>: dataframe

dp.write(overwrite=False, erdiagram=True, iterate=True)

dp.validate()
dp.erdiagram(path)

dp = dataio.create(metadata: dataio_dict, data: dict with dataframes)    

dp.table.append(...) 


################################

read steps:

input is path to file

db.
