Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bucketcloner-0.1.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bucketcloner-0.1.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file bucketcloner-0.1.0.tar.gz.

File metadata

  • Download URL: bucketcloner-0.1.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for bucketcloner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dcad1170c980d8e9c92daa3432d253a399125d9295fb68b0f7d2d2197fdb0eb4
MD5 2eee090a68ca7862cd3addc09e45f7f2
BLAKE2b-256 0a67f4297bc65fd70581999c3b25c229dae252c30e8773a6b0eb1bdb4aa0ccbc

See more details on using hashes here.

File details

Details for the file bucketcloner-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bucketcloner-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for bucketcloner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1179dca17806695742e8708d2f6f248d7bc9e58e44d1ced7ac1563a06d51e886
MD5 6f36894b4f72b443a1aa3b37870bfb5d
BLAKE2b-256 18f5de848a2b45ede7baf724fe6fd54023c92bbf3be98299222962e639880911

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page