Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A tool to copy labels between repositories using Github API

Project description

Code Health Version Python versions supported License

Github Labels Copy

A tool to copy labels between repositories using Github API

Here are the actions done by this tool:

  • Add missing labels
  • Modify color for existing labels
  • Delete labels not availlable in source repository

It can be used with either login/password or API Key.


You can install it using pip:

$ pip install githublabelscopy


To copy labels between two repositories:

$ github-labels-copy myuser/source-repo myuser/target-repo

There is also two identification modes:

  • –login : using your Github username, you will be prompted for your password
  • –token : provide your Github token

Alternatively you can set an environment variable called GITHUB_API_TOKEN. Without any identification mode specified, it will automatically fallback on it.

You can also dump/load labels:

  • –load : load labels from a previous dump (yaml file)
  • –dump : dump labels into a yaml file


There are 3 non exclusive modes:

  • -c : creates labels which don’t exist on target repository
  • -r : remove labels on target repository which don’t exists on source repository
  • -m : modify labels which don’t have the right color code on target repository

Default is full mode, which execute all those actions.

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
githublabelscopy-1.1.1.tar.gz (4.0 kB) Copy SHA256 hash SHA256 Source None Jul 8, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page