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

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events