{"id":19640186,"url":"https://github.com/gearplug/bitbucket-python","last_synced_at":"2026-02-21T02:01:21.796Z","repository":{"id":53735823,"uuid":"113188643","full_name":"GearPlug/bitbucket-python","owner":"GearPlug","description":"Bitbucket wrapper written in python","archived":false,"fork":false,"pushed_at":"2023-07-25T21:30:13.000Z","size":61,"stargazers_count":22,"open_issues_count":3,"forks_count":23,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T11:37:01.836Z","etag":null,"topics":["api","api-wrapper","bitbucket","bitbucket-api","python","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GearPlug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-05T13:54:34.000Z","updated_at":"2024-11-14T16:25:30.000Z","dependencies_parsed_at":"2023-01-23T19:45:41.200Z","dependency_job_id":null,"html_url":"https://github.com/GearPlug/bitbucket-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GearPlug/bitbucket-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fbitbucket-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fbitbucket-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fbitbucket-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fbitbucket-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GearPlug","download_url":"https://codeload.github.com/GearPlug/bitbucket-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GearPlug%2Fbitbucket-python/sbom","scorecard":{"id":55236,"data":{"date":"2025-08-11","repo":{"name":"github.com/GearPlug/bitbucket-python","commit":"22d76a6484a8d7ff7563a0a197d374e00d7f0b6b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Code-Review","score":5,"reason":"Found 7/12 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/GearPlug/bitbucket-python/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/GearPlug/bitbucket-python/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/GearPlug/bitbucket-python/test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: GHSA-vqfr-h8mv-ghfj","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T00:34:47.995Z","repository_id":53735823,"created_at":"2025-08-15T00:34:47.995Z","updated_at":"2025-08-15T00:34:47.995Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29671513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"online","status_checked_at":"2026-02-21T02:00:07.432Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-wrapper","bitbucket","bitbucket-api","python","wrapper"],"created_at":"2024-11-11T14:04:57.153Z","updated_at":"2026-02-21T02:01:21.763Z","avatar_url":"https://github.com/GearPlug.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"bitbucket-python is an API wrapper for Bitbucket written in Python\n\n## Installing\n```\npip install bitbucket-python\n```\n\n## Usage\n\n```python\nfrom bitbucket.client import Client\nfrom bitbucket import AsyncClient\n\nclient = Client('EMAIL', 'PASSWORD')\n\n# Or to specify owner URL to find repo own by other user\nclient = Client('EMAIL', 'PASSWORD', 'Owner')\n\n# Async client\nasync with AsyncClient('EMAIL', 'PASSWORD') as client:\n    ...\n\n```\n\n### Methods\n\nGet user information\n```\nresponse = client.get_user()\n```\n\nGet account privileges for repositories\n```\nresponse = client.get_privileges()\n```\n\nGet repositories\n```\nresponse = client.get_repositories()\n```\n\nGet repository\n```\nresponse = client.get_repository('REPOSITORY_SLUG')\n```\n\nPost repository\n```\nresponse = client.create_repository(data, params, repositoryName, teamName)\n```\n\nGet branches for repository\n```\nresponse = client.get_repository_branches('REPOSITORY_SLUG')\n```\n\nGet tags for repository\n```\nresponse = client.get_repository_tags('REPOSITORY_SLUG')\n```\n\nGet commits for a repository\n```\nresponse = client.get_repository_commits('REPOSITORY_SLUG')\n```\n\nGet components for repository\n```\nresponse = client.get_repository_components('REPOSITORY_SLUG')\n```\n\nGet milestones for repository\n```\nresponse = client.get_repository_milestones('REPOSITORY_SLUG')\n```\n\nGet versions for repository\n```\nresponse = client.get_repository_versions('REPOSITORY_SLUG')\n```\n\nCreate issue\n```\ndata = {..DATA..}\nresponse = client.create_issue('REPOSITORY_SLUG', data)\n```\n\nGet all issues\n```\nresponse = client.get_issues('REPOSITORY_SLUG')\n```\n\nGet issue\n```\nresponse = client.get_issue('REPOSITORY_SLUG', 'ISSUE_ID')\n```\n\nDelete issue\n```\nresponse = client.delete_issue('REPOSITORY_SLUG', 'ISSUE_ID')\n```\n\n### Webhooks\n\nCreate webhook\n```\ndata = {\n    \"description\": \"Webhook\",\n    \"url\": \"http://mywebsite.com\",\n    \"active\": True,\n    \"events\": [\n        \"repo:push\",\n        \"issue:created\",\n        \"issue:updated\"\n    ]\n}\nresponse = client.create_webhook('REPOSITORY_SLUG', data)\n```\n\nGet all webhooks\n```\nresponse = client.get_webhooks('REPOSITORY_SLUG')\n```\n\nGet webhook\n```\nresponse = client.get_webhook('REPOSITORY_SLUG', 'WEBHOOK_ID')\n```\n\nDelete webhook\n```\nresponse = client.delete_webhook('REPOSITORY_SLUG', 'WEBHOOK_ID')\n```\n\n### Helper methods\n\n### all_pages\n\nThe `all_pages` method is a helper function that makes it easy to retrieve all items from an API methods that uses pagination (see https://developer.atlassian.com/cloud/bitbucket/rest/intro/#pagination).\n\n```python\nclient = Client()\n\nitems = list(client.all_pages(client.get_repositories))\n```\n\nNote that the `all_pages` method uses a generator to return the results.\n\n\n## Requirements\n\n- requests\n- [httpx](https://github.com/encode/httpx/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgearplug%2Fbitbucket-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgearplug%2Fbitbucket-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgearplug%2Fbitbucket-python/lists"}