backup-github-1.0.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | backup-github-1.0.0 |
| نام | backup-github |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Karina5005 |
| ایمیل نویسنده | karinaanisimova23062001@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/backup-github/ |
| مجوز | - |
# GitHub-Backup
## Project description
Application for backing up information about a GitHub organization
## Installation
You can clone this repository and set up the environment directly from the command line using the following command:
```bash
git clone git@github.com:cloud-labs-infra/github-backup.git
cd github-backup
make env
export PYTHONPATH=$PYTHONPATH:$PWD/github_backup
```
## Testing
You can run the tests using the following command:
```bash
make test
```
This command runs all unit tests and calculates coverage
## Usage
CLI Usage is as follows:
./venv/bin/python github_backup/main.py [-h] [-t TOKEN] [-o OUTPUT_DIR]
[-r REPOSITORY [REPOSITORY ...]]
ORGANIZATION_NAME
Backup a GitHub organization
positional arguments:
ORGANIZATION_NAME github organization name
options:
-h, --help show this help message and exit
-t TOKEN, --token TOKEN
personal token
-o OUTPUT_DIR, --output-directory OUTPUT_DIR
directory for backup
-r REPOSITORY [REPOSITORY ...], --repository REPOSITORY [REPOSITORY ...]
name of repositories to limit backup
## Backup structure
.
└── organization
├── members
│ └── login1
│ ├── member.json
│ └── membership.json
└── repos
└── repo1
├── content
│ └── repo1.git
├── issues
│ └── 1
│ ├── assignee.json
│ ├── comments
│ ├── issue.json
│ └── user.json
├── pulls
│ └── 2
│ ├── assignee.json
│ ├── base.json
│ ├── comments
│ │ └── 1
│ │ ├── comment.json
│ │ └── user.json
│ ├── head.json
│ ├── pull.json
│ ├── reviews
│ │ ├── 1
│ │ │ ├── review.json
│ │ │ └── user.json
│ │ └── 2
│ │ ├── comments
│ │ │ └── 1
│ │ │ ├── comment.json
│ │ │ └── user.json
│ │ ├── review.json
│ │ └── user.json
│ └── user.json
└── repo.json
## License
[MIT](https://choosealicense.com/licenses/mit/)
## Project status
The project is currently in a development state
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.2,<3.0.0 | requests |
| >=0.16.0,<0.17.0 | prometheus_client |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl backup-github-1.0.0:
pip install backup-github-1.0.0.whl
نصب پکیج tar.gz backup-github-1.0.0:
pip install backup-github-1.0.0.tar.gz