root_upload_part

Upload a part of a multipart item upload to a local datastore

Functions

async pydelfini.delfini_core.api.general.root_upload_part.asyncio(datastore, upload_id, part_number, *, client, body)[source]

Upload a part of a multipart item upload to a local datastore

For local (filesystem-based) datastores, this will be the endpoint that you can use to upload individual parts of a multipart item upload. Before sending parts to this endpoint, you will need to call initiate_multipart_upload for the desired collection and item ID; it will provide URLs to this endpoint.

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Union[Any]

Return type:

Any

async pydelfini.delfini_core.api.general.root_upload_part.asyncio_detailed(datastore, upload_id, part_number, *, client, body)[source]

Upload a part of a multipart item upload to a local datastore

For local (filesystem-based) datastores, this will be the endpoint that you can use to upload individual parts of a multipart item upload. Before sending parts to this endpoint, you will need to call initiate_multipart_upload for the desired collection and item ID; it will provide URLs to this endpoint.

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[Union[Any, ServerError]]

Return type:

Response[Any | ServerError]

pydelfini.delfini_core.api.general.root_upload_part.sync(datastore, upload_id, part_number, *, client, body)[source]

Upload a part of a multipart item upload to a local datastore

For local (filesystem-based) datastores, this will be the endpoint that you can use to upload individual parts of a multipart item upload. Before sending parts to this endpoint, you will need to call initiate_multipart_upload for the desired collection and item ID; it will provide URLs to this endpoint.

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Union[Any]

Return type:

Any

pydelfini.delfini_core.api.general.root_upload_part.sync_detailed(datastore, upload_id, part_number, *, client, body)[source]

Upload a part of a multipart item upload to a local datastore

For local (filesystem-based) datastores, this will be the endpoint that you can use to upload individual parts of a multipart item upload. Before sending parts to this endpoint, you will need to call initiate_multipart_upload for the desired collection and item ID; it will provide URLs to this endpoint.

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[Union[Any, ServerError]]

Return type:

Response[Any | ServerError]