badgie-0.7.0
توضیحات
Add all the badges with Badgie!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | badgie-0.7.0 |
| نام | badgie |
| نسخه کتابخانه | 0.7.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Brett Weir |
| ایمیل نویسنده | brett@brettops.io |
| آدرس صفحه اصلی | https://gitlab.com/brettops/tools/badgie |
| آدرس اینترنتی | https://pypi.org/project/badgie/ |
| مجوز | MIT |
# Badgie
<!-- BADGIE TIME -->
[](https://brettops.io)
[](https://gitlab.com/brettops/tools/badgie/-/commits/main)
[](https://gitlab.com/brettops/tools/badgie/-/commits/main)
[](https://gitlab.com/brettops/tools/badgie/-/releases)
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/psf/black)
[](https://github.com/prettier/prettier)
<!-- END BADGIE TIME -->
Add all the badges with Badgie!
---
**Badgie is experimental and should not be used by anyone ever!**
---
## tl;dr
Install Badgie:
```bash
pip install badgie
```
Add Badgie tags:
```md
<!-- BADGIE TIME -->
<!-- END BADGIE TIME -->
```
Run Badgie:
```bash
badgie -w README.md
```
## Why Badgie
Adding badges to repositories is frustrating. I spend so much time fiddling with
setup and achieve little consistency across repos without even more fiddling.
Without Badgie, there's a good chance that:
- Most repos just don't have badges.
- If they have badges, they look different or show different info between repos.
- Updating them is not fun.
The thing is, the whole internet WANTS you to have badges:
- Badges convey authority and stewardship while occupying little real estate.
- Many services have badges to make discovering info about your project easier.
- You just gotta know where to find 'em!
## About Badgie
Badgie is different because Badgie doesn't like asking for anything.
Starting with the Git remote URL of your checked out repo, Badgie attempts to
reconstruct what your repository is, where it came from, and what information is
interesting about it.
## Supported features
Here's what Badgie supports currently:
**Almost nothing!**
Here's a more exhaustive list:
- Interfacing with GitLab (barely)
- Generated badges:
- GitLab CI pipeline status
- Pre-commit
Badgie is used to manage the badges on this README.
## Using Badgie
Add the following tags wherever and Badgie will do its thing.
```md
<!-- BADGIE TIME -->
<!-- END BADGIE TIME -->
```
Then run Badgie:
```bash
badgie -w README.md
```
And enjoy magic badges:
```md
<!-- BADGIE TIME -->
[](brettops/containers/verible/-/commits/main)
[](https://github.com/pre-commit/pre-commit)
<!-- END BADGIE TIME -->
```
### Use as a pre-commit hook
Badgie can be used as a pre-commit hook, so you can get fresh badges on every
commit.
Add the following to a `.pre-commit-config.yaml` file. Note the empty
`rev` tag:
```yaml
repos:
- repo: https://gitlab.com/brettops/tools/badgie
rev: ""
hooks:
- id: badgie
```
Run `pre-commit autoupdate` to pin to the latest version:
```bash
pre-commit autoupdate
```
Run `pre-commit` directly or install as a hook:
```bash
# directly
pre-commit
# as a Git hook
pre-commit install
git commit -m "..."
```
## Caveats
Badgie makes decisions on the assumption that you do sensible things with your
repository structure. It does not try to work around bad practices. MRs that
encourage this will be rejected.
نیازمندی
| مقدار | نام |
|---|---|
| - | attrs |
| - | python-gitlab |
| - | pyyaml |
| - | termcolor |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl badgie-0.7.0:
pip install badgie-0.7.0.whl
نصب پکیج tar.gz badgie-0.7.0:
pip install badgie-0.7.0.tar.gz