{"id":14065332,"url":"https://github.com/j0ack/flask-codemirror","last_synced_at":"2026-03-10T05:03:35.471Z","repository":{"id":23540117,"uuid":"26907055","full_name":"j0ack/flask-codemirror","owner":"j0ack","description":"Use Codemirror JS library with Flask-WTF","archived":false,"fork":false,"pushed_at":"2023-11-24T09:07:25.000Z","size":78,"stargazers_count":18,"open_issues_count":2,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T02:54:52.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://flask-codemirror.readthedocs.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j0ack.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-20T10:18:03.000Z","updated_at":"2025-08-13T04:17:59.000Z","dependencies_parsed_at":"2024-05-28T00:30:02.870Z","dependency_job_id":"bcecc514-4296-4ce6-b2c7-238df8ef0f93","html_url":"https://github.com/j0ack/flask-codemirror","commit_stats":{"total_commits":28,"total_committers":9,"mean_commits":3.111111111111111,"dds":0.6785714285714286,"last_synced_commit":"67f0b66b219535d9f508a317435af4e53f807626"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/j0ack/flask-codemirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0ack%2Fflask-codemirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0ack%2Fflask-codemirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0ack%2Fflask-codemirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0ack%2Fflask-codemirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j0ack","download_url":"https://codeload.github.com/j0ack/flask-codemirror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j0ack%2Fflask-codemirror/sbom","scorecard":{"id":499739,"data":{"date":"2025-08-11","repo":{"name":"github.com/j0ack/flask-codemirror","commit":"67f0b66b219535d9f508a317435af4e53f807626"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":1,"reason":"Found 3/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T21:29:54.113Z","repository_id":23540117,"created_at":"2025-08-19T21:29:54.113Z","updated_at":"2025-08-19T21:29:54.113Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30325601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:04:26.134Z","updated_at":"2026-03-10T05:03:35.449Z","avatar_url":"https://github.com/j0ack.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Flask-CodeMirror\n================\n\n|version| |license|\n\nImplementation of source code editor for Flask and Flask-WTF using CodeMirror Javascript library\n\nInstallation\n------------\n\n     $ pip install flask-codemirror\n\nExample\n-------\nA simple example of how to use this module\n\n    .. code:: python\n\n      from flask_wtf import FlaskForm\n      from flask_codemirror.fields import CodeMirrorField\n      from wtforms.fields import SubmitField\n\n      class MyForm(FlaskForm):\n          source_code = CodeMirrorField(language='python', config={'lineNumbers': 'true'})\n          submit = SubmitField('Submit')\n\nThe `CodeMirrorField` works exactly like a `TextAreaField`\n\n    .. code:: python\n\n      @app.route('/', methods = ['GET', 'POST'])\n      def index():\n          form = MyForm()\n          if form.validate_on_submit():\n              text = form.source_code.data\n          return render_template('index.html', form=form)\n\nThe module needs to be initialized in the usual way and can be configured using app.config keys\n\n    .. code:: python\n\n      from flask import Flask\n      from flask_codemirror import CodeMirror\n      # mandatory\n      CODEMIRROR_LANGUAGES = ['python', 'yaml', 'htmlembedded']\n      WTF_CSRF_ENABLED = True\n      SECRET_KEY = 'secret'\n      # optional\n      CODEMIRROR_THEME = '3024-day'\n      CODEMIRROR_ADDONS = (\n              ('ADDON_DIR','ADDON_NAME'),\n      )\n      app = Flask(__name__)\n      app.config.from_object(__name__)\n      codemirror = CodeMirror(app)\n\nThe config `CODEMIRROR_LANGUAGES` needs to be initialized to load JavaScript. It defined all the languages you want to edit with your fields.\nThe config `CODEMIRROR_THEME` is optional and is used to style your TextArea using css from `CodeMirror website \u003chttp://codemirror.net/theme/\u003e`_.\nThe config `CODEMIRROR_ADDONS` is optional and can enable many cool options see `Codemirror Addons \u003chttp://codemirror.net/addon/\u003e`_ for available addons.\n\nFinally, the template needs the support JavaScript code added, by calling `codemirror.include_codemirror()` :\n\n    .. code:: django\n\n       \u003chtml\u003e\n         \u003chead\u003e\n           {{ codemirror.include_codemirror() }}\n         \u003c/head\u003e\n         \u003cbody\u003e\n\t   \u003cform method=\"POST\"\u003e\n              {{ form.csrf_token }}\n              {{ form.source_code }}\n\t      \u003cinput type=\"submit\" value=\"OK\"\u003e\n           \u003c/form\u003e\n         \u003c/body\u003e\n       \u003c/html\u003e\n\n\nThe Javascript classes are imported from a CDN, there are no static files that need to be served by the application.\n\n.. |version| image:: https://img.shields.io/pypi/v/flask-codemirror.svg\n.. |license| image:: https://img.shields.io/github/license/j0ack/flask-codemirror.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj0ack%2Fflask-codemirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj0ack%2Fflask-codemirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj0ack%2Fflask-codemirror/lists"}