sio3pack ======== .. py:module:: sio3pack Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/sio3pack/django/index /autoapi/sio3pack/exceptions/index /autoapi/sio3pack/files/index /autoapi/sio3pack/lua/index /autoapi/sio3pack/packages/index /autoapi/sio3pack/test/index /autoapi/sio3pack/utils/index /autoapi/sio3pack/visualizer/index /autoapi/sio3pack/workflow/index Package Contents ---------------- .. py:function:: from_file(file, configuration = None) Initialize a package object from a file (archive or directory). :param file: The file path or File object. :param configuration: Configration of the package. :return: The package object. .. py:function:: from_db(problem_id, configuration = None) Initialize a package object from the database. If sio3pack isn't installed with Django support, it should raise an ImproperlyConfigured exception. If there is no package with the given problem_id, it should raise an UnknownPackageType exception. :param problem_id: The problem id. :param configuration: Configuration of the package. :return: The package object.