Simple library for interacting with the Bitbucket Cloud API
Project description
bitbucketpy
WIP Python package for interacting with Bitbucket Cloud's API.
Usage
You'll need three items:
- EMAIL: The email address used to interact with Bitbucket.
- PASSWORD: An API key used to authenticate with Bitbucket.
- API_ENDPOINT: ex https://api.bitbucket.org/2.0
Interact with the repository API
import bitbucket
api = bitbucket.API(WORKSPACE, EMAIL, PASSWORD)
repository = api.get_repository(REPOSITORY_NAME)
Get branches in repository
branches = repository.branches()
for branch in branches:
print(branch.name)
The latest commit on a branch
commit = next(branch.commits)
Find a tag in the repository
tag = repository.tag('1.0.0')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bitbucketpy-0.1.4.tar.gz
(19.1 kB
view hashes)
Built Distribution
Close
Hashes for bitbucketpy-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6ff319c14f752a6b4e7365d8e9d606005487a8a1c51580eb54f2e6bb50f4a64 |
|
MD5 | 4334913f0d5f549903f21dbf9695d858 |
|
BLAKE2b-256 | 18320c292290288580de729c82b0a945b06d5aea1c0866aee815abcfa2948eb2 |