The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

i want to download a complete bit repository using a python script, how do i do it?

Deepak Talapaneni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 6, 2023

i tried using this code, but it says ModuleNotFoundError: No module named 'bitbucket', allthough i've installed the bit bucket api 

from bitbucket.bitbucket importBitbucket
>>>USERNAME = 'CCC'
>>>PASSWORD = 'BBB'
>>>bb = Bitbucket(USERNAME, PASSWORD, repo_name_or_slug="Py-Bitbucket-api")
>>>success, result = bb.repository.get()
>>>print (bb.repository.get())
True{......}
>>>success, archive_path = bb.repository.archive()
>>> print (success, archive_path)
True C:\....\Temp\tmp_zxpa_14

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events