Currently, a collection or entry can only be created from a package, which is created with collect_datapackages
from unitpackage.local import collect_datapackages
from unitpackage.collection import Collection()
db = Collection(data_packages=collect_datapackages('./files_folder'))
#or
from unitpackage.entry import Entry
entry = Entry(package=collect_datapackages('./files_folder')[0])
I think it would be more convenient if Collection would accept Packages, filenamess and a folder and Entry accepts a Package or a filename.
One would extract the package generation from collect_datapackages and add it to a method create_package within `unitpackage.local
Currently, a collection or entry can only be created from a
package
, which is created withcollect_datapackages
I think it would be more convenient if
Collection
would acceptPackages
,filenamess
and afolder
andEntry
accepts aPackage
or afilename
.One would extract the package generation from
collect_datapackages
and add it to a methodcreate_package
within `unitpackage.local