salt-extension


Namesalt-extension JSON
Version 0.24.0 PyPI version JSON
download
home_pagehttps://saltproject.io
SummaryTool to simplify the creation of a new salt extension
upload_time2023-11-10 15:52:20
maintainer
docs_urlNone
authorPedro Algarvio
requires_python>=3.7
licenseApache Software License 2.0
keywords salt-extension
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # salt-extension

> Tool to simplify the creation of a new salt extension.

## The why

`salt-extension` is a Python-based CLI tool for generating a project scaffolding
to easily extend [salt](https://github.com/saltstack/salt/) with exec modules, state modules, and more.

Extensions make life easier in several ways:

- Deployments where proprietary Python modules are developed internally, like at enterprises that want to extend `salt` functionality without modifying `salt` itself, can follow a standard.
- Extensions can develop and release at a faster speed than `salt` itself. No need to wait for a specific major release.
- Developing extensions as separate repos allows for smaller, more isolated test suites that are tailored specifically to the scope of the extension.

This approach to development, of the `salt` ecosystem, could also assist in the powers of [Tiamat](https://gitlab.com/saltstack/pop/tiamat) (resources: [SEP26](https://github.com/saltstack/salt-enhancement-proposals/pull/34) // [tiamat-pip](https://gitlab.com/saltstack/pop/tiamat-pip) source code).

Converting existing module sets into extensions could begin treating `salt` as a more "pluggable"/"extensible" ecosystem, and could make it easier to understand what modules haven’t been contributed to in a long time. It is difficult to maintain so many modules within `salt` that manage and orchestrate an ocean of APIs, operating systems, clouds, etc.

## Quickstart

The best way to use this project is with [pipx][pipx]:

    $ pipx install salt-extension
    $ mkdir my_extension
    $ cd my_extension
    $ create-salt-extension my_extension -l states -l module
    Author: John Example Doe
    Author email: jd@example.com
    Summary: An example Salt Extension Module
    Url: https://example.com/my-saltext
    License (apache, other): apache

Then follow the other output instructions.

If all goes well, you should be able to run:

    $ salt-call --local my_extension.example_function text="it worked!"
    local:
        it worked!

Happy hacking!

[pipx]: https://pypi.org/project/pipx/

            

Raw data

            {
    "_id": null,
    "home_page": "https://saltproject.io",
    "name": "salt-extension",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "salt-extension",
    "author": "Pedro Algarvio",
    "author_email": "pedro@algarvio.me",
    "download_url": "https://files.pythonhosted.org/packages/77/d5/f377517d4221cd7ab6bd826ccc6100fdc644057487a1b5cef9836500f4cb/salt-extension-0.24.0.tar.gz",
    "platform": "any",
    "description": "# salt-extension\n\n> Tool to simplify the creation of a new salt extension.\n\n## The why\n\n`salt-extension` is a Python-based CLI tool for generating a project scaffolding\nto easily extend [salt](https://github.com/saltstack/salt/) with exec modules, state modules, and more.\n\nExtensions make life easier in several ways:\n\n- Deployments where proprietary Python modules are developed internally, like at enterprises that want to extend `salt` functionality without modifying `salt` itself, can follow a standard.\n- Extensions can develop and release at a faster speed than `salt` itself. No need to wait for a specific major release.\n- Developing extensions as separate repos allows for smaller, more isolated test suites that are tailored specifically to the scope of the extension.\n\nThis approach to development, of the `salt` ecosystem, could also assist in the powers of [Tiamat](https://gitlab.com/saltstack/pop/tiamat) (resources: [SEP26](https://github.com/saltstack/salt-enhancement-proposals/pull/34) // [tiamat-pip](https://gitlab.com/saltstack/pop/tiamat-pip) source code).\n\nConverting existing module sets into extensions could begin treating `salt` as a more \"pluggable\"/\"extensible\" ecosystem, and could make it easier to understand what modules haven\u2019t been contributed to in a long time. It is difficult to maintain so many modules within `salt` that manage and orchestrate an ocean of APIs, operating systems, clouds, etc.\n\n## Quickstart\n\nThe best way to use this project is with [pipx][pipx]:\n\n    $ pipx install salt-extension\n    $ mkdir my_extension\n    $ cd my_extension\n    $ create-salt-extension my_extension -l states -l module\n    Author: John Example Doe\n    Author email: jd@example.com\n    Summary: An example Salt Extension Module\n    Url: https://example.com/my-saltext\n    License (apache, other): apache\n\nThen follow the other output instructions.\n\nIf all goes well, you should be able to run:\n\n    $ salt-call --local my_extension.example_function text=\"it worked!\"\n    local:\n        it worked!\n\nHappy hacking!\n\n[pipx]: https://pypi.org/project/pipx/\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Tool to simplify the creation of a new salt extension",
    "version": "0.24.0",
    "project_urls": {
        "Homepage": "https://saltproject.io",
        "Source": "https://github.com/saltstack/salt-extension",
        "Tracker": "https://github.com/saltstack/salt-extension/issues"
    },
    "split_keywords": [
        "salt-extension"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d15aab818093d670bc4475eac038ad43a655150ce5745677f2343b904bc14a15",
                "md5": "9bc13fa6ac16fb8543f3c47ed659b6b0",
                "sha256": "cec3f0908b11425a498b1eef8732035464fc5ea125d60108f047f5dc1edb80f8"
            },
            "downloads": -1,
            "filename": "salt_extension-0.24.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9bc13fa6ac16fb8543f3c47ed659b6b0",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 49066,
            "upload_time": "2023-11-10T15:52:18",
            "upload_time_iso_8601": "2023-11-10T15:52:18.752074Z",
            "url": "https://files.pythonhosted.org/packages/d1/5a/ab818093d670bc4475eac038ad43a655150ce5745677f2343b904bc14a15/salt_extension-0.24.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "77d5f377517d4221cd7ab6bd826ccc6100fdc644057487a1b5cef9836500f4cb",
                "md5": "428fba67eb97e835c2585f9822070469",
                "sha256": "7003baa71c65f233d7cb9d5c89ad91a746050ac5ef1bbeb46d728fc668a89230"
            },
            "downloads": -1,
            "filename": "salt-extension-0.24.0.tar.gz",
            "has_sig": false,
            "md5_digest": "428fba67eb97e835c2585f9822070469",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 44543,
            "upload_time": "2023-11-10T15:52:20",
            "upload_time_iso_8601": "2023-11-10T15:52:20.607160Z",
            "url": "https://files.pythonhosted.org/packages/77/d5/f377517d4221cd7ab6bd826ccc6100fdc644057487a1b5cef9836500f4cb/salt-extension-0.24.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-10 15:52:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "saltstack",
    "github_project": "salt-extension",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "salt-extension"
}
        
Elapsed time: 0.18303s