Sample code to use boto (not boto3) with Spaces

I’m hoping for sample code using boto (not boto3) for writing an object to the Spaces system and then reading it back.

This StackOverflow question 1 suggested one approach to get started, but the following code produces the result None:

    import boto
    s3 = boto.s3.S3RegionInfo(name='nyc3', 
    print s3

I haven’t been able to find anything else potentially relevant.

(Why do I want to use boto instead of boto3? Answer: I have boto3 code working perfectly in my test system, but it fails in what seems to be unpredictable ways when operating at scale, and the fail seems to be inside boto3. If I can get the code working in boto, it is not only a workaround, but would suggest there is a boto3 problem.)


Am moving on from this question. Turns out that the perhaps-bug in boto3 was actually due to instability in the Spaces system.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!