ninja-bear-distributor-fs


Nameninja-bear-distributor-fs JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/monstermichl/ninja-bear-distributor-fs.git
SummaryFileSystem distributor support for ninja-bear
upload_time2024-10-31 19:46:23
maintainerNone
docs_urlNone
authormonstermichl
requires_python>=3.10
licenseNone
keywords ninja-bear plugin distributor fs
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ninja-bear-distributor-fs
This [ninja-bear](https://pypi.org/project/ninja-bear) plugin provides the possibility to distribute generated files to other locations on the file system.

```yaml
distributors:  # Specifies which distributor plugins to load.
  # -------------------------------------------------------------------------
  # Property description for ninja-bear-distributor-fs.
  #
  # distributor    (required): ninja-bear-distributor-fs
  # as             (required): Specifies how the distributor will be referenced
  #                            at the language level (in this case fs).
  # paths          (required): Path or list of paths (relative or absolute) to
  #                            copy the configs to.
  # create_parents (optional): If true, parent directories will be created if
  #                            they don't exist.
  # ignore         (optional): If true, the section gets ignored.
  # -------------------------------------------------------------------------
  - distributor: ninja-bear-distributor-fs
    as: fs
    paths:
      - ../configs/configs-1
      - ../configs/configs-2
    create_parents: true

languages:
  - language: ninja-bear-language-examplescript
    distributors:  # Specifies which distributor plugins to use for the language.
      - fs

properties:
  - type: bool
    name: myBoolean
    value: true

  - type: int
    name: myInteger
    value: 142

  - type: float
    name: myFloat
    value: 322f  # Float with float specifier. However, an additional specifier (f) is not required and will be trimmed.

  - type: float
    name: myCombinedFloat
    value: ${myInteger} * ${myFloat}  # Number and boolean combinations get evaluated during the dump process.

  - type: double
    name: myDouble
    value: 233.9

  - type: string
    name: myString
    value: Hello World
    hidden: true  # If a property should act as a helper but should not be written to the generated file, it must be marked as 'hidden'.

  - type: regex
    name: myRegex
    value: Test Reg(E|e)x
    comment: Just another RegEx.  # Variables can be described using the comment property.

  - type: string
    name: mySubstitutedString
    value: Sometimes I just want to scream ${myString}!  # To use the value of another property, simply use its name with ${}. E.g., ${myString}.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/monstermichl/ninja-bear-distributor-fs.git",
    "name": "ninja-bear-distributor-fs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "ninja-bear, plugin, distributor, fs",
    "author": "monstermichl",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/4a/86/21a28709fb1bc1a573d11eee57cd9779745ab2a4d5475a4b8360f2f4db08/ninja_bear_distributor_fs-0.1.0.tar.gz",
    "platform": null,
    "description": "# ninja-bear-distributor-fs\nThis [ninja-bear](https://pypi.org/project/ninja-bear) plugin provides the possibility to distribute generated files to other locations on the file system.\n\n```yaml\ndistributors:  # Specifies which distributor plugins to load.\n  # -------------------------------------------------------------------------\n  # Property description for ninja-bear-distributor-fs.\n  #\n  # distributor    (required): ninja-bear-distributor-fs\n  # as             (required): Specifies how the distributor will be referenced\n  #                            at the language level (in this case fs).\n  # paths          (required): Path or list of paths (relative or absolute) to\n  #                            copy the configs to.\n  # create_parents (optional): If true, parent directories will be created if\n  #                            they don't exist.\n  # ignore         (optional): If true, the section gets ignored.\n  # -------------------------------------------------------------------------\n  - distributor: ninja-bear-distributor-fs\n    as: fs\n    paths:\n      - ../configs/configs-1\n      - ../configs/configs-2\n    create_parents: true\n\nlanguages:\n  - language: ninja-bear-language-examplescript\n    distributors:  # Specifies which distributor plugins to use for the language.\n      - fs\n\nproperties:\n  - type: bool\n    name: myBoolean\n    value: true\n\n  - type: int\n    name: myInteger\n    value: 142\n\n  - type: float\n    name: myFloat\n    value: 322f  # Float with float specifier. However, an additional specifier (f) is not required and will be trimmed.\n\n  - type: float\n    name: myCombinedFloat\n    value: ${myInteger} * ${myFloat}  # Number and boolean combinations get evaluated during the dump process.\n\n  - type: double\n    name: myDouble\n    value: 233.9\n\n  - type: string\n    name: myString\n    value: Hello World\n    hidden: true  # If a property should act as a helper but should not be written to the generated file, it must be marked as 'hidden'.\n\n  - type: regex\n    name: myRegex\n    value: Test Reg(E|e)x\n    comment: Just another RegEx.  # Variables can be described using the comment property.\n\n  - type: string\n    name: mySubstitutedString\n    value: Sometimes I just want to scream ${myString}!  # To use the value of another property, simply use its name with ${}. E.g., ${myString}.\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "FileSystem distributor support for ninja-bear",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/monstermichl/ninja-bear-distributor-fs.git"
    },
    "split_keywords": [
        "ninja-bear",
        " plugin",
        " distributor",
        " fs"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e48e860a3d3f765d084b1c420ff4f5f9f91ff2d32c16b4c20fa0acbe177faf9e",
                "md5": "80c1ab26ae6cfc876739ac69ecd05393",
                "sha256": "87916533e56e57b1f11188e31e9272a3e5a0e01e9568ab9f9e09c7ac338774e9"
            },
            "downloads": -1,
            "filename": "ninja_bear_distributor_fs-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "80c1ab26ae6cfc876739ac69ecd05393",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 4487,
            "upload_time": "2024-10-31T19:46:22",
            "upload_time_iso_8601": "2024-10-31T19:46:22.149850Z",
            "url": "https://files.pythonhosted.org/packages/e4/8e/860a3d3f765d084b1c420ff4f5f9f91ff2d32c16b4c20fa0acbe177faf9e/ninja_bear_distributor_fs-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4a8621a28709fb1bc1a573d11eee57cd9779745ab2a4d5475a4b8360f2f4db08",
                "md5": "190d6c1c669e0ea8002ba907cbb9a033",
                "sha256": "5c4e1cda20a82f80b017666b49477e04e271a995af8b1eac1c3d37a69e87061d"
            },
            "downloads": -1,
            "filename": "ninja_bear_distributor_fs-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "190d6c1c669e0ea8002ba907cbb9a033",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 5207,
            "upload_time": "2024-10-31T19:46:23",
            "upload_time_iso_8601": "2024-10-31T19:46:23.780880Z",
            "url": "https://files.pythonhosted.org/packages/4a/86/21a28709fb1bc1a573d11eee57cd9779745ab2a4d5475a4b8360f2f4db08/ninja_bear_distributor_fs-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-31 19:46:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "monstermichl",
    "github_project": "ninja-bear-distributor-fs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "ninja-bear-distributor-fs"
}
        
Elapsed time: 0.34055s