bucketcloner-0.1.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bucketcloner-0.1.0 |
| نام | bucketcloner |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Philipp Lies <phil@lies.io> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/bucketcloner/ |
| مجوز | - |
# Bucketcloner
Simple tool to list all your bitbucket workspaces and clone all repositories associated with these workspaces.
## Requirements
1. You need to know your bitbucket username. Can be found at https://bitbucket.org/account/settings/.
2. You need to create an app password here https://bitbucket.org/account/settings/app-passwords/ with read permissions for *account*, *workspace membership* and *repositories*.
3. Install bucketcloner either by cloning this repository and running `pip install .` or by installing it via `pip install bucketcloner`. Minimum required python version is 3.8.
## List all workspaces
```bash
bucketcloner -u <username> -p <apppassword> workspace
```
This lists all workspaces, including your personal workspace, where you have access.
## Clone workspace(s)
You can clone all repositories of all workspaces by simply calling
```bash
bucketcloner -u <username> -p <password> clone
```
This clones all repositories of all workspaces into the folders `workspace/repository` relative to the current directory.
To select specific workspace(s), add the `-w` option with workspace slug names separated by commas
```bash
bucketcloner -u <username> -p <password> -w workspace1,workspace2 clone
```
All existing repositories in the folders will be deleted and cloned again. To just skip existing repositories, add `--skip-existing` flag.
```bash
bucketcloner -u <username> -p <password> -w workspace1,workspace2 --skip-existing clone
```
## Python example
The `example.ipynb` includes an example how to read the workspaces and download the repositories from within python.
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | gitpython |
| - | argparse |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl bucketcloner-0.1.0:
pip install bucketcloner-0.1.0.whl
نصب پکیج tar.gz bucketcloner-0.1.0:
pip install bucketcloner-0.1.0.tar.gz