Return |_PhysPkgWriter| subtype instance appropriage for `pkg_file`. Currently the only subtype is `_ZipPkgWriter`, but a `_DirPkgWriter` could be implemented or even a `_StreamPkgWriter`.
(cls, pkg_file: str | IO[bytes])
| 200 | |
| 201 | @classmethod |
| 202 | def factory(cls, pkg_file: str | IO[bytes]) -> _ZipPkgWriter: |
| 203 | """Return |_PhysPkgWriter| subtype instance appropriage for `pkg_file`. |
| 204 | |
| 205 | Currently the only subtype is `_ZipPkgWriter`, but a `_DirPkgWriter` could be implemented |
| 206 | or even a `_StreamPkgWriter`. |
| 207 | """ |
| 208 | return _ZipPkgWriter(pkg_file) |
| 209 | |
| 210 | def write(self, pack_uri: PackURI, blob: bytes) -> None: |
| 211 | """Write `blob` to package with membername corresponding to `pack_uri`.""" |
nothing calls this directly
no test coverage detected