Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ pip install bitbucket-python
```

## Usage
```

### Sync client

```python
from bitbucket.client import Client
from bitbucket import AsyncClient

client = Client('EMAIL', 'PASSWORD')

# Or to specify owner URL to find repo own by other user
client = Client('EMAIL', 'PASSWORD', 'Owner')

# Async client
async with AsyncClient('EMAIL', 'PASSWORD') as client:
...

```

Get user information
Expand Down Expand Up @@ -125,4 +133,6 @@ response = client.delete_webhook('REPOSITORY_SLUG', 'WEBHOOK_ID')
```

## Requirements

- requests
- [httpx](https://github.com/encode/httpx/)
7 changes: 7 additions & 0 deletions bitbucket/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from .client import Client
from .aclient import Client as AsyncClient

__all__ = [
'Client',
'AsyncClient',
]
Loading