graviti.portex.builder
#
Portex type builder related classes.
Module Contents#
Classes#
The local git repo of the external Portex package. |
|
The builder of the external Portex package. |
|
The builder of the external Portex template type. |
|
The imports of the Portex template type. |
Functions#
|
Build an external package. |
Attributes#
- class graviti.portex.builder.PackageRepo(url, revision)[source]#
The local git repo of the external Portex package.
- Parameters
url (str) – The git repo url of the external package.
revision (str) – The git repo revision (tag/commit) of the external package.
- class graviti.portex.builder.PackageBuilder(url, revision)[source]#
The builder of the external Portex package.
- Parameters
url (str) – The git repo url of the external package.
revision (str) – The git repo revision (tag/commit) of the external package.
- class graviti.portex.builder.TypeBuilder(name, path, builder)[source]#
The builder of the external Portex template type.
- Parameters
name (str) – The name of the Portex template type.
path (pathlib.Path) – The source file path of the Portex template type.
package – The package the Portex template type belongs to.
builder (PackageBuilder) –
- class graviti.portex.builder.BuilderImports[source]#
Bases:
graviti.portex.package.Imports
The imports of the Portex template type.
- Parameters
package – The package the portex belongs to.
- classmethod from_pyobj(cls, content, builder)[source]#
Create
Imports
instance from python list.- Parameters
content (List[Dict[str, Any]]) – A python list representing imported types.
builder (PackageBuilder) – The package builder.
cls (Type[_I]) –
- Returns
A
Imports
instance created from the input python list.- Return type
_I