mdremotifier


Namemdremotifier JSON
Version 0.3.2 PyPI version JSON
download
home_pageNone
SummaryRemotify local links in README.md.
upload_time2024-05-10 07:07:16
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Copyright (c) 2024 Azriel Fasten. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords github markdown readme documentation preprocessor documentation-tool readme-md
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--

WARNING: This file is auto-generated by snipinator. Do not edit directly.
SOURCE: `README.md.jinja2`.

-->
<!--







-->

# <div align="center">![mdremotifier][1]</div>

<div align="center">

</div>

<div align="center">

<!-- Icons from https://lucide.dev/icons/users -->
<!-- Icons from https://lucide.dev/icons/laptop-minimal -->

![**Audience:** Developers][2] ![**Platform:** Linux][3]

</div>

<p align="center">
  <strong>
    <a href="#-features">🎇Features</a>
    &nbsp;&bull;&nbsp;
    <a href="#-installation">🏠Installation</a>
    &nbsp;&bull;&nbsp;
    <a href="#-usage">🚜Usage</a>
    &nbsp;&bull;&nbsp;
    <a href="#-command-line-options">💻CLI</a>
    &nbsp;&bull;&nbsp;
    <a href="#-examples">💡Examples</a>
    &nbsp;&bull;&nbsp;
    <a href="#-requirements">✅Requirements</a>
  </strong>
</p>

<div align="center">

![Top language][4] [![GitHub License][5]][6] [![PyPI - Version][7]][8]
[![Python Version][9]][8]

**CLI to replace `./image.png` to `raw.githubusercontent.com` remote URL in
README.md**

</div>

---

<div align="center">

|                   | Status                      | Stable                    | Unstable                  |                    |
| ----------------- | --------------------------- | ------------------------- | ------------------------- | ------------------ |
| **[Master][10]**  | [![Build and Test][11]][12] | [![since tagged][13]][14] |                           | ![last commit][15] |
| **[Develop][16]** | [![Build and Test][17]][12] | [![since tagged][18]][19] | [![since tagged][20]][21] | ![last commit][22] |

</div>

<img alt="Demo" src="https://raw.githubusercontent.com/realazthat/mdremotifier/v0.3.2/.github/demo.gif" width="100%"/>

## ❔ What

What mdremotifier does:

Turn this ([./mdremotifier/examples/EXAMPLE.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.md)):

<!---->
```md
# Example markdown file

A link to a local file [LICENSE.md](./LICENSE.md).

```
<!---->

Into this
([./mdremotifier/examples/EXAMPLE.remotified.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.remotified.md)):

<!---->
```md
# Example markdown file

A link to a local file [LICENSE.md](https://raw.githubusercontent.com/realazthat/mdremotifier/master/LICENSE.md).

```
<!---->

This is useful for uploading `README.md` files to third-party sites, like the
npmjs.com registry, or pypi.org registry, because these registries will break
the local images in your README when displayed on their sites.

See <https://pypi.org/project/mdremotifier/>, notice how all of the images are
not broken.

## 🎇 Features

- 📷🔗📡🌐🖼️ Replace local URLs with raw.githubusercontent.com URLs.

## 🏠 Installation

```bash
# Install from pypi (https://pypi.org/project/mdremotifier/)
pip install mdremotifier

# Install from git (https://github.com/realazthat/mdremotifier)
pip install git+https://github.com/realazthat/mdremotifier.git@v0.3.2
```

## 🚜 Usage

Example README: ([./mdremotifier/examples/EXAMPLE.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.md)):

<!---->
```md
# Example markdown file

A link to a local file [LICENSE.md](./LICENSE.md).

```
<!---->

Generating the README:

<!---->
```bash
$ python -m mdremotifier.cli -i ./mdremotifier/examples/EXAMPLE.md --url-prefix https://raw.githubusercontent.com/realazthat/mdremotifier/master/ -o - 2>/dev/null
# Example markdown file

A link to a local file [LICENSE.md](https://raw.githubusercontent.com/realazthat/mdremotifier/master/LICENSE.md).

```
<!---->

## 💻 Command Line Options

<!---->
<img alt="Output of `python -m mdremotifier.cli --help`" src="https://raw.githubusercontent.com/realazthat/mdremotifier/v0.3.2/README.help.generated.svg"/>
<!-- -->

## 💡 Examples

- mdremotifier's own `README`:
  - Original: [./README.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/README.md).
  - Remotified: [./.github/README.remotified.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/.github/README.remotified.md).
  - Generation script: [./scripts/generate-readme.sh](https://github.com/realazthat/mdremotifier/blob/v0.3.2/scripts/generate-readme.sh).
- Example:
  - Original: [./mdremotifier/examples/EXAMPLE.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.md).
  - Remotified:
    [./mdremotifier/examples/EXAMPLE.remotified.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.remotified.md).
  - Generation script:
    [./mdremotifier/examples/example.sh](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/example.sh).

<!-- TODO: Rebuild this for mdremotifier
- Projects using mdremotifier:
  - [realazthat/snipinator](https://github.com/realazthat/snipinator), See
    [snipinator/README.md.jinja2](https://github.com/realazthat/snipinator/blob/61cb88593baa099dc375cf5fd40679e4be673fc5/README.md.jinja2).
  - [github.com/realazthat/changeguard](https://github.com/realazthat/changeguard),
    See
    [changeguard/README.md.jinja2](https://github.com/realazthat/changeguard/blob/87d5104b52e651bb9195a3d46dd7f050acbcb534/README.md.jinja2).
  - [github.com/realazthat/comfy-catapult](https://github.com/realazthat/comfy-catapult),
    See
    [comfy-catapult/README.md.jinja2](https://github.com/realazthat/comfy-catapult/blob/ff353d48b25fa7b9c35fa11b31d5f2b3039c41c8/README.md.jinja2).
  - [github.com/realazthat/comfylowda](https://github.com/realazthat/comfylowda),
    See
    [comfylowda/README.md.jinja2](https://github.com/realazthat/comfylowda/blob/e01a32c38107aa0b89ccea21c4678d193a186a78/README.md.jinja2).
  - [github.com/realazthat/excalidraw-brute-export-cli](https://github.com/realazthat/excalidraw-brute-export-cli),
    See
    [excalidraw-brute-export-cli/README.md.jinja2](https://github.com/realazthat/excalidraw-brute-export-cli/blob/54a3b5b08b644e61c721ab565c576094234c5cc7/README.md.jinja2).
-->

## ✅ Requirements

- Linux-like environment
  - Why: Uses pexpect.spawn().
- Python 3.8+
  - Why: Some dev dependencies require Python 3.8+.

### Tested Platforms

- WSL2 Ubuntu 20.04, Python `3.8.0`.
- Ubuntu 20.04, Python `3.8.0, 3.9.0, 3.10.0, 3.11.0, 3.12.0`, tested in GitHub Actions
  workflow ([build-and-test.yml](https://github.com/realazthat/mdremotifier/blob/v0.3.2/.github/workflows/build-and-test.yml)).

## 🤏 Versioning

We use SemVer for versioning. For the versions available, see the tags on this
repository.

## 🔑 License

This project is licensed under the MIT License - see the
[./LICENSE.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/LICENSE.md) file for details.

## 🙏 Thanks

Main libraries used in mdremotifier are:

- Markdown AST: [mistletoe](https://github.com/miyuchina/mistletoe).
- Colorful CLI help: [rich-argparse](https://github.com/hamdanal/rich-argparse).

## 🤝 Related Projects

Not complete, and not necessarily up to date. Make a PR
([contributions](#-contributions)) to insert/modify.

| Project                                           | Stars | Last Update  | Language | Platform | Similarity X Obviousness |
| ------------------------------------------------- | ----- | ------------ | -------- | -------- | ------------------------ |
| [bdashore3/remark-github-images][23]              | 0     | `2022/12/29` | JS       | CLI      | ⭐⭐⭐⭐⭐                    |
| [laobie/WriteMarkdownLazily][24]                  | 36    | `2024/01/06` | Python   | CLI      | ⭐⭐⭐⭐                     |
| [crh19970307/mdul][25]                            | 1     | `2020/02/01` | Python   | CLI      | ⭐⭐⭐⭐                     |
| [SkyLee424/Go-MarkDown-Image-Transfer-Helper][26] | 0     | `2024/03/25` | Go       | CLI      | ⭐⭐⭐⭐                     |
| [jen6/imgo][27]                                   | 0     | `2020/03/18` | Pyhon    | CLI      | ⭐⭐⭐⭐                     |
| [chocoluffy/lazy-markdown][28]                    | 0     | `2016/11/20` | Python   | CLI      | ⭐⭐⭐⭐                     |
| [loheagn/gopic][29]                               | 0     | `2021/11/24` | Go       | CLI      | ⭐⭐⭐⭐                     |
| [Undertone0809/imarkdown][30]                     | 57    | `2024/01/06` | Python   | Python   | ⭐⭐⭐                      |
| [ravgeetdhillon/markdown-imgur-upload][31]        | 1     | `2022/03/26` | Python   | CLI      | ⭐⭐⭐                      |

## 🫡 Contributions

### Development environment: Linux-like

- For running `pre.sh` (Linux-like environment).

  - From [./.github/dependencies.yml](https://github.com/realazthat/mdremotifier/blob/v0.3.2/.github/dependencies.yml), which is used for
    the GH Action to do a fresh install of everything:

    ```yaml
    bash: scripts.
    findutils: scripts.
    grep: tests.
    xxd: tests.
    git: scripts, tests.
    xxhash: scripts (changeguard).
    rsync: out-of-directory test.
    expect: for `unbuffer`, useful to grab and compare ansi color symbols.
    jq: dependency for [yq](https://github.com/kislyuk/yq), which is used to generate
      the README; the README generator needs to use `tomlq` (which is a part of `yq`)
      to query `pyproject.toml`.

    ```

  - Requires `pyenv`, or an exact matching version of python as in
    [.python-version](https://github.com/realazthat/mdremotifier/blob/v0.3.2/.python-version) (which is currently
    `3.8.0 `).
  - `jq`, ([installation](https://jqlang.github.io/jq/)) required for
    [yq](https://github.com/kislyuk/yq), which is itself required for our
    [./README.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/README.md) generation, which uses `tomlq` (from the
    [yq](https://github.com/kislyuk/yq) package) to include version strings from
    [./pyproject.toml](https://github.com/realazthat/mdremotifier/blob/v0.3.2/pyproject.toml).
  - act (to run the GH Action locally):
    - Requires nodejs.
    - Requires Go.
    - docker.
  - Generate animation:
    - docker

### Commit Process

1. (Optionally) Fork the `develop` branch.
2. Stage your files: `git add path/to/file.py`.
3. `bash ./scripts/pre.sh`, this will format, lint, and test the code.
4. `git status` check if anything changed (generated
   [./README.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/README.md) for example), if so, `git add` the
   changes, and go back to the previous step.
5. `git commit -m "..."`.
6. Make a PR to `develop` (or push to develop if you have the rights).

## 🔄🚀 Release Process

These instructions are for maintainers of the project.

1. In the `develop` branch, run `bash ./scripts/pre.sh` to ensure
   everything is in order.
2. In the `develop` branch, bump the version in
   [./pyproject.toml](https://github.com/realazthat/mdremotifier/blob/v0.3.2/pyproject.toml), following semantic versioning
   principles. Also modify the `last_unstable_release` and `last_stable_release`
   in the `[tool.mdremotifier-project-metadata]` table as appropriate. Run
   `bash ./scripts/pre.sh` to ensure everything is in order.
3. In the `develop` branch, commit these changes with a message like
   `"Prepare release X.Y.Z"`. (See the contributions section
   [above](#commit-process)).
4. Merge the `develop` branch into the `master` branch:
   `git checkout master && git merge develop --no-ff`.
5. `master` branch: Tag the release: Create a git tag for the release with
   `git tag -a vX.Y.Z -m "Version X.Y.Z"`.
6. Publish to PyPI: Publish the release to PyPI with
   `bash ./scripts/deploy-to-pypi.sh`.
7. Push to GitHub: Push the commit and tags to GitHub with
   `git push && git push --tags`.
8. The `--no-ff` option adds a commit to the master branch for the merge, so
   refork the develop branch from the master branch:
   `git checkout develop && git merge master`.
9. Push the develop branch to GitHub: `git push origin develop`.

[1]: https://raw.githubusercontent.com/realazthat/mdremotifier/v0.3.2/.github/logo-exported.svg
[2]: https://img.shields.io/badge/Audience-Developers-0A1E1E?style=plastic&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXVzZXJzIj48cGF0aCBkPSJNMTYgMjF2LTJhNCA0IDAgMCAwLTQtNEg2YTQgNCAwIDAgMC00IDR2MiIvPjxjaXJjbGUgY3g9IjkiIGN5PSI3IiByPSI0Ii8+PHBhdGggZD0iTTIyIDIxdi0yYTQgNCAwIDAgMC0zLTMuODciLz48cGF0aCBkPSJNMTYgMy4xM2E0IDQgMCAwIDEgMCA3Ljc1Ii8+PC9zdmc+
[3]: https://img.shields.io/badge/Platform-Linux-0A1E1E?style=plastic&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxhcHRvcC1taW5pbWFsIj48cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTIiIHg9IjMiIHk9IjQiIHJ4PSIyIiByeT0iMiIvPjxsaW5lIHgxPSIyIiB4Mj0iMjIiIHkxPSIyMCIgeTI9IjIwIi8+PC9zdmc+
[4]: https://img.shields.io/github/languages/top/realazthat/mdremotifier.svg?&cacheSeconds=28800&style=plastic&color=0A1E1E
[5]: https://img.shields.io/github/license/realazthat/mdremotifier?style=plastic&color=0A1E1E
[6]: https://github.com/realazthat/mdremotifier/blob/v0.3.2/LICENSE.md
[7]: https://img.shields.io/pypi/v/mdremotifier?style=plastic&color=0A1E1E
[8]: https://pypi.org/project/mdremotifier/
[9]: https://img.shields.io/pypi/pyversions/mdremotifier?style=plastic&color=0A1E1E
[10]: https://github.com/realazthat/mdremotifier/tree/master
[11]: https://img.shields.io/github/actions/workflow/status/realazthat/mdremotifier/build-and-test.yml?branch=master&style=plastic
[12]: https://github.com/realazthat/mdremotifier/actions/workflows/build-and-test.yml
[13]: https://img.shields.io/github/commits-since/realazthat/mdremotifier/v0.3.2/master?style=plastic
[14]: https://github.com/realazthat/mdremotifier/compare/v0.3.2...master
[15]: https://img.shields.io/github/last-commit/realazthat/mdremotifier/master?style=plastic
[16]: https://github.com/realazthat/mdremotifier/tree/develop
[17]: https://img.shields.io/github/actions/workflow/status/realazthat/mdremotifier/build-and-test.yml?branch=develop&style=plastic
[18]: https://img.shields.io/github/commits-since/realazthat/mdremotifier/v0.3.2/develop?style=plastic
[19]: https://github.com/realazthat/mdremotifier/compare/v0.3.2...develop
[20]: https://img.shields.io/github/commits-since/realazthat/mdremotifier/v0.3.2/develop?style=plastic
[21]: https://github.com/realazthat/mdremotifier/compare/v0.3.2...develop
[22]: https://img.shields.io/github/last-commit/realazthat/mdremotifier/develop?style=plastic
[23]: https://github.com/bdashore3/remark-github-images "Documentation is non-existent, but code looks very similar to mdremotifier"
[24]: https://github.com/laobie/WriteMarkdownLazily "Uploads to cloud."
[25]: https://github.com/crh19970307/mdul "Uploads to sm.ms"
[26]: https://github.com/SkyLee424/Go-MarkDown-Image-Transfer-Helper "Upload to Qiniu Cloud"
[27]: https://github.com/jen6/imgo "Upload to Google Drive"
[28]: https://github.com/chocoluffy/lazy-markdown "Uploads to LeanCloud, readme is a bit unclear"
[29]: https://github.com/loheagn/gopic "Upload to cloud, not clear which cloud"
[30]: https://github.com/Undertone0809/imarkdown "Doesn't yet have a CLI."
[31]: https://github.com/ravgeetdhillon/markdown-imgur-upload "Upload to imgur, a bit annoying because it requires you to put the images into a particular directory"

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mdremotifier",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "github, markdown, readme, documentation, preprocessor, documentation-tool, readme-md",
    "author": null,
    "author_email": "AYF <realazthat@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a7/db/d8b737bcf82db0692dd49555507dfa8638cad43e8dfce08f18572b6c1ba2/mdremotifier-0.3.2.tar.gz",
    "platform": null,
    "description": "<!--\n\nWARNING: This file is auto-generated by snipinator. Do not edit directly.\nSOURCE: `README.md.jinja2`.\n\n-->\n<!--\n\n\n\n\n\n\n\n-->\n\n# <div align=\"center\">![mdremotifier][1]</div>\n\n<div align=\"center\">\n\n</div>\n\n<div align=\"center\">\n\n<!-- Icons from https://lucide.dev/icons/users -->\n<!-- Icons from https://lucide.dev/icons/laptop-minimal -->\n\n![**Audience:** Developers][2] ![**Platform:** Linux][3]\n\n</div>\n\n<p align=\"center\">\n  <strong>\n    <a href=\"#-features\">\ud83c\udf87Features</a>\n    &nbsp;&bull;&nbsp;\n    <a href=\"#-installation\">\ud83c\udfe0Installation</a>\n    &nbsp;&bull;&nbsp;\n    <a href=\"#-usage\">\ud83d\ude9cUsage</a>\n    &nbsp;&bull;&nbsp;\n    <a href=\"#-command-line-options\">\ud83d\udcbbCLI</a>\n    &nbsp;&bull;&nbsp;\n    <a href=\"#-examples\">\ud83d\udca1Examples</a>\n    &nbsp;&bull;&nbsp;\n    <a href=\"#-requirements\">\u2705Requirements</a>\n  </strong>\n</p>\n\n<div align=\"center\">\n\n![Top language][4] [![GitHub License][5]][6] [![PyPI - Version][7]][8]\n[![Python Version][9]][8]\n\n**CLI to replace `./image.png` to `raw.githubusercontent.com` remote URL in\nREADME.md**\n\n</div>\n\n---\n\n<div align=\"center\">\n\n|                   | Status                      | Stable                    | Unstable                  |                    |\n| ----------------- | --------------------------- | ------------------------- | ------------------------- | ------------------ |\n| **[Master][10]**  | [![Build and Test][11]][12] | [![since tagged][13]][14] |                           | ![last commit][15] |\n| **[Develop][16]** | [![Build and Test][17]][12] | [![since tagged][18]][19] | [![since tagged][20]][21] | ![last commit][22] |\n\n</div>\n\n<img alt=\"Demo\" src=\"https://raw.githubusercontent.com/realazthat/mdremotifier/v0.3.2/.github/demo.gif\" width=\"100%\"/>\n\n## \u2754 What\n\nWhat mdremotifier does:\n\nTurn this ([./mdremotifier/examples/EXAMPLE.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.md)):\n\n<!---->\n```md\n# Example markdown file\n\nA link to a local file [LICENSE.md](./LICENSE.md).\n\n```\n<!---->\n\nInto this\n([./mdremotifier/examples/EXAMPLE.remotified.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.remotified.md)):\n\n<!---->\n```md\n# Example markdown file\n\nA link to a local file [LICENSE.md](https://raw.githubusercontent.com/realazthat/mdremotifier/master/LICENSE.md).\n\n```\n<!---->\n\nThis is useful for uploading `README.md` files to third-party sites, like the\nnpmjs.com registry, or pypi.org registry, because these registries will break\nthe local images in your README when displayed on their sites.\n\nSee <https://pypi.org/project/mdremotifier/>, notice how all of the images are\nnot broken.\n\n## \ud83c\udf87 Features\n\n- \ud83d\udcf7\ud83d\udd17\ud83d\udce1\ud83c\udf10\ud83d\uddbc\ufe0f Replace local URLs with raw.githubusercontent.com URLs.\n\n## \ud83c\udfe0 Installation\n\n```bash\n# Install from pypi (https://pypi.org/project/mdremotifier/)\npip install mdremotifier\n\n# Install from git (https://github.com/realazthat/mdremotifier)\npip install git+https://github.com/realazthat/mdremotifier.git@v0.3.2\n```\n\n## \ud83d\ude9c Usage\n\nExample README: ([./mdremotifier/examples/EXAMPLE.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.md)):\n\n<!---->\n```md\n# Example markdown file\n\nA link to a local file [LICENSE.md](./LICENSE.md).\n\n```\n<!---->\n\nGenerating the README:\n\n<!---->\n```bash\n$ python -m mdremotifier.cli -i ./mdremotifier/examples/EXAMPLE.md --url-prefix https://raw.githubusercontent.com/realazthat/mdremotifier/master/ -o - 2>/dev/null\n# Example markdown file\n\nA link to a local file [LICENSE.md](https://raw.githubusercontent.com/realazthat/mdremotifier/master/LICENSE.md).\n\n```\n<!---->\n\n## \ud83d\udcbb Command Line Options\n\n<!---->\n<img alt=\"Output of `python -m mdremotifier.cli --help`\" src=\"https://raw.githubusercontent.com/realazthat/mdremotifier/v0.3.2/README.help.generated.svg\"/>\n<!-- -->\n\n## \ud83d\udca1 Examples\n\n- mdremotifier's own `README`:\n  - Original: [./README.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/README.md).\n  - Remotified: [./.github/README.remotified.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/.github/README.remotified.md).\n  - Generation script: [./scripts/generate-readme.sh](https://github.com/realazthat/mdremotifier/blob/v0.3.2/scripts/generate-readme.sh).\n- Example:\n  - Original: [./mdremotifier/examples/EXAMPLE.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.md).\n  - Remotified:\n    [./mdremotifier/examples/EXAMPLE.remotified.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/EXAMPLE.remotified.md).\n  - Generation script:\n    [./mdremotifier/examples/example.sh](https://github.com/realazthat/mdremotifier/blob/v0.3.2/mdremotifier/examples/example.sh).\n\n<!-- TODO: Rebuild this for mdremotifier\n- Projects using mdremotifier:\n  - [realazthat/snipinator](https://github.com/realazthat/snipinator), See\n    [snipinator/README.md.jinja2](https://github.com/realazthat/snipinator/blob/61cb88593baa099dc375cf5fd40679e4be673fc5/README.md.jinja2).\n  - [github.com/realazthat/changeguard](https://github.com/realazthat/changeguard),\n    See\n    [changeguard/README.md.jinja2](https://github.com/realazthat/changeguard/blob/87d5104b52e651bb9195a3d46dd7f050acbcb534/README.md.jinja2).\n  - [github.com/realazthat/comfy-catapult](https://github.com/realazthat/comfy-catapult),\n    See\n    [comfy-catapult/README.md.jinja2](https://github.com/realazthat/comfy-catapult/blob/ff353d48b25fa7b9c35fa11b31d5f2b3039c41c8/README.md.jinja2).\n  - [github.com/realazthat/comfylowda](https://github.com/realazthat/comfylowda),\n    See\n    [comfylowda/README.md.jinja2](https://github.com/realazthat/comfylowda/blob/e01a32c38107aa0b89ccea21c4678d193a186a78/README.md.jinja2).\n  - [github.com/realazthat/excalidraw-brute-export-cli](https://github.com/realazthat/excalidraw-brute-export-cli),\n    See\n    [excalidraw-brute-export-cli/README.md.jinja2](https://github.com/realazthat/excalidraw-brute-export-cli/blob/54a3b5b08b644e61c721ab565c576094234c5cc7/README.md.jinja2).\n-->\n\n## \u2705 Requirements\n\n- Linux-like environment\n  - Why: Uses pexpect.spawn().\n- Python 3.8+\n  - Why: Some dev dependencies require Python 3.8+.\n\n### Tested Platforms\n\n- WSL2 Ubuntu 20.04, Python `3.8.0`.\n- Ubuntu 20.04, Python `3.8.0, 3.9.0, 3.10.0, 3.11.0, 3.12.0`, tested in GitHub Actions\n  workflow ([build-and-test.yml](https://github.com/realazthat/mdremotifier/blob/v0.3.2/.github/workflows/build-and-test.yml)).\n\n## \ud83e\udd0f Versioning\n\nWe use SemVer for versioning. For the versions available, see the tags on this\nrepository.\n\n## \ud83d\udd11 License\n\nThis project is licensed under the MIT License - see the\n[./LICENSE.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/LICENSE.md) file for details.\n\n## \ud83d\ude4f Thanks\n\nMain libraries used in mdremotifier are:\n\n- Markdown AST: [mistletoe](https://github.com/miyuchina/mistletoe).\n- Colorful CLI help: [rich-argparse](https://github.com/hamdanal/rich-argparse).\n\n## \ud83e\udd1d Related Projects\n\nNot complete, and not necessarily up to date. Make a PR\n([contributions](#-contributions)) to insert/modify.\n\n| Project                                           | Stars | Last Update  | Language | Platform | Similarity X Obviousness |\n| ------------------------------------------------- | ----- | ------------ | -------- | -------- | ------------------------ |\n| [bdashore3/remark-github-images][23]              | 0     | `2022/12/29` | JS       | CLI      | \u2b50\u2b50\u2b50\u2b50\u2b50                    |\n| [laobie/WriteMarkdownLazily][24]                  | 36    | `2024/01/06` | Python   | CLI      | \u2b50\u2b50\u2b50\u2b50                     |\n| [crh19970307/mdul][25]                            | 1     | `2020/02/01` | Python   | CLI      | \u2b50\u2b50\u2b50\u2b50                     |\n| [SkyLee424/Go-MarkDown-Image-Transfer-Helper][26] | 0     | `2024/03/25` | Go       | CLI      | \u2b50\u2b50\u2b50\u2b50                     |\n| [jen6/imgo][27]                                   | 0     | `2020/03/18` | Pyhon    | CLI      | \u2b50\u2b50\u2b50\u2b50                     |\n| [chocoluffy/lazy-markdown][28]                    | 0     | `2016/11/20` | Python   | CLI      | \u2b50\u2b50\u2b50\u2b50                     |\n| [loheagn/gopic][29]                               | 0     | `2021/11/24` | Go       | CLI      | \u2b50\u2b50\u2b50\u2b50                     |\n| [Undertone0809/imarkdown][30]                     | 57    | `2024/01/06` | Python   | Python   | \u2b50\u2b50\u2b50                      |\n| [ravgeetdhillon/markdown-imgur-upload][31]        | 1     | `2022/03/26` | Python   | CLI      | \u2b50\u2b50\u2b50                      |\n\n## \ud83e\udee1 Contributions\n\n### Development environment: Linux-like\n\n- For running `pre.sh` (Linux-like environment).\n\n  - From [./.github/dependencies.yml](https://github.com/realazthat/mdremotifier/blob/v0.3.2/.github/dependencies.yml), which is used for\n    the GH Action to do a fresh install of everything:\n\n    ```yaml\n    bash: scripts.\n    findutils: scripts.\n    grep: tests.\n    xxd: tests.\n    git: scripts, tests.\n    xxhash: scripts (changeguard).\n    rsync: out-of-directory test.\n    expect: for `unbuffer`, useful to grab and compare ansi color symbols.\n    jq: dependency for [yq](https://github.com/kislyuk/yq), which is used to generate\n      the README; the README generator needs to use `tomlq` (which is a part of `yq`)\n      to query `pyproject.toml`.\n\n    ```\n\n  - Requires `pyenv`, or an exact matching version of python as in\n    [.python-version](https://github.com/realazthat/mdremotifier/blob/v0.3.2/.python-version) (which is currently\n    `3.8.0 `).\n  - `jq`, ([installation](https://jqlang.github.io/jq/)) required for\n    [yq](https://github.com/kislyuk/yq), which is itself required for our\n    [./README.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/README.md) generation, which uses `tomlq` (from the\n    [yq](https://github.com/kislyuk/yq) package) to include version strings from\n    [./pyproject.toml](https://github.com/realazthat/mdremotifier/blob/v0.3.2/pyproject.toml).\n  - act (to run the GH Action locally):\n    - Requires nodejs.\n    - Requires Go.\n    - docker.\n  - Generate animation:\n    - docker\n\n### Commit Process\n\n1. (Optionally) Fork the `develop` branch.\n2. Stage your files: `git add path/to/file.py`.\n3. `bash ./scripts/pre.sh`, this will format, lint, and test the code.\n4. `git status` check if anything changed (generated\n   [./README.md](https://github.com/realazthat/mdremotifier/blob/v0.3.2/README.md) for example), if so, `git add` the\n   changes, and go back to the previous step.\n5. `git commit -m \"...\"`.\n6. Make a PR to `develop` (or push to develop if you have the rights).\n\n## \ud83d\udd04\ud83d\ude80 Release Process\n\nThese instructions are for maintainers of the project.\n\n1. In the `develop` branch, run `bash ./scripts/pre.sh` to ensure\n   everything is in order.\n2. In the `develop` branch, bump the version in\n   [./pyproject.toml](https://github.com/realazthat/mdremotifier/blob/v0.3.2/pyproject.toml), following semantic versioning\n   principles. Also modify the `last_unstable_release` and `last_stable_release`\n   in the `[tool.mdremotifier-project-metadata]` table as appropriate. Run\n   `bash ./scripts/pre.sh` to ensure everything is in order.\n3. In the `develop` branch, commit these changes with a message like\n   `\"Prepare release X.Y.Z\"`. (See the contributions section\n   [above](#commit-process)).\n4. Merge the `develop` branch into the `master` branch:\n   `git checkout master && git merge develop --no-ff`.\n5. `master` branch: Tag the release: Create a git tag for the release with\n   `git tag -a vX.Y.Z -m \"Version X.Y.Z\"`.\n6. Publish to PyPI: Publish the release to PyPI with\n   `bash ./scripts/deploy-to-pypi.sh`.\n7. Push to GitHub: Push the commit and tags to GitHub with\n   `git push && git push --tags`.\n8. The `--no-ff` option adds a commit to the master branch for the merge, so\n   refork the develop branch from the master branch:\n   `git checkout develop && git merge master`.\n9. Push the develop branch to GitHub: `git push origin develop`.\n\n[1]: https://raw.githubusercontent.com/realazthat/mdremotifier/v0.3.2/.github/logo-exported.svg\n[2]: https://img.shields.io/badge/Audience-Developers-0A1E1E?style=plastic&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXVzZXJzIj48cGF0aCBkPSJNMTYgMjF2LTJhNCA0IDAgMCAwLTQtNEg2YTQgNCAwIDAgMC00IDR2MiIvPjxjaXJjbGUgY3g9IjkiIGN5PSI3IiByPSI0Ii8+PHBhdGggZD0iTTIyIDIxdi0yYTQgNCAwIDAgMC0zLTMuODciLz48cGF0aCBkPSJNMTYgMy4xM2E0IDQgMCAwIDEgMCA3Ljc1Ii8+PC9zdmc+\n[3]: https://img.shields.io/badge/Platform-Linux-0A1E1E?style=plastic&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxhcHRvcC1taW5pbWFsIj48cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTIiIHg9IjMiIHk9IjQiIHJ4PSIyIiByeT0iMiIvPjxsaW5lIHgxPSIyIiB4Mj0iMjIiIHkxPSIyMCIgeTI9IjIwIi8+PC9zdmc+\n[4]: https://img.shields.io/github/languages/top/realazthat/mdremotifier.svg?&cacheSeconds=28800&style=plastic&color=0A1E1E\n[5]: https://img.shields.io/github/license/realazthat/mdremotifier?style=plastic&color=0A1E1E\n[6]: https://github.com/realazthat/mdremotifier/blob/v0.3.2/LICENSE.md\n[7]: https://img.shields.io/pypi/v/mdremotifier?style=plastic&color=0A1E1E\n[8]: https://pypi.org/project/mdremotifier/\n[9]: https://img.shields.io/pypi/pyversions/mdremotifier?style=plastic&color=0A1E1E\n[10]: https://github.com/realazthat/mdremotifier/tree/master\n[11]: https://img.shields.io/github/actions/workflow/status/realazthat/mdremotifier/build-and-test.yml?branch=master&style=plastic\n[12]: https://github.com/realazthat/mdremotifier/actions/workflows/build-and-test.yml\n[13]: https://img.shields.io/github/commits-since/realazthat/mdremotifier/v0.3.2/master?style=plastic\n[14]: https://github.com/realazthat/mdremotifier/compare/v0.3.2...master\n[15]: https://img.shields.io/github/last-commit/realazthat/mdremotifier/master?style=plastic\n[16]: https://github.com/realazthat/mdremotifier/tree/develop\n[17]: https://img.shields.io/github/actions/workflow/status/realazthat/mdremotifier/build-and-test.yml?branch=develop&style=plastic\n[18]: https://img.shields.io/github/commits-since/realazthat/mdremotifier/v0.3.2/develop?style=plastic\n[19]: https://github.com/realazthat/mdremotifier/compare/v0.3.2...develop\n[20]: https://img.shields.io/github/commits-since/realazthat/mdremotifier/v0.3.2/develop?style=plastic\n[21]: https://github.com/realazthat/mdremotifier/compare/v0.3.2...develop\n[22]: https://img.shields.io/github/last-commit/realazthat/mdremotifier/develop?style=plastic\n[23]: https://github.com/bdashore3/remark-github-images \"Documentation is non-existent, but code looks very similar to mdremotifier\"\n[24]: https://github.com/laobie/WriteMarkdownLazily \"Uploads to cloud.\"\n[25]: https://github.com/crh19970307/mdul \"Uploads to sm.ms\"\n[26]: https://github.com/SkyLee424/Go-MarkDown-Image-Transfer-Helper \"Upload to Qiniu Cloud\"\n[27]: https://github.com/jen6/imgo \"Upload to Google Drive\"\n[28]: https://github.com/chocoluffy/lazy-markdown \"Uploads to LeanCloud, readme is a bit unclear\"\n[29]: https://github.com/loheagn/gopic \"Upload to cloud, not clear which cloud\"\n[30]: https://github.com/Undertone0809/imarkdown \"Doesn't yet have a CLI.\"\n[31]: https://github.com/ravgeetdhillon/markdown-imgur-upload \"Upload to imgur, a bit annoying because it requires you to put the images into a particular directory\"\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Azriel Fasten.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Remotify local links in README.md.",
    "version": "0.3.2",
    "project_urls": {
        "Documentation": "https://github.com/realazthat/mdremotifier",
        "Homepage": "https://github.com/realazthat/mdremotifier",
        "Repository": "https://github.com/realazthat/mdremotifier"
    },
    "split_keywords": [
        "github",
        " markdown",
        " readme",
        " documentation",
        " preprocessor",
        " documentation-tool",
        " readme-md"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4213d344b46eb8f23163da365cfacfa2dcd647623e5ce577ecd3192360f38190",
                "md5": "c4485769528f8e3a67f3f4b33f40e9a5",
                "sha256": "28da7c63d2a22cd299955a6f94e1a6aaf28b210128880a420e7a7c0d7947e858"
            },
            "downloads": -1,
            "filename": "mdremotifier-0.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c4485769528f8e3a67f3f4b33f40e9a5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 12570,
            "upload_time": "2024-05-10T07:07:14",
            "upload_time_iso_8601": "2024-05-10T07:07:14.185664Z",
            "url": "https://files.pythonhosted.org/packages/42/13/d344b46eb8f23163da365cfacfa2dcd647623e5ce577ecd3192360f38190/mdremotifier-0.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a7dbd8b737bcf82db0692dd49555507dfa8638cad43e8dfce08f18572b6c1ba2",
                "md5": "509749069c347aafd4cdf68e5f006bbf",
                "sha256": "75c6d537318e7c8690d8a40a183b57bad0590df87ddfa763850c3e001e412ca0"
            },
            "downloads": -1,
            "filename": "mdremotifier-0.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "509749069c347aafd4cdf68e5f006bbf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 19677,
            "upload_time": "2024-05-10T07:07:16",
            "upload_time_iso_8601": "2024-05-10T07:07:16.067363Z",
            "url": "https://files.pythonhosted.org/packages/a7/db/d8b737bcf82db0692dd49555507dfa8638cad43e8dfce08f18572b6c1ba2/mdremotifier-0.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-10 07:07:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "realazthat",
    "github_project": "mdremotifier",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mdremotifier"
}
        
Elapsed time: 0.46461s