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: 

App Password/Python

ariella
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!
February 7, 2022

I am using Python to log into my Bitbucket Repository, using an app password.

I have reviewed the documentation for the Python Bitbucket module (https://atlassian-python-api.readthedocs.io/bitbucket.html), and I'm not sure what the project_list and project_key, and how to find them.

When I try to run 'bitbucket.project(key)', I get the error 'NameError: name 'key' is not defined'

What is the project(key) in a bitbucket repo?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Pramodh M
Community Champion
February 7, 2022

Hi @ariella 

Welcome to Bitbucket!!

Please verify this is the Project key you are passing (Example shown here)

Key.png

Thanks,
Pramodh

ariella
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!
February 7, 2022

Hi @Pramodh M ,

Thanks for the comment!

Ok, I see the Project Key in my Bitbucket:
Screenshot 2022-02-07 152329.png

So what is the proper code to get into a project folder?

x = Bitbucket.repo_list('AI')
print(x)


Or something else?

TAGS
AUG Leaders

Atlassian Community Events