wtforms-aceditor


Namewtforms-aceditor JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/WorldException/wtforms_aceditor
Summarywtforms aceditor component
upload_time2023-10-09 21:35:10
maintainer
docs_urlNone
authorStoyanov Evgeny
requires_python>=3.9
licenseMIT License Copyright (c) 2023 wtforms_aceditor 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 wtforms flask aceditor
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Upload Python Package](https://github.com/WorldException/wtforms_aceditor/actions/workflows/python-publish.yml/badge.svg)](https://github.com/WorldException/wtforms_aceditor/actions/workflows/python-publish.yml)

# Aceditor wtforms control

Aceditor wtforms control

<https://ace.c9.io/>

## Use with flask-admin

```python
from wtforms_aceditor import AceEditor

class ExampleView(ModelView):
    form_widget_args = {
        'config_yaml': {
            'style': 'width:100%; height: 200px;'
        }
    }
    form_args = {
        'config_yaml': {
            'widget': AceEditor('yaml', minLines=4, tabSize=4),
            'validators': [YamlValidator()]
        }
    }
```

## Use with flask-forms

```python
from wtforms_aceditor import AceEditor

class SampleForm(FlaskForm):
    code = TextAreaField('config_yaml', widget=AceEditor('yaml'))
```

Run example

```bash
FLASK_APP=example1.app flask run
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/WorldException/wtforms_aceditor",
    "name": "wtforms-aceditor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "wtforms,flask,aceditor",
    "author": "Stoyanov Evgeny",
    "author_email": "quick.es@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/11/a2/876ed3f13bbd9980d4e9b0ebb4ce283a4461272675d8aab88be51aeaaa95/wtforms_aceditor-0.0.2.tar.gz",
    "platform": null,
    "description": "[![Upload Python Package](https://github.com/WorldException/wtforms_aceditor/actions/workflows/python-publish.yml/badge.svg)](https://github.com/WorldException/wtforms_aceditor/actions/workflows/python-publish.yml)\n\n# Aceditor wtforms control\n\nAceditor wtforms control\n\n<https://ace.c9.io/>\n\n## Use with flask-admin\n\n```python\nfrom wtforms_aceditor import AceEditor\n\nclass ExampleView(ModelView):\n    form_widget_args = {\n        'config_yaml': {\n            'style': 'width:100%; height: 200px;'\n        }\n    }\n    form_args = {\n        'config_yaml': {\n            'widget': AceEditor('yaml', minLines=4, tabSize=4),\n            'validators': [YamlValidator()]\n        }\n    }\n```\n\n## Use with flask-forms\n\n```python\nfrom wtforms_aceditor import AceEditor\n\nclass SampleForm(FlaskForm):\n    code = TextAreaField('config_yaml', widget=AceEditor('yaml'))\n```\n\nRun example\n\n```bash\nFLASK_APP=example1.app flask run\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 wtforms_aceditor  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.",
    "summary": "wtforms aceditor component",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/WorldException/wtforms_aceditor"
    },
    "split_keywords": [
        "wtforms",
        "flask",
        "aceditor"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7a48623584ede66b639573208b272a1b5b8a169784af21b716766561b19dca0e",
                "md5": "c2f9a40c891b942c27f30d420960890d",
                "sha256": "0b7560bfc239e9c1d77f109a1c994308386fa507d590e6ce4d52e36c77cbff44"
            },
            "downloads": -1,
            "filename": "wtforms_aceditor-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c2f9a40c891b942c27f30d420960890d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 4697,
            "upload_time": "2023-10-09T21:35:07",
            "upload_time_iso_8601": "2023-10-09T21:35:07.057078Z",
            "url": "https://files.pythonhosted.org/packages/7a/48/623584ede66b639573208b272a1b5b8a169784af21b716766561b19dca0e/wtforms_aceditor-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "11a2876ed3f13bbd9980d4e9b0ebb4ce283a4461272675d8aab88be51aeaaa95",
                "md5": "6152ce5568c222b32a5ed13d0d2a0f38",
                "sha256": "4f72a6aa42428cceb762eea9c37f7dca8a61f68328792aca0f8af1f845fa9fbf"
            },
            "downloads": -1,
            "filename": "wtforms_aceditor-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "6152ce5568c222b32a5ed13d0d2a0f38",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4183,
            "upload_time": "2023-10-09T21:35:10",
            "upload_time_iso_8601": "2023-10-09T21:35:10.621991Z",
            "url": "https://files.pythonhosted.org/packages/11/a2/876ed3f13bbd9980d4e9b0ebb4ce283a4461272675d8aab88be51aeaaa95/wtforms_aceditor-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-09 21:35:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "WorldException",
    "github_project": "wtforms_aceditor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "wtforms-aceditor"
}
        
Elapsed time: 0.24178s