{"id":21352664,"url":"https://github.com/patrick-llgc/simpletickerplot","last_synced_at":"2025-03-16T04:43:51.450Z","repository":{"id":131328962,"uuid":"41581402","full_name":"patrick-llgc/simpleTickerPlot","owner":"patrick-llgc","description":"my personalized flask demo","archived":false,"fork":false,"pushed_at":"2015-09-08T03:29:03.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T17:24:51.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrick-llgc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-29T04:59:24.000Z","updated_at":"2018-05-07T22:04:49.000Z","dependencies_parsed_at":"2023-03-09T08:52:10.185Z","dependency_job_id":null,"html_url":"https://github.com/patrick-llgc/simpleTickerPlot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-llgc%2FsimpleTickerPlot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-llgc%2FsimpleTickerPlot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-llgc%2FsimpleTickerPlot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-llgc%2FsimpleTickerPlot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrick-llgc","download_url":"https://codeload.github.com/patrick-llgc/simpleTickerPlot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826778,"owners_count":20354220,"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","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-11-22T03:14:33.848Z","updated_at":"2025-03-16T04:43:51.432Z","avatar_url":"https://github.com/patrick-llgc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# project history\n08/28/2015: cloned repository\n\n09/06/2015: test branching/merging\n\n09/07/2015: finished milestone project\n\n# Flask on Heroku\n\nThis project is intended to help you tie together some important concepts and\ntechnologies from the 12-day course, including Git, Flask, JSON, Pandas,\nRequests, Heroku, and Bokeh for visualization.\n\nThe repository contains a basic template for a Flask configuration that will\nwork on Heroku.\n\nA [finished example](https://lemurian.herokuapp.com) that demonstrates some basic functionality.\n\n## Step 1: Setup and deploy\n- Git clone the existing template repository.\n- `Procfile`, `requirements.txt`, `conda-requirements.txt`, and `runtime.txt`\n  contain some default settings.\n- There is some boilerplate HTML in `templates/`\n- Create Heroku application with `heroku create \u003capp_name\u003e` or leave blank to\n  auto-generate a name.\n- (Suggested) Use the [conda buildpack](https://github.com/kennethreitz/conda-buildpack).\n  If you choose not to, put all requirements into `requirements.txt`\n\n  `heroku config:add BUILDPACK_URL=https://github.com/kennethreitz/conda-buildpack.git`\n- *Question*: What are the pros and cons of using conda vs. pip?\n- Deploy to Heroku: `git push heroku master`\n- You should be able to see your site at `https://\u003capp_name\u003e.herokuapp.com`\n- A useful reference is the Heroku [quickstart guide](https://devcenter.heroku.com/articles/getting-started-with-python-o).\n\n## Step 2: Get data from API and put it in pandas\n- Use the `requests` library to grab some data from a public API. This will\n  often be in JSON format, in which case `simplejson` will be useful.\n- Build in some interactivity by having the user submit a form which determines which data is requested.\n- Create a `pandas` dataframe with the data.\n\n## Step 3: Use Bokeh to plot pandas data\n- Create a Bokeh plot from the dataframe.\n- Consult the Bokeh [documentation](http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html)\n  and [examples](https://github.com/bokeh/bokeh/tree/master/examples/embed).\n- Make the plot visible on your website through embedded HTML or other methods - this is where Flask comes in to manage the interactivity and display the desired content.\n- Some good references for Flask: [This article](https://realpython.com/blog/python/python-web-applications-with-flask-part-i/), especially the links in \"Starting off\", and [this tutorial](https://github.com/bev-a-tron/MyFlaskTutorial).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick-llgc%2Fsimpletickerplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrick-llgc%2Fsimpletickerplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick-llgc%2Fsimpletickerplot/lists"}