Forums

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

Bitbucket Authentication using Python

David Vu
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!
July 15, 2019

I am new to Bitbucket and need to develop python scripts to pull out the codes in our Bitbucket repositories.

can anyone guide me to the right sources which have instructions how to authenticate to connect to our Bitbucket Repositories

our Bitbucket version: 5.9

Thanks for you helps

David

 

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 17, 2019

Hey David, welcome to the Community!

You'll want to have a look at our REST API documentation here: https://developer.atlassian.com/server/bitbucket/how-tos/command-line-rest/

If you simply want to pull the source code from your repos via Python, you might be most interested in the archive API endpoint. This provides a zip or tarball of the repository. Documentation for that endpoint specifically is here:
https://docs.atlassian.com/bitbucket-server/rest/6.4.0/bitbucket-rest.html#idp178

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events