Bitbucket Api Library
Project description
fifbucket
fifbucket is a python library for call Bitbucket api:
Bitbucket Api Documentation: https://developer.atlassian.com/bitbucket/api/2/reference/resource/
Configuration
Obligatory arguments
Argument | Description |
---|---|
owner | Bitbucket repository owner |
username | Bitbucket username |
password | Bitbucket user password or app password |
Basic usage
How install
pip install fifbucket
How load the class:
# -*- coding: utf-8 -*-
OWNER="owner"
BITBUCKET_USER="username"
BUTBUCKET_PASSWORD="password"
from fifbucket.client import Bitbucket
bitbucket = Bitbucket(owner=OWNER, username=BITBUCKET_USER, password=BUTBUCKET_PASSWORD)
get_repos(query) example: list all repository from a project
PROJECT = 'PROJ'
QUERY = 'query='project.key="{}"'.format(PROJECT)'
bitbucket.get_repos(query=QUERY)
get_pr example(repo_slug, query) example: list pull request info from a repo
REPOSITORY = 'repository_slug'
bitbucket.get_pr_info(REPOSITORY)
get_permissions(query) example: list info of all admins in a repository
REPOSITORY = 'repository_slug'
QUERY = 'repository.name="{}" AND permission="admin"'.format(REPOSITORY)
bitbucket.get_permissions(query=QUERY)
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
fifbucket-0.9.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for fifbucket-0.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3c5faeb8d18174dba217eddf531b290e5cc5f830b8a5de1ab5822af5b5cefa0 |
|
MD5 | 3ce9a526177ed18df4e18dddedd9c301 |
|
BLAKE2b-256 | 89d58a378c79b53170a27ccf087cf32b55680dc450e636d815989cd1497cb51a |