Skip to content

Add class to package object #184

Description

@peterdesmet

To better recognize a package object, e.g. for pretty print (#154), it would be good to extend the list class with a custom class datapackage.

  • Add class datapackage
  • Add the class with create_package()
  • Allow create_package() to start from an existing list and use it in read_package()
  • Add tests for create_package()
    • Including for existing lists
  • Test for class in check_package(), warn if not present
    • Maybe provide more specific error message on what is invalid
  • Add test for check_package()
  • Make check_package() public, so other packages can use it

Metadata

Metadata

Assignees

Labels

function:checkFunctions check_package(), check_schema(), check_path(), check_data()function:createFunctions create_package(), create_schema()function:printFunction print.datapackage()function:read_packageFunction read_package()

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions