python-gitmoji


Namepython-gitmoji JSON
Version 1.0.1 PyPI version JSON
download
home_page
Summary😜 A helper package to apply and manage Gitmojis in Python projects 🐍
upload_time2023-09-06 09:13:46
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords python gitmoji
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # python-gitmoji

[![](https://img.shields.io/pypi/status/python-gitmoji?logo=pypi)][pypi]
[![](https://img.shields.io/pypi/v/python-gitmoji?logo=pypi)][pypi]
[![](https://img.shields.io/pypi/pyversions/python-gitmoji?logo=python)][pypi]
[![](https://img.shields.io/pypi/l/python-gitmoji?label=license)][license]

[![](https://results.pre-commit.ci/badge/github/paduszyk/python-gitmoji/main.svg)][pre-commit.ci]
[![](https://img.shields.io/github/actions/workflow/status/paduszyk/python-gitmoji/lint-package.yml?label=lint&logo=github)][github-lint-package]
[![](https://img.shields.io/github/actions/workflow/status/paduszyk/python-gitmoji/test-package.yml?label=test&logo=github)][github-test-package]
[![](https://img.shields.io/codecov/c/github/paduszyk/python-gitmoji?logo=codecov&label=codecov)][codecov]

[![](https://img.shields.io/badge/%F0%9F%A6%8A-Nox-D85E00.svg)][nox]
[![](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)][ruff]
[![](https://img.shields.io/badge/code%20style-black-black)][black]
[![](https://img.shields.io/badge/types%20checked-mypy-blue)][mypy]

> The idea of Gitmoji was originally proposed, developed, and maintained by [@carloscuesta][carlosquesta].
> For more information, see the official [repository][gitmoji-repo] and [website][gitmoji-website] of the project.

The term Gitmoji refers to a framework for marking commits and pull requests with carefully selected emojis to indicate the type of changes they introduce to software projects.
The still-growing popularity of the Gitmoji guide is evidenced by the numerous [tools][gitmoji-tools] related to that idea, written in a variety of programming languages.

The main purpose of the `python-gitmoji` project is to provide a handy way of managing the available [set of Gitmojis][gitmoji-website] in Python packages.
It may serve as a helper utility in projects related to versioning and automatic changelog generators, as well as automation tools for validating commit and pull request titles.

## Installation

To install `python-gitmoji`, use `pip`:

```console
$ pip install python-gitmoji
```

or any other dependency manager you like.

## Usage

The package provides two main functionalities: the `Gitmoji`/`GitmojiList` classes and the `gitmojis` object.
Both can be imported directly from the `gitmoji` module:

```python
from gitmoji import Gitmoji, GitmojiList, gitmojis
```

The classes represent a Pythonic interface to create and manage `Gitmoji` objects and their lists with some extra features regarding indexing, slicing, and iteration.
On the other hand, the `gitmojis` is simply an instance of `GitmojiList` representing the current state of the Gitmoji [API][gitmoji-api] (or the local backup if issues hindering communication with the API are found).

### `gitmoji.Gitmoji` class

The `Gitmoji` class can be used like a regular Python `@dataclass` (see [PEP 557][pep-557]).
To create a `Gitmoji` object, just run the constructor and pass the field values as the parameters (preferably keyword parameters):

```python
from gitmoji import Gitmoji

dependabot_gitmoji = Gitmoji(
    emoji="🤖",
    entity="&#x1f916",
    code=":robot:",
    description="Add or update Dependabot configuration.",
    name="robot",
    semver=None,
)

# Assert the object is constructed
assert isinstance(dependabot_gitmoji, Gitmoji)
```

The meaning of respective fields is as follows:

- `emoji` – the actual emoji character representing the Gitmoji;
- `entity` – the HTML entity of the Gitmoji;
- `code` – the emoji's code, to be eventually used when rendering Gitmojis in markdown documents (see: the official [GitHub API][github-emoji-api], 3rd party projects like [`emoji`][emoji], or less official [`emoji-cheat-sheet`][emoji-cheat-sheet]);
- `description` – a short note on the type of changes the Gitmoji represents;
- `name` – the text identifier of the Gitmoji;
- `semver` – the level of the [Semantic Version](https://semver.org) affected by the changes marked with the Gitmoji.

> All the fields listed in the example above are mandatory except `semver`.

Except for the standard way presented above, `Gitmoji` objects can be created from Python dictionaries and converted to them by using `from_dict` class method and `to_dict` instance method, respectively:

```python
from gitmoji import Gitmoji

gitmoji_dict = {
    "emoji" : "🤖",
    "entity" : "&#x1f916",
    "code" : ":robot:",
    "description" : "Add or update Dependabot configuration.",
    "name" : "robot",
    "semver" : None,
}

# Constructor: the standard way
gitmoji = Gitmoji(**gitmoji_dict)

# Assert `from_dict` class method
assert Gitmoji.from_dict(gitmoji_dict) == gitmoji

# Assert `to_dict` instance method
assert gitmoji.to_dict() == gitmoji_dict
```

Creating a `Gitmoji` object from a `dict` using `from_class` method is safer because the method filters out all the irrelevant items from the source `dict`.
Besides, this method raises a specific `GitmojiDataError` if the `dict` doesn't contain the key-value pairs to create all the required fields.

> Basically, `to_dict` is only a shortcut for the `dataclass.asdict` builtin.
> You're welcome. Just another import you can forget. 😜

### `gitmoji.GitmojiList` class

`GitmojiList` is a subclass of `collections.UserList` designed to store and manage sequences of the `Gitmoji` objects.
Compared to plain Python lists, `GitmojiList` instances can be:
* indexed by using the `name` field values of the constituting `Gitmoji` objects;
* iterated over a selected `Gitmoji` class field or a subset of the fields at once using `iter_field` and `iter_fields` methods, respectively.

For example:

```python
from dataclasses import astuple

from gitmoji import Gitmoji, GitmojiList

# The data, e.g., from API or JSON file
gitmoji_dicts = [
    {
        "emoji": "💥",
        "entity": "💥",
        "code": ":boom:",
        "description": "Introduce breaking changes.",
        "name": "boom",
        "semver": "major",
    },
    {
        "emoji": "✨",
        "entity": "✨",
        "code": ":sparkles:",
        "description": "Introduce new features.",
        "name": "sparkles",
        "semver": "minor",
    },
    {
        "emoji": "🐛",
        "entity": "🐛",
        "code": ":bug:",
        "description": "Fix a bug.",
        "name": "bug",
        "semver": "patch",
    },
]

# List of Gitmojis
gitmoji_list = GitmojiList(
    [Gitmoji.from_dict(gitmoji) for gitmoji in gitmoji_dicts]
)

# Assert indexing
for index, gitmoji in enumerate(gitmoji_list):
    # Standard indexing with integers
    assert gitmoji_list[index] == gitmoji

    # Indexing using `name` field
    assert gitmoji_list[gitmoji.name] == gitmoji

# Assert iteration over a single field
assert list(gitmoji_list.iter_field("emoji")) == ["💥", "✨", "🐛"]

# Assert iteration over a subset of fields
assert list(gitmoji_list.iter_fields("emoji", "code")) == [
    ("💥", ":boom:"),
    ("✨", ":sparkles:"),
    ("🐛", ":bug:"),
]

# Assert iteration over all the fields
for item, gitmoji in zip(gitmoji_list.iter_fields(), gitmoji_list):
    assert item == astuple(gitmoji)
```

> The `Gitmoji` class fields to be used in indexing `GitmojiList` objects can be modified by overriding the latter's private `_index_fields` attribute.
> For example, if you prefer to access the `data` items with the `code` values, just call `GitmojiList._index_fields = ("code",)` before creating the instances.
> Note that this attribute is of type `tuple`, so such field-based indexing can be generalized to multiple indices.

### `gitmoji.gitmojis` object

`gitmoji.gitmojis` refers to an instance of `GitmojiList` class with the `data` containing `Gitmoji` objects fetched from the official Gitmoji [API][gitmoji-api].
If there are some issues with connection or API access, the backup data is loaded from the [JSON file][gitmojis-json] installed along with the package.

The data are loaded on the fly when the object is imported.
If you want to download them at your code's runtime, use the implemented loader class (see `gitmoji.loaders` module for more information) or the core loading function (from the `gitmoji.core` module):

```python
from gitmoji import gitmojis  # That's it! Loading done (recommended)

# Import the tools
from gitmoji.core import get_gitmojis
from gitmoji.loaders import GitmojiApiLoader

# `GitmojiApiLoader` is a callable class
load_gitmojis = GitmojiApiLoader()

# Loading at runtime (may fail due to connection or response errors)
gitmojis = load_gitmojis()

# Load Gitmoji from the API, **OR** the backup file
# This is exactly what's happening at the `gitmoji` module's import
gitmojis = get_gitmojis()
```

### CLI

#### `dump-gitmoji-api`

The backup file can be kept up-to-date with the official API by using `dump-gitmoji-api` command:

```console
$ dump-gitmoji-api --help

Usage: dump-gitmoji-api [OPTIONS]

Options:
  --dry-run  Show the JSON file update summary, but do not make the actual dump.
  --dev      Dump the API to the repository's backup, not the installed one.
  --help     Show this message and exit.
```

If no updates are available, the command simply notifies about that fact:

```console
$ dump-gitmoji-api
😎 The JSON backup is up-to-date with the Gitmoji API. ✅
```

If there are some changes (for example, let's say that "🦺" is added to and "🤖" is discarded from the API), the command echos the summary message in the markdown format and actually updates the backup JSON file:

```console
$ dump-gitmoji-api
## Gitmoji API dumped! 🎉

The official Gitmoji [API][gitmoji-api] has been dumped to the repo's backup file! 🗃️

### ➕ Added

* 🦺 `:safety_vest:` – Add or update code related to validation.

### ➖ Removed

* 🤖 `:robot:` – Add or update Dependabot configuration.

[gitmoji-api]: https://github.com/carloscuesta/gitmoji/tree/master/packages/gitmojis#api
```

Note that the `dump-gitmoji-api` command updates the JSON file which is a part of `python-gitmoji` package *installed* in your Python environment.
So, if you (for some reason) want to experiment with it, make sure that you know what you're doing and check whether you have the appropriate permissions.

Alternatively, if you want to just check whether the API has been changed, run the script with `--dry-run` flag.
This will echo the notifications without touching the files.
Finally, if you're work with a clone of this repository, you can add `--dev` flag to update NOT the backup file of the installed package, but the backup file of the clone.
If the API is dumped, you will see the changes in the backup file as you call `git status`.

### Automation

The API state is scheduled to be compared to the JSON backup file every week.
This is implemented by executing `dump-gitmoji-api` command at GitHub Actions runner.
The respective [workflow][github-dump-gitmojis-api] automatically applies the update and opens pull request commented using the command's output message.

Every update of the backup file is followed by the version bump.

> 🚨 Every update of the backup file is followed by the version bump.
>
> Therefore, to stay tuned with the Gitmoji API backed up by this library, you should update `python-gitmoji` systematically.
> This particularly concerns the developers, who work with local repositories most of the time.

## Contributing

This is an open-source project, so it welcomes all kinds of contributions.
Feel free to open an issue by filing a bug or proposing new (or enhancing existing) functionality.
Check out the [Contributing Guide][contributing-guide] for detailed instructions.

All contributors must follow the project's [Code of Conduct][code-of-conduct].
It's not as complicated as it looks; just be kind and understanding to others! 🙂

## Authors

Created by [@paduszyk][paduszyk].

## License

Released under the [MIT License][license].

[black]: https://github.com/psf/black
[carlosquesta]: https://github.com/carloscuesta
[code-of-conduct]: https://github.com/paduszyk/python-gitmoji/blob/main/.github/CODE_OF_CONDUCT.md
[codecov]: https://codecov.io/gh/paduszyk/python-gitmoji
[contributing-guide]: https://github.com/paduszyk/python-gitmoji/blob/main/.github/CONTRIBUTING.md
[emoji]: https://github.com/carpedm20/emoji/
[emoji-cheat-sheet]: https://github.com/ikatyang/emoji-cheat-sheet
[github-emoji-api]: https://docs.github.com/en/rest/emojis
[github-dump-gitmojis-api]: https://github.com/paduszyk/python-gitmoji/actions/workflows/dump-gitmoji-api.yml
[github-lint-package]: https://github.com/paduszyk/python-gitmoji/actions/workflows/lint-package.yml
[github-test-package]: https://github.com/paduszyk/python-gitmoji/actions/workflows/test-package.yml
[gitmoji-api]: https://github.com/carloscuesta/gitmoji/tree/master/packages/gitmojis#api
[gitmoji-repo]: https://github.com/carloscuesta/gitmoji
[gitmoji-tools]: https://gitmoji.dev/related-tools
[gitmoji-website]: https://gitmoji.dev
[gitmojis-json]: https://github.com/paduszyk/python-gitmoji/blob/main/src/gitmoji/assets/gitmojis.json
[license]: https://github.com/paduszyk/python-gitmoji/blob/main/LICENSE
[mypy]: https://github.com/python/mypy
[nox]: https://github.com/wntrblm/nox
[paduszyk]: https://github.com/paduszyk
[pep-557]: https://peps.python.org/pep-0557/
[pre-commit.ci]: https://results.pre-commit.ci/latest/github/paduszyk/python-gitmoji/main
[pypi]: https://pypi.org/project/python-gitmoji/
[ruff]: https://github.com/astral-sh/ruff

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "python-gitmoji",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "python,gitmoji",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/3b/53/8da6625cfd3b91f5a8751590b93ece196023c83ce9e4f21fd76f8bb6668d/python-gitmoji-1.0.1.tar.gz",
    "platform": null,
    "description": "# python-gitmoji\n\n[![](https://img.shields.io/pypi/status/python-gitmoji?logo=pypi)][pypi]\n[![](https://img.shields.io/pypi/v/python-gitmoji?logo=pypi)][pypi]\n[![](https://img.shields.io/pypi/pyversions/python-gitmoji?logo=python)][pypi]\n[![](https://img.shields.io/pypi/l/python-gitmoji?label=license)][license]\n\n[![](https://results.pre-commit.ci/badge/github/paduszyk/python-gitmoji/main.svg)][pre-commit.ci]\n[![](https://img.shields.io/github/actions/workflow/status/paduszyk/python-gitmoji/lint-package.yml?label=lint&logo=github)][github-lint-package]\n[![](https://img.shields.io/github/actions/workflow/status/paduszyk/python-gitmoji/test-package.yml?label=test&logo=github)][github-test-package]\n[![](https://img.shields.io/codecov/c/github/paduszyk/python-gitmoji?logo=codecov&label=codecov)][codecov]\n\n[![](https://img.shields.io/badge/%F0%9F%A6%8A-Nox-D85E00.svg)][nox]\n[![](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)][ruff]\n[![](https://img.shields.io/badge/code%20style-black-black)][black]\n[![](https://img.shields.io/badge/types%20checked-mypy-blue)][mypy]\n\n> The idea of Gitmoji was originally proposed, developed, and maintained by [@carloscuesta][carlosquesta].\n> For more information, see the official [repository][gitmoji-repo] and [website][gitmoji-website] of the project.\n\nThe term Gitmoji refers to a framework for marking commits and pull requests with carefully selected emojis to indicate the type of changes they introduce to software projects.\nThe still-growing popularity of the Gitmoji guide is evidenced by the numerous [tools][gitmoji-tools] related to that idea, written in a variety of programming languages.\n\nThe main purpose of the `python-gitmoji` project is to provide a handy way of managing the available [set of Gitmojis][gitmoji-website] in Python packages.\nIt may serve as a helper utility in projects related to versioning and automatic changelog generators, as well as automation tools for validating commit and pull request titles.\n\n## Installation\n\nTo install `python-gitmoji`, use `pip`:\n\n```console\n$ pip install python-gitmoji\n```\n\nor any other dependency manager you like.\n\n## Usage\n\nThe package provides two main functionalities: the `Gitmoji`/`GitmojiList` classes and the `gitmojis` object.\nBoth can be imported directly from the `gitmoji` module:\n\n```python\nfrom gitmoji import Gitmoji, GitmojiList, gitmojis\n```\n\nThe classes represent a Pythonic interface to create and manage `Gitmoji` objects and their lists with some extra features regarding indexing, slicing, and iteration.\nOn the other hand, the `gitmojis` is simply an instance of `GitmojiList` representing the current state of the Gitmoji [API][gitmoji-api] (or the local backup if issues hindering communication with the API are found).\n\n### `gitmoji.Gitmoji` class\n\nThe `Gitmoji` class can be used like a regular Python `@dataclass` (see [PEP 557][pep-557]).\nTo create a `Gitmoji` object, just run the constructor and pass the field values as the parameters (preferably keyword parameters):\n\n```python\nfrom gitmoji import Gitmoji\n\ndependabot_gitmoji = Gitmoji(\n    emoji=\"\ud83e\udd16\",\n    entity=\"&#x1f916\",\n    code=\":robot:\",\n    description=\"Add or update Dependabot configuration.\",\n    name=\"robot\",\n    semver=None,\n)\n\n# Assert the object is constructed\nassert isinstance(dependabot_gitmoji, Gitmoji)\n```\n\nThe meaning of respective fields is as follows:\n\n- `emoji` – the actual emoji character representing the Gitmoji;\n- `entity` – the HTML entity of the Gitmoji;\n- `code` – the emoji's code, to be eventually used when rendering Gitmojis in markdown documents (see: the official [GitHub API][github-emoji-api], 3rd party projects like [`emoji`][emoji], or less official [`emoji-cheat-sheet`][emoji-cheat-sheet]);\n- `description` – a short note on the type of changes the Gitmoji represents;\n- `name` – the text identifier of the Gitmoji;\n- `semver` – the level of the [Semantic Version](https://semver.org) affected by the changes marked with the Gitmoji.\n\n> All the fields listed in the example above are mandatory except `semver`.\n\nExcept for the standard way presented above, `Gitmoji` objects can be created from Python dictionaries and converted to them by using `from_dict` class method and `to_dict` instance method, respectively:\n\n```python\nfrom gitmoji import Gitmoji\n\ngitmoji_dict = {\n    \"emoji\" : \"\ud83e\udd16\",\n    \"entity\" : \"&#x1f916\",\n    \"code\" : \":robot:\",\n    \"description\" : \"Add or update Dependabot configuration.\",\n    \"name\" : \"robot\",\n    \"semver\" : None,\n}\n\n# Constructor: the standard way\ngitmoji = Gitmoji(**gitmoji_dict)\n\n# Assert `from_dict` class method\nassert Gitmoji.from_dict(gitmoji_dict) == gitmoji\n\n# Assert `to_dict` instance method\nassert gitmoji.to_dict() == gitmoji_dict\n```\n\nCreating a `Gitmoji` object from a `dict` using `from_class` method is safer because the method filters out all the irrelevant items from the source `dict`.\nBesides, this method raises a specific `GitmojiDataError` if the `dict` doesn't contain the key-value pairs to create all the required fields.\n\n> Basically, `to_dict` is only a shortcut for the `dataclass.asdict` builtin.\n> You're welcome. Just another import you can forget. \ud83d\ude1c\n\n### `gitmoji.GitmojiList` class\n\n`GitmojiList` is a subclass of `collections.UserList` designed to store and manage sequences of the `Gitmoji` objects.\nCompared to plain Python lists, `GitmojiList` instances can be:\n* indexed by using the `name` field values of the constituting `Gitmoji` objects;\n* iterated over a selected `Gitmoji` class field or a subset of the fields at once using `iter_field` and `iter_fields` methods, respectively.\n\nFor example:\n\n```python\nfrom dataclasses import astuple\n\nfrom gitmoji import Gitmoji, GitmojiList\n\n# The data, e.g., from API or JSON file\ngitmoji_dicts = [\n    {\n        \"emoji\": \"\ud83d\udca5\",\n        \"entity\": \"💥\",\n        \"code\": \":boom:\",\n        \"description\": \"Introduce breaking changes.\",\n        \"name\": \"boom\",\n        \"semver\": \"major\",\n    },\n    {\n        \"emoji\": \"\u2728\",\n        \"entity\": \"✨\",\n        \"code\": \":sparkles:\",\n        \"description\": \"Introduce new features.\",\n        \"name\": \"sparkles\",\n        \"semver\": \"minor\",\n    },\n    {\n        \"emoji\": \"\ud83d\udc1b\",\n        \"entity\": \"🐛\",\n        \"code\": \":bug:\",\n        \"description\": \"Fix a bug.\",\n        \"name\": \"bug\",\n        \"semver\": \"patch\",\n    },\n]\n\n# List of Gitmojis\ngitmoji_list = GitmojiList(\n    [Gitmoji.from_dict(gitmoji) for gitmoji in gitmoji_dicts]\n)\n\n# Assert indexing\nfor index, gitmoji in enumerate(gitmoji_list):\n    # Standard indexing with integers\n    assert gitmoji_list[index] == gitmoji\n\n    # Indexing using `name` field\n    assert gitmoji_list[gitmoji.name] == gitmoji\n\n# Assert iteration over a single field\nassert list(gitmoji_list.iter_field(\"emoji\")) == [\"\ud83d\udca5\", \"\u2728\", \"\ud83d\udc1b\"]\n\n# Assert iteration over a subset of fields\nassert list(gitmoji_list.iter_fields(\"emoji\", \"code\")) == [\n    (\"\ud83d\udca5\", \":boom:\"),\n    (\"\u2728\", \":sparkles:\"),\n    (\"\ud83d\udc1b\", \":bug:\"),\n]\n\n# Assert iteration over all the fields\nfor item, gitmoji in zip(gitmoji_list.iter_fields(), gitmoji_list):\n    assert item == astuple(gitmoji)\n```\n\n> The `Gitmoji` class fields to be used in indexing `GitmojiList` objects can be modified by overriding the latter's private `_index_fields` attribute.\n> For example, if you prefer to access the `data` items with the `code` values, just call `GitmojiList._index_fields = (\"code\",)` before creating the instances.\n> Note that this attribute is of type `tuple`, so such field-based indexing can be generalized to multiple indices.\n\n### `gitmoji.gitmojis` object\n\n`gitmoji.gitmojis` refers to an instance of `GitmojiList` class with the `data` containing `Gitmoji` objects fetched from the official Gitmoji [API][gitmoji-api].\nIf there are some issues with connection or API access, the backup data is loaded from the [JSON file][gitmojis-json] installed along with the package.\n\nThe data are loaded on the fly when the object is imported.\nIf you want to download them at your code's runtime, use the implemented loader class (see `gitmoji.loaders` module for more information) or the core loading function (from the `gitmoji.core` module):\n\n```python\nfrom gitmoji import gitmojis  # That's it! Loading done (recommended)\n\n# Import the tools\nfrom gitmoji.core import get_gitmojis\nfrom gitmoji.loaders import GitmojiApiLoader\n\n# `GitmojiApiLoader` is a callable class\nload_gitmojis = GitmojiApiLoader()\n\n# Loading at runtime (may fail due to connection or response errors)\ngitmojis = load_gitmojis()\n\n# Load Gitmoji from the API, **OR** the backup file\n# This is exactly what's happening at the `gitmoji` module's import\ngitmojis = get_gitmojis()\n```\n\n### CLI\n\n#### `dump-gitmoji-api`\n\nThe backup file can be kept up-to-date with the official API by using `dump-gitmoji-api` command:\n\n```console\n$ dump-gitmoji-api --help\n\nUsage: dump-gitmoji-api [OPTIONS]\n\nOptions:\n  --dry-run  Show the JSON file update summary, but do not make the actual dump.\n  --dev      Dump the API to the repository's backup, not the installed one.\n  --help     Show this message and exit.\n```\n\nIf no updates are available, the command simply notifies about that fact:\n\n```console\n$ dump-gitmoji-api\n\ud83d\ude0e The JSON backup is up-to-date with the Gitmoji API. \u2705\n```\n\nIf there are some changes (for example, let's say that \"\ud83e\uddba\" is added to and \"\ud83e\udd16\" is discarded from the API), the command echos the summary message in the markdown format and actually updates the backup JSON file:\n\n```console\n$ dump-gitmoji-api\n## Gitmoji API dumped! \ud83c\udf89\n\nThe official Gitmoji [API][gitmoji-api] has been dumped to the repo's backup file! \ud83d\uddc3\ufe0f\n\n### \u2795 Added\n\n* \ud83e\uddba `:safety_vest:` – Add or update code related to validation.\n\n### \u2796 Removed\n\n* \ud83e\udd16 `:robot:` – Add or update Dependabot configuration.\n\n[gitmoji-api]: https://github.com/carloscuesta/gitmoji/tree/master/packages/gitmojis#api\n```\n\nNote that the `dump-gitmoji-api` command updates the JSON file which is a part of `python-gitmoji` package *installed* in your Python environment.\nSo, if you (for some reason) want to experiment with it, make sure that you know what you're doing and check whether you have the appropriate permissions.\n\nAlternatively, if you want to just check whether the API has been changed, run the script with `--dry-run` flag.\nThis will echo the notifications without touching the files.\nFinally, if you're work with a clone of this repository, you can add `--dev` flag to update NOT the backup file of the installed package, but the backup file of the clone.\nIf the API is dumped, you will see the changes in the backup file as you call `git status`.\n\n### Automation\n\nThe API state is scheduled to be compared to the JSON backup file every week.\nThis is implemented by executing `dump-gitmoji-api` command at GitHub Actions runner.\nThe respective [workflow][github-dump-gitmojis-api] automatically applies the update and opens pull request commented using the command's output message.\n\nEvery update of the backup file is followed by the version bump.\n\n> \ud83d\udea8 Every update of the backup file is followed by the version bump.\n>\n> Therefore, to stay tuned with the Gitmoji API backed up by this library, you should update `python-gitmoji` systematically.\n> This particularly concerns the developers, who work with local repositories most of the time.\n\n## Contributing\n\nThis is an open-source project, so it welcomes all kinds of contributions.\nFeel free to open an issue by filing a bug or proposing new (or enhancing existing) functionality.\nCheck out the [Contributing Guide][contributing-guide] for detailed instructions.\n\nAll contributors must follow the project's [Code of Conduct][code-of-conduct].\nIt's not as complicated as it looks; just be kind and understanding to others! \ud83d\ude42\n\n## Authors\n\nCreated by [@paduszyk][paduszyk].\n\n## License\n\nReleased under the [MIT License][license].\n\n[black]: https://github.com/psf/black\n[carlosquesta]: https://github.com/carloscuesta\n[code-of-conduct]: https://github.com/paduszyk/python-gitmoji/blob/main/.github/CODE_OF_CONDUCT.md\n[codecov]: https://codecov.io/gh/paduszyk/python-gitmoji\n[contributing-guide]: https://github.com/paduszyk/python-gitmoji/blob/main/.github/CONTRIBUTING.md\n[emoji]: https://github.com/carpedm20/emoji/\n[emoji-cheat-sheet]: https://github.com/ikatyang/emoji-cheat-sheet\n[github-emoji-api]: https://docs.github.com/en/rest/emojis\n[github-dump-gitmojis-api]: https://github.com/paduszyk/python-gitmoji/actions/workflows/dump-gitmoji-api.yml\n[github-lint-package]: https://github.com/paduszyk/python-gitmoji/actions/workflows/lint-package.yml\n[github-test-package]: https://github.com/paduszyk/python-gitmoji/actions/workflows/test-package.yml\n[gitmoji-api]: https://github.com/carloscuesta/gitmoji/tree/master/packages/gitmojis#api\n[gitmoji-repo]: https://github.com/carloscuesta/gitmoji\n[gitmoji-tools]: https://gitmoji.dev/related-tools\n[gitmoji-website]: https://gitmoji.dev\n[gitmojis-json]: https://github.com/paduszyk/python-gitmoji/blob/main/src/gitmoji/assets/gitmojis.json\n[license]: https://github.com/paduszyk/python-gitmoji/blob/main/LICENSE\n[mypy]: https://github.com/python/mypy\n[nox]: https://github.com/wntrblm/nox\n[paduszyk]: https://github.com/paduszyk\n[pep-557]: https://peps.python.org/pep-0557/\n[pre-commit.ci]: https://results.pre-commit.ci/latest/github/paduszyk/python-gitmoji/main\n[pypi]: https://pypi.org/project/python-gitmoji/\n[ruff]: https://github.com/astral-sh/ruff\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "\ud83d\ude1c A helper package to apply and manage Gitmojis in Python projects \ud83d\udc0d",
    "version": "1.0.1",
    "project_urls": {
        "Repository": "https://github.com/paduszyk/python-gitmoji"
    },
    "split_keywords": [
        "python",
        "gitmoji"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1809d146bfd772aa51bdf09a8aedea59ed6f3757d31a75f72df7dc9f5c22f75c",
                "md5": "2016fb8d639adeb648f7354030cbb07b",
                "sha256": "390686b6ee2e6d160cb3c59a96c30b922a38903ba76e905eeeea77bcc1e8ccbe"
            },
            "downloads": -1,
            "filename": "python_gitmoji-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2016fb8d639adeb648f7354030cbb07b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 16483,
            "upload_time": "2023-09-06T09:13:44",
            "upload_time_iso_8601": "2023-09-06T09:13:44.841706Z",
            "url": "https://files.pythonhosted.org/packages/18/09/d146bfd772aa51bdf09a8aedea59ed6f3757d31a75f72df7dc9f5c22f75c/python_gitmoji-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b538da6625cfd3b91f5a8751590b93ece196023c83ce9e4f21fd76f8bb6668d",
                "md5": "b10f8b3e7e09667f3e111b8f8be26143",
                "sha256": "5eea32aa51a6c227c67c3280718e2d26a4a379489185b862c7be6e282e384714"
            },
            "downloads": -1,
            "filename": "python-gitmoji-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b10f8b3e7e09667f3e111b8f8be26143",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 21884,
            "upload_time": "2023-09-06T09:13:46",
            "upload_time_iso_8601": "2023-09-06T09:13:46.420880Z",
            "url": "https://files.pythonhosted.org/packages/3b/53/8da6625cfd3b91f5a8751590b93ece196023c83ce9e4f21fd76f8bb6668d/python-gitmoji-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-06 09:13:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "paduszyk",
    "github_project": "python-gitmoji",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "lcname": "python-gitmoji"
}
        
Elapsed time: 0.12507s