django-codemirror6


Namedjango-codemirror6 JSON
Version 1.0.1 PyPI version JSON
download
home_page
SummaryDjango CodeMirror 6
upload_time2022-12-31 00:07:25
maintainer
docs_urlNone
author
requires_python>=3.7
licenseApache 2.0
keywords django codemirror
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Django CodeMirror 6
===================

`Django CodeMirror 6 <http://www.grantjenks.com/docs/django-codemirror6/>`__ is
an Apache2 licensed Django application to support CodeMirror 6.


Features
--------

- Pre-compiled bundles for Code Mirror 6
- Tested on Python 3.7, 3.8, 3.9, 3.10, 3.11
- Tested on Django 3.2 LTS and Django 4.1
- Tested on Linux, Mac, and Windows

.. image:: https://github.com/grantjenks/django-codemirror6/workflows/integration/badge.svg
   :target: https://github.com/grantjenks/django-codemirror6/actions?query=workflow%3Aintegration

.. image:: https://github.com/grantjenks/django-codemirror6/workflows/release/badge.svg
   :target: https://github.com/grantjenks/django-codemirror6/actions?query=workflow%3Arelease


Quickstart
----------

Installing Django CodeMirror 6 is simple with `pip
<http://www.pip-installer.org/>`_::

    $ pip install django-codemirror6

Change `settings.py` like:

.. code::

   INSTALLED_APPS += ['django_codemirror6']

In the template:

.. code::

   {% load static %}
   ...
   <script src="{% static 'cm6/cm6-all-yjs.min.js' %}"></script>

Bundles are named as:

.. code::

   cm6[-language][-yjs][.min].js

* ``[-language]`` is optional and any of cpp, css, html, java, javascript,
  json, markdown, php, python, rust, sql, xml, or the special "all"

* ``[-yjs]`` is optional for real-time sharing/collaboration

* ``[.min]`` is optional for minified sources

Examples:

* ``cm6.js`` is a text editor with no specific language support and no yjs

* ``cm6-python.min.js`` is a minified text editor with Python language support

* ``cm6-all-yjs.min.js`` is a minified text editor with everything

See the `demo`_ for a Code Mirror 6 example configuration.

.. _`demo`: https://github.com/grantjenks/django-codemirror6/blob/main/src/django_codemirror6/templates/cm6/demo.html


Reference and Indices
---------------------

* `Django CodeMirror 6 Documentation`_
* `Django CodeMirror 6 at PyPI`_
* `Django CodeMirror 6 at GitHub`_
* `Django CodeMirror 6 Issue Tracker`_

.. _`Django CodeMirror 6 Documentation`: http://www.grantjenks.com/docs/django-codemirror6/
.. _`Django CodeMirror 6 at PyPI`: https://pypi.python.org/pypi/django-codemirror6/
.. _`Django CodeMirror 6 at GitHub`: https://github.com/grantjenks/django-codemirror6
.. _`Django CodeMirror 6 Issue Tracker`: https://github.com/grantjenks/django-codemirror6/issues


Django CodeMirror 6 License
---------------------------

Copyright 2022-2023 Grant Jenks

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License.  You may obtain a copy of the
License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.  See the License for the
specific language governing permissions and limitations under the License.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "django-codemirror6",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "django,codemirror",
    "author": "",
    "author_email": "Grant Jenks <contact@grantjenks.com>",
    "download_url": "https://files.pythonhosted.org/packages/8e/39/84ebcb2c950a3bdb699f9890b08e546ddb160b52c46fa0448848fa2c80cb/django-codemirror6-1.0.1.tar.gz",
    "platform": null,
    "description": "Django CodeMirror 6\n===================\n\n`Django CodeMirror 6 <http://www.grantjenks.com/docs/django-codemirror6/>`__ is\nan Apache2 licensed Django application to support CodeMirror 6.\n\n\nFeatures\n--------\n\n- Pre-compiled bundles for Code Mirror 6\n- Tested on Python 3.7, 3.8, 3.9, 3.10, 3.11\n- Tested on Django 3.2 LTS and Django 4.1\n- Tested on Linux, Mac, and Windows\n\n.. image:: https://github.com/grantjenks/django-codemirror6/workflows/integration/badge.svg\n   :target: https://github.com/grantjenks/django-codemirror6/actions?query=workflow%3Aintegration\n\n.. image:: https://github.com/grantjenks/django-codemirror6/workflows/release/badge.svg\n   :target: https://github.com/grantjenks/django-codemirror6/actions?query=workflow%3Arelease\n\n\nQuickstart\n----------\n\nInstalling Django CodeMirror 6 is simple with `pip\n<http://www.pip-installer.org/>`_::\n\n    $ pip install django-codemirror6\n\nChange `settings.py` like:\n\n.. code::\n\n   INSTALLED_APPS += ['django_codemirror6']\n\nIn the template:\n\n.. code::\n\n   {% load static %}\n   ...\n   <script src=\"{% static 'cm6/cm6-all-yjs.min.js' %}\"></script>\n\nBundles are named as:\n\n.. code::\n\n   cm6[-language][-yjs][.min].js\n\n* ``[-language]`` is optional and any of cpp, css, html, java, javascript,\n  json, markdown, php, python, rust, sql, xml, or the special \"all\"\n\n* ``[-yjs]`` is optional for real-time sharing/collaboration\n\n* ``[.min]`` is optional for minified sources\n\nExamples:\n\n* ``cm6.js`` is a text editor with no specific language support and no yjs\n\n* ``cm6-python.min.js`` is a minified text editor with Python language support\n\n* ``cm6-all-yjs.min.js`` is a minified text editor with everything\n\nSee the `demo`_ for a Code Mirror 6 example configuration.\n\n.. _`demo`: https://github.com/grantjenks/django-codemirror6/blob/main/src/django_codemirror6/templates/cm6/demo.html\n\n\nReference and Indices\n---------------------\n\n* `Django CodeMirror 6 Documentation`_\n* `Django CodeMirror 6 at PyPI`_\n* `Django CodeMirror 6 at GitHub`_\n* `Django CodeMirror 6 Issue Tracker`_\n\n.. _`Django CodeMirror 6 Documentation`: http://www.grantjenks.com/docs/django-codemirror6/\n.. _`Django CodeMirror 6 at PyPI`: https://pypi.python.org/pypi/django-codemirror6/\n.. _`Django CodeMirror 6 at GitHub`: https://github.com/grantjenks/django-codemirror6\n.. _`Django CodeMirror 6 Issue Tracker`: https://github.com/grantjenks/django-codemirror6/issues\n\n\nDjango CodeMirror 6 License\n---------------------------\n\nCopyright 2022-2023 Grant Jenks\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License.  You may obtain a copy of the\nLicense at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied.  See the License for the\nspecific language governing permissions and limitations under the License.\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "Django CodeMirror 6",
    "version": "1.0.1",
    "split_keywords": [
        "django",
        "codemirror"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "6b208d518b658eb867684649979774b7",
                "sha256": "cac08b32ce1530ade42413afa5c639b992477c79d90145f1839bda1bf7e66c50"
            },
            "downloads": -1,
            "filename": "django_codemirror6-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6b208d518b658eb867684649979774b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 15125906,
            "upload_time": "2022-12-31T00:07:23",
            "upload_time_iso_8601": "2022-12-31T00:07:23.138621Z",
            "url": "https://files.pythonhosted.org/packages/d5/27/2b4bc44b1e94ea5c17b993cf2943b7d37e5406a9fb505a4ce8d5e3c2d903/django_codemirror6-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ad6dd0971edc3bc6fa3ee7be038c15dc",
                "sha256": "47881f7dfaf0e082780c3fd5ee957d173bd37616c63332041605e9618a11216b"
            },
            "downloads": -1,
            "filename": "django-codemirror6-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ad6dd0971edc3bc6fa3ee7be038c15dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 15016945,
            "upload_time": "2022-12-31T00:07:25",
            "upload_time_iso_8601": "2022-12-31T00:07:25.669288Z",
            "url": "https://files.pythonhosted.org/packages/8e/39/84ebcb2c950a3bdb699f9890b08e546ddb160b52c46fa0448848fa2c80cb/django-codemirror6-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-31 00:07:25",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "django-codemirror6"
}
        
Elapsed time: 0.02234s