cmgr


Namecmgr JSON
Version 0.0.7 PyPI version JSON
download
home_pageNone
SummaryA configuratable config manager for your packages.
upload_time2024-04-20 05:10:13
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseBSD 3-Clause License Copyright (c) 2024, Kyan Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords python3 configuratable config manager
VCS
bugtrack_url
requirements consoleiotools consolecmdtools click
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Config Manager (cmgr)
[CHANGELOG](CHANGELOG.md)

[cmgr](https://github.com/kyan001/PyConfigManager) is a command-line tool to manage configurations and packages. It's designed to be simple and easy to use. It's written in Python and can be installed via pip and pipx.

## Get Started

```sh
pip install cmgr  # Install cmgr

cmgr  # Run cmgr.
```

## Installation

```sh
pip install --user cmgr  # install cmgr
pip install --upgrade cmgr # upgrade cmgr
pip uninstall cmgr  # uninstall cmgr

# using pipx
pipx install cmgr  # install cmgr
pipx upgrade cmgr  # upgrade cmgr
pipx uninstall cmgr  # uninstall cmgr
```

## Usage

```sh
# Shell
cmgr --help  # Command-line help message.
cmgr --version  # Show version information.

cmgr  # Run cgmr. Will looking for all cmgr.toml under current folder.
cmgr -p/--profile '/path/to/root/cmgr.toml'  # Run cmgr with specific profile.
cmgr -r/--root '/path/to/root/'  # Run cmgr with specific root folder.
cmgr -n/--name 'my-cmgr.toml'  # Run cmgr with specific profile's filename.

# Install package
cmgr install ping3  # Install a package named ping3. Using default package manager.
cmgr install ping3 -c/--command 'ping3'  # Use specific command to detect if the package is installed before install.
cmgr install ping3 -m/--manager 'pip'  # Use specific package manager to install the package.

# Copy configuration
cmgr config "bash.conf" "~/.bashrc"  # Copy `bash.conf` to `~/` as `.bashrc`.
cmgr config "bash.conf" "~/.bashrc" -n/--name "BASH"  # Copy `bash.conf` to `~/` as `.bashrc` with specific name in output.
```

## Profile
* A cmgr profile example: [cmgr-example.toml](cmgr-example.toml)
* A minimal cmgr profile: [cmgr-minimal.toml](cmgr-minimal.toml)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cmgr",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "python3, configuratable, config, manager",
    "author": null,
    "author_email": "Kyan <kai@kyan001.com>",
    "download_url": "https://files.pythonhosted.org/packages/41/47/ddd52f5e4163670ce876900c120174f0f15a64e572b013bcd387beb9b9b3/cmgr-0.0.7.tar.gz",
    "platform": null,
    "description": "# Config Manager (cmgr)\n[CHANGELOG](CHANGELOG.md)\n\n[cmgr](https://github.com/kyan001/PyConfigManager) is a command-line tool to manage configurations and packages. It's designed to be simple and easy to use. It's written in Python and can be installed via pip and pipx.\n\n## Get Started\n\n```sh\npip install cmgr  # Install cmgr\n\ncmgr  # Run cmgr.\n```\n\n## Installation\n\n```sh\npip install --user cmgr  # install cmgr\npip install --upgrade cmgr # upgrade cmgr\npip uninstall cmgr  # uninstall cmgr\n\n# using pipx\npipx install cmgr  # install cmgr\npipx upgrade cmgr  # upgrade cmgr\npipx uninstall cmgr  # uninstall cmgr\n```\n\n## Usage\n\n```sh\n# Shell\ncmgr --help  # Command-line help message.\ncmgr --version  # Show version information.\n\ncmgr  # Run cgmr. Will looking for all cmgr.toml under current folder.\ncmgr -p/--profile '/path/to/root/cmgr.toml'  # Run cmgr with specific profile.\ncmgr -r/--root '/path/to/root/'  # Run cmgr with specific root folder.\ncmgr -n/--name 'my-cmgr.toml'  # Run cmgr with specific profile's filename.\n\n# Install package\ncmgr install ping3  # Install a package named ping3. Using default package manager.\ncmgr install ping3 -c/--command 'ping3'  # Use specific command to detect if the package is installed before install.\ncmgr install ping3 -m/--manager 'pip'  # Use specific package manager to install the package.\n\n# Copy configuration\ncmgr config \"bash.conf\" \"~/.bashrc\"  # Copy `bash.conf` to `~/` as `.bashrc`.\ncmgr config \"bash.conf\" \"~/.bashrc\" -n/--name \"BASH\"  # Copy `bash.conf` to `~/` as `.bashrc` with specific name in output.\n```\n\n## Profile\n* A cmgr profile example: [cmgr-example.toml](cmgr-example.toml)\n* A minimal cmgr profile: [cmgr-minimal.toml](cmgr-minimal.toml)\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2024, Kyan  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "A configuratable config manager for your packages.",
    "version": "0.0.7",
    "project_urls": {
        "Changelog": "https://github.com/kyan001/PyConfigManager/blob/master/CHANGELOG.md",
        "Homepage": "https://github.com/kyan001/PyConfigManager",
        "Issue Tracker": "https://github.com/kyan001/PyConfigManager/issues",
        "Source Code": "https://github.com/kyan001/PyConfigManager"
    },
    "split_keywords": [
        "python3",
        " configuratable",
        " config",
        " manager"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d78845c8edb8a4116d280e77bf27f26da9d1ebcf97b53cfdae6b3a052bfb7db7",
                "md5": "9e9065e4a722eb46f78aa369d29b9ca8",
                "sha256": "ea6e235a3946b4bc98ab4bfc9e07b1bfc92c5a852945d8291b47dd3dc49258dd"
            },
            "downloads": -1,
            "filename": "cmgr-0.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9e9065e4a722eb46f78aa369d29b9ca8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 7553,
            "upload_time": "2024-04-20T05:10:11",
            "upload_time_iso_8601": "2024-04-20T05:10:11.564402Z",
            "url": "https://files.pythonhosted.org/packages/d7/88/45c8edb8a4116d280e77bf27f26da9d1ebcf97b53cfdae6b3a052bfb7db7/cmgr-0.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4147ddd52f5e4163670ce876900c120174f0f15a64e572b013bcd387beb9b9b3",
                "md5": "465683d816a7df86ef745a2ae598b42e",
                "sha256": "9c04e648e84352b4fd9b9ec5bfb90654495796be26009dd25f3c681390392f33"
            },
            "downloads": -1,
            "filename": "cmgr-0.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "465683d816a7df86ef745a2ae598b42e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 7100,
            "upload_time": "2024-04-20T05:10:13",
            "upload_time_iso_8601": "2024-04-20T05:10:13.281869Z",
            "url": "https://files.pythonhosted.org/packages/41/47/ddd52f5e4163670ce876900c120174f0f15a64e572b013bcd387beb9b9b3/cmgr-0.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-20 05:10:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kyan001",
    "github_project": "PyConfigManager",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "consoleiotools",
            "specs": []
        },
        {
            "name": "consolecmdtools",
            "specs": [
                [
                    ">=",
                    "6.4.0"
                ]
            ]
        },
        {
            "name": "click",
            "specs": []
        }
    ],
    "lcname": "cmgr"
}
        
Elapsed time: 0.23953s