You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

vas1992's avatar
vas1992
Helpful | Level 5
3 years ago

Python. Get full storage information

Hello. How can I display the full size of my storage using python? I was able to get only the occupied volume:   print(dbx.users_get_space_usage().used)   The only thing I could do was get ...
  • Greg-DB's avatar
    Greg-DB
    3 years ago

    vas1992 Здравко is correct; here's what a simple usage of this may look like:

    allocation = dbx.users_get_space_usage().allocation
    if allocation.is_individual():
        print("Individual allocation:")
        print(allocation.get_individual().allocated)
    elif allocation.is_team():
        print("Team allocation:")
        print(allocation.get_team().allocated)
    

     

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API

Make connections with other developers

797 PostsLatest Activity: 2 days ago
199 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!