jour


Namejour JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttps://github.com/bglezseoane/jour
SummaryAn utility for a high-level machine maintenance journal
upload_time2024-03-17 11:16:16
maintainer
docs_urlNone
authorBorja González Seoane
requires_python>=3.11,<4.0
licenseLICENSE
keywords configuration journal journaling machine-administration machine-maintenance markdown
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Jour

This repository contains the Jour tool, an utility for a high-level machine maintenance journal. The final purpose of this tool is to write and handle a journal in which the user or some automated process can write and tag the performed actions related with the machine configuration, maintenance, and other relevant information. This way, the user can keep track of the changes and the performed actions, and also can obtain a high-level overview of the machine status over time.

Some examples of the usage of this tool could be:

1. Write a journal to keep track of an operating system update you just ran:

```sh
jw -w 'OS update to 24.5.2'
```

Output:

```
0014. 2024-03-16 17:04:50,123 - test_username - OS update to 24.5.2.
```

2. Write a journal entry about a backup of the machine. Use a tag.

```sh
jw -w 'General system backup' && w -t BUP
```

Output:

```
0015. 2024-03-16 17:06:08,630 - test_username - General system backup. #BUP1
```

You could then use this same tag `BUP1` to also tag a commit in a Git repository with your machine config. This way your journal and your machine config are paired.

### The journal file

Basically, each new journal entry is a new line in the journal file, with an index and a date. The index is useful to cross-reference the journal entries. The entries are appended to the journal file sequentially. The journal file location is defined in the environment variable `$JOURNAL` (or, by default in `~/.journal.md`). If the tool cannot reach the file, the incoming entries are stored in an emergency journal file, which location is `$JOURNAL_EMERGENCY`, if defined, or `~/.journal_emergency.md`, otherwise. This is useful if, for example, the journal file is located in a remote file system or cloud provider and the connection is lost. The user can then manually arrange the journal entries merging the emergency journal.

In addition to the entries, the tool also handle tags, like `#backup1`, to an easier navigation of the journal file. This is specially useful to link the journal entries with tags in a configuration Git repository, for example, because a journal tag can be also set in the repo.

Journal format is Markdown, so the user can also export all the history to a more readable format, like a PDF, using a Markdown to PDF converter.

After some time, the user can obtain with Jour a high-level traceability of the machine changes and fixes, helping even to debug some issues or roll back to a previous state.

## Installation

### Homebrew

First add Jour author's public [tap](https://github.com/bglezseoane/homebrew-tap):

```sh
brew tap bglezseoane/tap
```

Then install Jour with:

```sh
brew install jour
```

### PyPI

This tool is [publicly available in PyPI](https://pypi.org/project/jour), so you could use any method that consumes this registry to install it (like `pip`). As a recommendation, you could use PipX:

```
pipx install jour

# Or...
pip install jour
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bglezseoane/jour",
    "name": "jour",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11,<4.0",
    "maintainer_email": "",
    "keywords": "configuration,journal,journaling,machine-administration,machine-maintenance,markdown",
    "author": "Borja Gonz\u00e1lez Seoane",
    "author_email": "borja@glezseoane.es",
    "download_url": "https://files.pythonhosted.org/packages/7b/47/25a82f8b56ded21210e413917f1765cd0606533a04f91cfa42c6d5c0d0ae/jour-2.0.1.tar.gz",
    "platform": null,
    "description": "# Jour\n\nThis repository contains the Jour tool, an utility for a high-level machine maintenance journal. The final purpose of this tool is to write and handle a journal in which the user or some automated process can write and tag the performed actions related with the machine configuration, maintenance, and other relevant information. This way, the user can keep track of the changes and the performed actions, and also can obtain a high-level overview of the machine status over time.\n\nSome examples of the usage of this tool could be:\n\n1. Write a journal to keep track of an operating system update you just ran:\n\n```sh\njw -w 'OS update to 24.5.2'\n```\n\nOutput:\n\n```\n0014. 2024-03-16 17:04:50,123 - test_username - OS update to 24.5.2.\n```\n\n2. Write a journal entry about a backup of the machine. Use a tag.\n\n```sh\njw -w 'General system backup' && w -t BUP\n```\n\nOutput:\n\n```\n0015. 2024-03-16 17:06:08,630 - test_username - General system backup. #BUP1\n```\n\nYou could then use this same tag `BUP1` to also tag a commit in a Git repository with your machine config. This way your journal and your machine config are paired.\n\n### The journal file\n\nBasically, each new journal entry is a new line in the journal file, with an index and a date. The index is useful to cross-reference the journal entries. The entries are appended to the journal file sequentially. The journal file location is defined in the environment variable `$JOURNAL` (or, by default in `~/.journal.md`). If the tool cannot reach the file, the incoming entries are stored in an emergency journal file, which location is `$JOURNAL_EMERGENCY`, if defined, or `~/.journal_emergency.md`, otherwise. This is useful if, for example, the journal file is located in a remote file system or cloud provider and the connection is lost. The user can then manually arrange the journal entries merging the emergency journal.\n\nIn addition to the entries, the tool also handle tags, like `#backup1`, to an easier navigation of the journal file. This is specially useful to link the journal entries with tags in a configuration Git repository, for example, because a journal tag can be also set in the repo.\n\nJournal format is Markdown, so the user can also export all the history to a more readable format, like a PDF, using a Markdown to PDF converter.\n\nAfter some time, the user can obtain with Jour a high-level traceability of the machine changes and fixes, helping even to debug some issues or roll back to a previous state.\n\n## Installation\n\n### Homebrew\n\nFirst add Jour author's public [tap](https://github.com/bglezseoane/homebrew-tap):\n\n```sh\nbrew tap bglezseoane/tap\n```\n\nThen install Jour with:\n\n```sh\nbrew install jour\n```\n\n### PyPI\n\nThis tool is [publicly available in PyPI](https://pypi.org/project/jour), so you could use any method that consumes this registry to install it (like `pip`). As a recommendation, you could use PipX:\n\n```\npipx install jour\n\n# Or...\npip install jour\n```\n",
    "bugtrack_url": null,
    "license": "LICENSE",
    "summary": "An utility for a high-level machine maintenance journal",
    "version": "2.0.1",
    "project_urls": {
        "Homepage": "https://github.com/bglezseoane/jour",
        "Repository": "https://github.com/bglezseoane/jour"
    },
    "split_keywords": [
        "configuration",
        "journal",
        "journaling",
        "machine-administration",
        "machine-maintenance",
        "markdown"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9c69d9662ae40e63540b06c82148146cf67716fea3b5b1c79d7a09d06f008eb5",
                "md5": "1d9e53ed45e917d722723e4e8e69275f",
                "sha256": "5624f8f77aa9a15d318ac5f4919110b4f46fa2769843a2ef741b8624b9626968"
            },
            "downloads": -1,
            "filename": "jour-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1d9e53ed45e917d722723e4e8e69275f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11,<4.0",
            "size": 19974,
            "upload_time": "2024-03-17T11:16:14",
            "upload_time_iso_8601": "2024-03-17T11:16:14.895885Z",
            "url": "https://files.pythonhosted.org/packages/9c/69/d9662ae40e63540b06c82148146cf67716fea3b5b1c79d7a09d06f008eb5/jour-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b4725a82f8b56ded21210e413917f1765cd0606533a04f91cfa42c6d5c0d0ae",
                "md5": "ded9d1383fe64489f558ca642af4a872",
                "sha256": "d547948edbf3e1d8be3d9655b972916f9bcecb9e41f9567ff60ab627602caae0"
            },
            "downloads": -1,
            "filename": "jour-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ded9d1383fe64489f558ca642af4a872",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11,<4.0",
            "size": 19200,
            "upload_time": "2024-03-17T11:16:16",
            "upload_time_iso_8601": "2024-03-17T11:16:16.660771Z",
            "url": "https://files.pythonhosted.org/packages/7b/47/25a82f8b56ded21210e413917f1765cd0606533a04f91cfa42c6d5c0d0ae/jour-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-17 11:16:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bglezseoane",
    "github_project": "jour",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "jour"
}
        
Elapsed time: 0.21064s