[Openstack] Python API for Dynamic Large Objects in Swift

Mark Kirkwood mark.kirkwood at catalyst.net.nz
Wed Jul 29 05:30:19 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29/07/15 17:01, John Dickinson wrote:
> You can also use swiftclient.service module. It is the wrapper on
> top of the low-level swiftclient.client that is actually what the
> CLI tool uses for some of its higher-order functions (like
> splitting larger local files and making manifest objects).
> 
> You'd have something like:
> 
> results = swiftclient.service.upload('target_container',
> ['path/to/local/file',], options={'segment_size': 1048576000})
> 
> 

That is tidier than having to seek around in the file dicing it
yourself :-)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlW4ZOsACgkQp/74+1I8UiZjpgCfdpILGu2POP01j/zctxPfUQAK
OY4An1ClQRYcddHRczUhVkTM1KK9MSVu
=k6mI
-----END PGP SIGNATURE-----




More information about the Openstack mailing list