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

atlassian-python-api not working

Ali Alyas
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!
August 15, 2023

Trying to login to bitbucket cloud using the below script and it doesn't work

from atlassian import Bitbucket

bitbucket = Bitbucket(
        url='https://api.bitbucket.org/',
        username='admin',
        password='admin')

data = bitbucket.project_list()
print(data)

Is there updated API for bitbucket cloud that i can use or what python api would support connectivity to bitbucket cloud?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2023

Hi Ali and welcome to the community!

atlassian-python-api is a library that uses our API, but it is not developed or maintained by Atlassian.

That being said, I don't see the script you posted in the library's documentation for Bitbucket Cloud, I think this may be applicable to Bitbucket Server. You can check the script on the following page, below the line "And to Bitbucket Cloud:":

You could also use our API endpoints instead of the library. The documentation of our API is here:

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events