GithubHelp home page GithubHelp logo

ijazm123 / bucketcloner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phillies/bucketcloner

0.0 0.0 0.0 25 KB

Clone all bitbucket repositories from all your workspaces

License: GNU General Public License v3.0

Python 67.18% Jupyter Notebook 32.82%

bucketcloner's Introduction

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

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

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

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.

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.

bucketcloner's People

Contributors

phillies avatar borissmidt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.