nextcloud-version-checker


Namenextcloud-version-checker JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummarySimple tool for checking a bunch of Nextcloud servers, whether their Nextcloud version is supported and up2date.
upload_time2025-02-09 13:10:38
maintainerNone
docs_urlNone
authorNone
requires_python>=3.13
licenseCopyright (c) 2025 wh0ami 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 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 automation nextcloud patchmanagement
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Nextcloud Version Checker

This is a tiny and simple tool for checking a bunch of nextcloud servers, 
whether their Nextcloud version is supported and up2date.

## Usage

### Installation

This project is published on
[PyPI](https://pypi.org/project/nextcloud-version-checker/), so you just want
to install it via pipx or pip. Please note, that pipx is the recommended way.

```commandline
$ pipx install nextcloud-version-checker
 
OR

$ pip install nextcloud-version-checker
```

### How to use

You can call the tool via `nvc` or `nextcloud-version-checker`.

It assumes, that there's an existing input file called `input.json` in your
current directory. If you want to specify a custom input file, just call it
like e.g. `nextcloud-version-checker --server-file myservers.json` or shorter
`nvc -s myservers.json`.

An example input file is located under
`nextcloud_version_checker/misc/input.example.json`.

## How it works

Information about the current latest versions will be fetched from the official
API, which is also fetched by the built-in version check.
([Code Reference on ShitHub](https://github.com/nextcloud/server/blob/master/lib/private/Updater/VersionCheck.php))

The script will throw the list of strings from your input file into a
multiprocessing pool which will fetch, parse and display the update information
in a table at the end.

## Example output

```
user@pc:~/Workspace nextcloud-version-checker
2025-02-09 13:58:39.375 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://stable.example.org'...
2025-02-09 13:58:39.375 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://nightly.example.org'...
2025-02-09 13:58:39.375 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://enterprise.example.org'...
2025-02-09 13:58:39.375 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://eol.example.org'...
2025-02-09 13:58:39.570 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://outdated.example.org'...
2025-02-09 13:58:39.707 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://subpath.example.org/nextcloud'...
2025-02-09 13:58:39.754 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://offline.example.org'...
2025-02-09 13:58:39.754 | ERROR    | nextcloud_version_checker.utils.check:check:50 - Error while fetching the current version of 'https://offline.example.org':
2025-02-09 13:58:39.754 | ERROR    | nextcloud_version_checker.utils.check:check:51 - -> <urlopen error [Errno 111] Connection refused>
2025-02-09 13:58:40.609 | INFO     | nextcloud_version_checker.main:main:30 - +++ Nextcloud Version Overview +++
Instance                                     Release    Type        Extended Support    Supported    Up-to-date    Available release
-------------------------------------------  ---------  ----------  ------------------  -----------  ------------  -------------------
stable.example.org                           30.0.5.1   Stable      No                  ✓            ✓             -
nightly.example.org                          30.0.6.0   Beta        No                  ✓            ✖             31.0.0.14
enterprise.example.org                       29.0.11.3  Enterprise  No                  ✓            ✓             -
eol.example.org                              15.0.0.10  Stable      No                  ✖            ✖             15.0.14.1
outdated.example.org                         30.0.0.14  Stable      No                  ✓            ✖             30.0.5.1
subpath.example.org/nextcloud                30.0.5.1   Stable      No                  ✓            ✓             -
offline.example.org                          Error      ?           ?                   ?            ?             ?

user@pc:~/Workspace$ 
```

## Development

This is an uv project. You can set up your development environment by cloning
this Repository via `git` and running a `uv sync` in the project
directory afterward.

The Lockfile can be updated by using `uv lock` (also updates the installed
packages in the dependency tree).

The project can be bundled by running `uv build` and published by running
`uv publish`. Results can be found in the `dist/` directory.

For code linting and formatting, `ruff` was used. You may run it via
`uv run ruff check` or `uv run ruff format`.

This project is using [Semantic Versioning](https://semver.org/) and
[Conventional Commits](https://www.conventionalcommits.org/en/).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nextcloud-version-checker",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.13",
    "maintainer_email": null,
    "keywords": "Automation, Nextcloud, Patchmanagement",
    "author": null,
    "author_email": "wh0ami <wh0ami@noreply.codeberg.org>",
    "download_url": "https://files.pythonhosted.org/packages/bd/22/6f6515c2c39fbf960ad90a6c4b4a2f4a55b46d80e71f4feecb672fa8616c/nextcloud_version_checker-1.1.0.tar.gz",
    "platform": null,
    "description": "# Nextcloud Version Checker\n\nThis is a tiny and simple tool for checking a bunch of nextcloud servers, \nwhether their Nextcloud version is supported and up2date.\n\n## Usage\n\n### Installation\n\nThis project is published on\n[PyPI](https://pypi.org/project/nextcloud-version-checker/), so you just want\nto install it via pipx or pip. Please note, that pipx is the recommended way.\n\n```commandline\n$ pipx install nextcloud-version-checker\n \nOR\n\n$ pip install nextcloud-version-checker\n```\n\n### How to use\n\nYou can call the tool via `nvc` or `nextcloud-version-checker`.\n\nIt assumes, that there's an existing input file called `input.json` in your\ncurrent directory. If you want to specify a custom input file, just call it\nlike e.g. `nextcloud-version-checker --server-file myservers.json` or shorter\n`nvc -s myservers.json`.\n\nAn example input file is located under\n`nextcloud_version_checker/misc/input.example.json`.\n\n## How it works\n\nInformation about the current latest versions will be fetched from the official\nAPI, which is also fetched by the built-in version check.\n([Code Reference on ShitHub](https://github.com/nextcloud/server/blob/master/lib/private/Updater/VersionCheck.php))\n\nThe script will throw the list of strings from your input file into a\nmultiprocessing pool which will fetch, parse and display the update information\nin a table at the end.\n\n## Example output\n\n```\nuser@pc:~/Workspace nextcloud-version-checker\n2025-02-09 13:58:39.375 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://stable.example.org'...\n2025-02-09 13:58:39.375 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://nightly.example.org'...\n2025-02-09 13:58:39.375 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://enterprise.example.org'...\n2025-02-09 13:58:39.375 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://eol.example.org'...\n2025-02-09 13:58:39.570 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://outdated.example.org'...\n2025-02-09 13:58:39.707 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://subpath.example.org/nextcloud'...\n2025-02-09 13:58:39.754 | INFO     | nextcloud_version_checker.utils.check:check:46 - Checking 'https://offline.example.org'...\n2025-02-09 13:58:39.754 | ERROR    | nextcloud_version_checker.utils.check:check:50 - Error while fetching the current version of 'https://offline.example.org':\n2025-02-09 13:58:39.754 | ERROR    | nextcloud_version_checker.utils.check:check:51 - -> <urlopen error [Errno 111] Connection refused>\n2025-02-09 13:58:40.609 | INFO     | nextcloud_version_checker.main:main:30 - +++ Nextcloud Version Overview +++\nInstance                                     Release    Type        Extended Support    Supported    Up-to-date    Available release\n-------------------------------------------  ---------  ----------  ------------------  -----------  ------------  -------------------\nstable.example.org                           30.0.5.1   Stable      No                  \u2713            \u2713             -\nnightly.example.org                          30.0.6.0   Beta        No                  \u2713            \u2716             31.0.0.14\nenterprise.example.org                       29.0.11.3  Enterprise  No                  \u2713            \u2713             -\neol.example.org                              15.0.0.10  Stable      No                  \u2716            \u2716             15.0.14.1\noutdated.example.org                         30.0.0.14  Stable      No                  \u2713            \u2716             30.0.5.1\nsubpath.example.org/nextcloud                30.0.5.1   Stable      No                  \u2713            \u2713             -\noffline.example.org                          Error      ?           ?                   ?            ?             ?\n\nuser@pc:~/Workspace$ \n```\n\n## Development\n\nThis is an uv project. You can set up your development environment by cloning\nthis Repository via `git` and running a `uv sync` in the project\ndirectory afterward.\n\nThe Lockfile can be updated by using `uv lock` (also updates the installed\npackages in the dependency tree).\n\nThe project can be bundled by running `uv build` and published by running\n`uv publish`. Results can be found in the `dist/` directory.\n\nFor code linting and formatting, `ruff` was used. You may run it via\n`uv run ruff check` or `uv run ruff format`.\n\nThis project is using [Semantic Versioning](https://semver.org/) and\n[Conventional Commits](https://www.conventionalcommits.org/en/).\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2025 wh0ami  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), 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 shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, 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": "Simple tool for checking a bunch of Nextcloud servers, whether their Nextcloud version is supported and up2date.",
    "version": "1.1.0",
    "project_urls": {
        "Documentation": "https://codeberg.org/wh0ami/NextcloudVersionChecker/src/branch/master/README.md",
        "Homepage": "https://codeberg.org/wh0ami/NextcloudVersionChecker",
        "Issues": "https://codeberg.org/wh0ami/NextcloudVersionChecker/issues",
        "Repository": "https://codeberg.org/wh0ami/NextcloudVersionChecker"
    },
    "split_keywords": [
        "automation",
        " nextcloud",
        " patchmanagement"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "640fd432a2f95082bdef888f5a3cc13d23fd4183d4bf424ffc2e21fc2083ad5e",
                "md5": "004652ed75648897e84671d3f2d0f6d1",
                "sha256": "bff41aca4bbe50a91498d49a56a7b828897cf8a331f3ea0935eaf88c122bac44"
            },
            "downloads": -1,
            "filename": "nextcloud_version_checker-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "004652ed75648897e84671d3f2d0f6d1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.13",
            "size": 13237,
            "upload_time": "2025-02-09T13:10:36",
            "upload_time_iso_8601": "2025-02-09T13:10:36.039209Z",
            "url": "https://files.pythonhosted.org/packages/64/0f/d432a2f95082bdef888f5a3cc13d23fd4183d4bf424ffc2e21fc2083ad5e/nextcloud_version_checker-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bd226f6515c2c39fbf960ad90a6c4b4a2f4a55b46d80e71f4feecb672fa8616c",
                "md5": "8bdba7ef684d573ad0f6360c768691ba",
                "sha256": "8c6e9cc70d07c1c6dab71b4d1af80c02c7d7909ae723a1c98dd8bdfa6844dba3"
            },
            "downloads": -1,
            "filename": "nextcloud_version_checker-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8bdba7ef684d573ad0f6360c768691ba",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.13",
            "size": 12895,
            "upload_time": "2025-02-09T13:10:38",
            "upload_time_iso_8601": "2025-02-09T13:10:38.159080Z",
            "url": "https://files.pythonhosted.org/packages/bd/22/6f6515c2c39fbf960ad90a6c4b4a2f4a55b46d80e71f4feecb672fa8616c/nextcloud_version_checker-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-09 13:10:38",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": true,
    "codeberg_user": "wh0ami",
    "codeberg_project": "NextcloudVersionChecker",
    "lcname": "nextcloud-version-checker"
}
        
Elapsed time: 0.60521s