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 = '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_repo(repo_slug, query) example: list info of all admins in a repository
REPOSITORY = 'repository_slug'
QUERY = 'permission="admin"'
bitbucket.get_permissions_repo(REPOSITORY, 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.10.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for fifbucket-0.10.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04eb64f5f3ef5e7f3f2e7da4556027d1c53d0613fe46a5c9f411bc4b906392fd |
|
MD5 | 3195dc8ed8c7a52d51e71df6f6852a78 |
|
BLAKE2b-256 | e54182a7751126e7bacccae9fe3562ee78b821a77c3c549f88aa9d2626a7645f |