sio3pack¶
Submodules¶
Package Contents¶
- sio3pack.from_file(file, configuration=None)[source]¶
Initialize a package object from a file (archive or directory).
- Parameters:
file (str | files.LocalFile) – The file path or File object.
configuration (packages.package.configuration.SIO3PackConfig) – Configration of the package.
- Returns:
The package object.
- Return type:
- sio3pack.from_db(problem_id, configuration=None)[source]¶
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.
- Parameters:
problem_id (int) – The problem id.
configuration (packages.package.configuration.SIO3PackConfig) – Configuration of the package.
- Returns:
The package object.
- Return type: