sheeprider / bitbucket-api Goto Github PK
View Code? Open in Web Editor NEWPython library to interact with BitBucket REST API
License: ISC License
Python library to interact with BitBucket REST API
License: ISC License
If i use an email and password to sign in I cannot perform operations on my repos:
BB_LOGIN = '[email protected]'
BB_PASSWORD = 'XXXX'
bb = Bitbucket(BB_LOGIN, BB_PASSWORD)
bb.repository.get('test') ## fails
I'm forced to either sign in via username instead of email or use this following line to update the bb object:
bb.username = bb.get_user()[1]['username']
I am using Python 2.7.11 with pip 8.1.2;
When I try to install the bitbucket-api I get the following:
pip install bitbucket-api
Collecting bitbucket-api
Using cached bitbucket-api-0.5.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): requests in c:\python27\lib\site-packages (from bitbucket-api)
Collecting sh (from bitbucket-api)
Using cached sh-1.11.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "c:\users\xxx\appdata\local\temp\pip-build-nrkwol\sh\setup.py", line 4, in
import sh
File "sh.py", line 37, in
support." % version)
ImportError: sh 1.11 is currently only supported on linux and osx. please install pbs 0.110 (http://pypi.python.org/pypi/pbs) for windows support.
I have no issues installng pbs.
pip install pbs
Collecting pbs
Downloading pbs-0.110.tar.gz
Installing collected packages: pbs
Running setup.py install for pbs ... done
Successfully installed pbs-0.110
However, this does not resolve the issue above with sh 1.11 indicating I should install pbs.
Any ideas on how to resolve this issue for those of us running on windows?
Thanks.
--dave
Hi,
Will you support the Pull Requests from the API 2.0 of Bitbucket?
Thanks
This library is nice. Is there documentation somewhere?
List all of an authenticated user's repositories https://gist.github.com/matthew-campbell/5471630
hi SheepRider!
it looks like you're not active anymore on this repository, but there are still projects using your code, and a radical change of the bitbucket-api is in sight.
Because there are a bunch of PR taking dust in the pipe, and you haven't done any commit over the last couple of years, I'd be happy to take over maintenance of the library (and more importantly matching pypi package) so we can keep improving the tool.
Would you mind transferring it? โบ
I'm new for bitbucket-api and python. :(
I want to use Python to build a server(twisted) and connect Bitbucket.
pip install bitbucket-api
(website)Does anyone have idea?
Is possible?
I can see all issues if I use team username and password but when I want create a issue I get "Service not found"
I have a script that creates a new client project from a boilerplate repository. The first step in that process is to download an archive of the boilerplate repository. What I'm finding is that any downloaded images (gif, png) are corrupted after downloading and extracting the archive.
Here's a test script I was using to try to isolate the issue as best I could:
#!/usr/bin/env python
from bitbucket.bitbucket import Bitbucket
from zipfile import ZipFile
bitbucket = Bitbucket('robwilkerson', 'muhpassword')
repo = 'drupal-boilerplate'
success, result = bitbucket.repository.archive(
repo,
owner='theclient',
format='zip')
with ZipFile(result, 'r') as archive:
archive.extractall('/tmp/%s' % repo)
I have browsed the documentation and played a lot with the library but I haven't found how to deal with the following issue: I need to browser all private repositories for my team. Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.