
Product
Redesigned Repositories Page: A Faster Way to Prioritize Security Risk
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
fifbucket is a python library for call Bitbucket api:
Bitbucket Api Documentation: https://developer.atlassian.com/bitbucket/api/2/reference/resource/
Obligatory arguments
Argument | Description |
---|---|
owner | Bitbucket repository owner |
username | Bitbucket username |
password | Bitbucket user password or app password |
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)
FAQs
Bitbucket Api Library
We found that fifbucket demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Slopsquatting is a new supply chain threat where AI-assisted code generators recommend hallucinated packages that attackers register and weaponize.
Security News
Multiple deserialization flaws in PyTorch Lightning could allow remote code execution when loading untrusted model files, affecting versions up to 2.4.0.