Skip to content

pulp_glue.core.context

pulp_glue.core.context

PulpUploadContext(pulp_ctx: PulpContext, pulp_href: t.Optional[str] = None, entity: t.Optional[EntityDefinition] = None)

Bases: PulpEntityContext

upload_file(file: t.IO[bytes], chunk_size: int = 1000000) -> t.Any

Upload a file and return the uncommitted upload_href.