prefect.packaging.base
¶
PackageManifest
¶
Bases: BaseModel
, ABC
Describes a package.
Source code in prefect/packaging/base.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
unpackage
abstractmethod
async
¶
Retrieve a flow from the package.
Source code in prefect/packaging/base.py
44 45 46 47 48 |
|
Packager
¶
Bases: BaseModel
, ABC
Creates a package for a flow.
A package contains the flow and is typically stored outside of Prefect. To facilitate interaction with the package, a manifest is returned that describes how to access and use the package.
Source code in prefect/packaging/base.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
package
abstractmethod
async
¶
Package a flow and return a manifest describing the created package.
Source code in prefect/packaging/base.py
72 73 74 75 76 |
|
Serializer
¶
Bases: BaseModel
, Generic[D]
, ABC
A serializer that can encode objects of type 'D' into bytes.
Source code in prefect/packaging/base.py
19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
dumps
¶
Encode the object into a blob of bytes.
Source code in prefect/packaging/base.py
27 28 |
|
loads
¶
Decode the blob of bytes into an object.
Source code in prefect/packaging/base.py
30 31 |
|