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)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fifbucket-0.10.2.tar.gz
.
File metadata
-
Download URL:
fifbucket-0.10.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
-
Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Hashes for fifbucket-0.10.2.tar.gz
Algorithm |
Hash digest |
|
SHA256 |
c493e82626a93c83efd431022571cf8a1a56895e7368c233162ec4f603892bf0 |
|
MD5 |
2f498cbce1843a5e5768ae91693ece08 |
|
BLAKE2b-256 |
ded56dc220f4d806be58c75b53d0553099c1fe0cfcc68a46820d969c13297bbe |
|
See more details on using hashes here.
File details
Details for the file fifbucket-0.10.2-py2.py3-none-any.whl
.
File metadata
-
Download URL:
fifbucket-0.10.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2, Python 3
-
Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Hashes for fifbucket-0.10.2-py2.py3-none-any.whl
Algorithm |
Hash digest |
|
SHA256 |
a4289db17af48da52150cf8835c98ebff53c433c69a4c4742f87298794d2559f |
|
MD5 |
014520426fa121dbe0f5adbf25f89b29 |
|
BLAKE2b-256 |
a913052f4accf84111458b50c7d118a8fdf63c8757bfca0929c5dab405d50bd8 |
|
See more details on using hashes here.