{"id":17047377,"url":"https://github.com/bhaveshan/munro","last_synced_at":"2026-02-08T19:36:47.048Z","repository":{"id":50189430,"uuid":"193136500","full_name":"bhaveshAn/munro","owner":"bhaveshAn","description":"https://pacific-dusk-33661.herokuapp.com","archived":false,"fork":false,"pushed_at":"2022-12-08T05:48:11.000Z","size":13,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-19T23:24:13.995Z","etag":null,"topics":["bse","cherrypy","heroku","python3","redis","stocks"],"latest_commit_sha":null,"homepage":"","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/bhaveshAn.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":"2019-06-21T17:27:20.000Z","updated_at":"2023-03-08T01:42:18.000Z","dependencies_parsed_at":"2023-01-24T13:10:13.838Z","dependency_job_id":null,"html_url":"https://github.com/bhaveshAn/munro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bhaveshAn/munro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaveshAn%2Fmunro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaveshAn%2Fmunro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaveshAn%2Fmunro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaveshAn%2Fmunro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhaveshAn","download_url":"https://codeload.github.com/bhaveshAn/munro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhaveshAn%2Fmunro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29240704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T18:06:38.086Z","status":"ssl_error","status_checked_at":"2026-02-08T18:06:09.124Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bse","cherrypy","heroku","python3","redis","stocks"],"created_at":"2024-10-14T09:49:20.051Z","updated_at":"2026-02-08T19:36:47.031Z","avatar_url":"https://github.com/bhaveshAn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Munro\n\n## Problem Statement\n\nBSE publishes a **Bhavcopy** file every day at https://www.bseindia.com/markets/MarketInfo/BhavCopy.aspx\n\n1. Develop a python script which does the following :\n\n* Downloads the Equity bhavcopy zip from the above page.\n* Extracts and parses the CSV file in it.\n* Writes the records into Redis into appropriate data structures (Fields: code, name, open, high, low, close)\n\n2. Develop a simple CherryPy python web application which does the following :\n\n* Renders an HTML5 + CSS3 page that lists the top 10 stock entries from the Redis DB in a table.\n* Has a searchbox that lets you search the entries by the `name` field in Redis and renders it in a table.\n\n## Solution (Tested on Python 3.5.2)\n\n**Requirements  -  Redis**\n* User can change settings in `config.py`\n\n### Creating Virtual Environment\n\n```sh\nvirtualenv -p python3 venv\nsource venv/bin/activate\n```\n\n### Installing the dependencies\n\n```sh\npip install -r requirements.txt\n```\n\n### Running the script and web app\n\n* Set `APP_CONFIG` enviroment variable (defaults to `production`)\n\n```sh\nexport APP_CONFIG=\"development\"\n```\n\n* Running the script for data of 2 days back\n```sh\npython stocks.py\n```\n\n* Running the script for specific date e.g. 20-06-2019\n\n```sh\npython stocks.py 20-06-2019\n```\n\n* Running the CherryPy Web App\n\n```sh\npython server.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhaveshan%2Fmunro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhaveshan%2Fmunro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhaveshan%2Fmunro/lists"}