You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

fifbucket

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fifbucket

Bitbucket Api Library

0.10.2
PyPI
Maintainers
1

fifbucket

Build Status Coverage Status Pypi Status Pypi Download Pypi Wheel

fifbucket is a python library for call Bitbucket api:

Bitbucket Api Documentation: https://developer.atlassian.com/bitbucket/api/2/reference/resource/

Configuration

Obligatory arguments

ArgumentDescription
ownerBitbucket repository owner
usernameBitbucket username
passwordBitbucket 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)

Keywords

bitbucket

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts