{"id":22954655,"url":"https://github.com/juniors90/flask-plots","last_synced_at":"2025-08-17T13:05:48.603Z","repository":{"id":57430585,"uuid":"437103871","full_name":"juniors90/Flask-Plots","owner":"juniors90","description":"Flask-Plots is a library for creating and rendering static visualizations using Matplotlib in Python.","archived":false,"fork":false,"pushed_at":"2021-12-19T02:06:06.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T10:50:58.627Z","etag":null,"topics":["data-visualization","datavisualization","flask","jinja2","matplotlib-figures","python"],"latest_commit_sha":null,"homepage":"https://flask-plots.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juniors90.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-10T20:20:33.000Z","updated_at":"2022-01-21T16:05:05.000Z","dependencies_parsed_at":"2022-08-27T22:12:08.926Z","dependency_job_id":null,"html_url":"https://github.com/juniors90/Flask-Plots","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/juniors90/Flask-Plots","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniors90%2FFlask-Plots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniors90%2FFlask-Plots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniors90%2FFlask-Plots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniors90%2FFlask-Plots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juniors90","download_url":"https://codeload.github.com/juniors90/Flask-Plots/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juniors90%2FFlask-Plots/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270850303,"owners_count":24656483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":["data-visualization","datavisualization","flask","jinja2","matplotlib-figures","python"],"created_at":"2024-12-14T16:19:05.763Z","updated_at":"2025-08-17T13:05:48.578Z","avatar_url":"https://github.com/juniors90.png","language":"Python","readme":"# Flask-Plots\n\n[![Build status](https://github.com/juniors90/Flask-Plots/actions/workflows/CI.yml/badge.svg)](https://github.com/juniors90/Flask-Plots/actions)\n[![codecov](https://codecov.io/gh/juniors90/Flask-Plots/branch/main/graph/badge.svg?token=3DSLEQIE8A)](https://codecov.io/gh/juniors90/Flask-Plots)\n[![docs](https://readthedocs.org/projects/flask-plots/badge/?version=latest)](https://flask-plots.readthedocs.io/en/latest/?badge=latest)\n![docstr-cov](https://img.shields.io/endpoint?url=https://jsonbin.org/juniors90/Flask-Plots/badges/docstr-cov)\n[![License](https://img.shields.io/github/license/juniors90/Flask-Plots)](https://github.com/juniors90/Flask-Plots/blob/main/LICENSE)\n[![Forks](https://img.shields.io/github/forks/juniors90/Flask-Plots)](https://github.com/juniors90/Flask-Plots/network)\n[![Stars](https://img.shields.io/github/stars/juniors90/Flask-Plots)](https://github.com/juniors90/Flask-Plots/stargazers)\n[![Issues](https://img.shields.io/github/issues/juniors90/Flask-Plots)](https://github.com/juniors90/Flask-Plots/issues)\n[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![https://github.com/leliel12/diseno_sci_sfw](https://img.shields.io/badge/DiSoftCompCi-FAMAF-ffda00)](https://github.com/leliel12/diseno_sci_sfw)\n\nFlask-Plots is a library for creating and rendering static visualizations using [Matplotlib](https://matplotlib.org/stable/index.html) in Python.\n\n\n## Requirements\n\nPython 3.8+\n\n## Dependecies for this project.\n\n- [matplotlib(\u003e=3.4.0)](https://matplotlib.org/) for plots management\n- [Flask(\u003e=2.0.2)](https://flask.palletsprojects.com/en/2.0.x/) for build the backend.\n\n## intallation\n\nYou can install via pip:\n\n```cmd\n    $\u003e pip install Flask-Plots\n```\n   \nFor development, clone the [official github repository](https://github.com/juniors90/Flask-Plots) instead and use:\n\n```cmd\n    $ git clone git@github.com:juniors90/Flask-Plots.git\n    $ cd Flask-Plots\n    $ python3 -m venv venv\n    $ source venv/bin/activate\n    (venv) $ pip install -r requirements/dev.txt\n```\n\n## Quick start\n\nWith Flask-Plots you can instance the ``Plots`` object and document your endpoints.\n\n\n```python\n    from flask import Flask, render_template_string\n    from flask_plots import Plots\n    import matplotlib\n    from matplotlib.figure import Figure\n    import numpy as np\n    \n    app = Flask(__name__)\n    plots = Plots(app)\n\n    # routes\n    @app.route(\"/\")\n    def bar():\n        # Make data:\n        countries = [\"Argentina\", \"Brasil\", \"Colombia\", \"Chile\"]\n        peoples = [14, 40, 16, 24]\n        # Plot:\n        fig = Figure()\n        ax = fig.subplots()\n        ax = plots.bar(fig, countries, peoples)\n        ax.set_title(\"Bar Chart\")\n        data = plots.get_data(fig)\n        return render_template_string(\n                \"\"\"\n                {% from 'plots/utils.html' import render_img %}\n                {{ render_img(data=data, alt_img='my_img') }}\n                \"\"\",\n                data=data\n            )\n\n    if __name__ == \"__main__\":\n        app.run(port=5000, debug=True)\n```\n\n## Links\n\n- [Documentation](https://flask-plots.readthedocs.io)\n- [Example Application](https://github.com/juniors90/Flask-Plots/tree/main/sample_app)\n- [PyPI Releases](https://pypi.org/project/Flask-Plots/)\n- [Changelog](https://github.com/juniors90/Flask-Plots/blob/main/CHANGELOG.rst)\n\n\n## Authors\n\n- Ferreira, Juan David\n\nPlease submit bug reports, suggestions for improvements and patches via\nthe (E-mail: juandavid9a0@gmail.com).\n\n## Official repository and Issues\n\n- https://github.com/juniors90/flask-Plots\n\n## Acknowledgment\n\nThank you to Juan B. Cabral, and Martin Chalela for his teachings during [Curso doctoral FAMAF: Diseño de software para cómputo científico](https://github.com/leliel12/diseno_sci_sfw),\nfrom which this library is based.\n\n## License\n\n`Flask-Plots` is free software you can redistribute it and/or modify it\nunder the terms of the MIT License. For more information, you can see the\n[LICENSE](https://github.com/juniors90/Flask-Plots/blob/main/LICENSE) file\nfor details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuniors90%2Fflask-plots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuniors90%2Fflask-plots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuniors90%2Fflask-plots/lists"}