Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events