{"id":19463313,"url":"https://github.com/msdeep14/securebank","last_synced_at":"2026-04-20T13:05:08.388Z","repository":{"id":39840691,"uuid":"198447863","full_name":"msdeep14/SecureBank","owner":"msdeep14","description":"API service to request bank details specific to query URL","archived":false,"fork":false,"pushed_at":"2022-05-25T02:48:04.000Z","size":12205,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T14:03:23.798Z","etag":null,"topics":["banking-applications","curl","django","django-rest-framework","djangorestframework-jwt","heroku","heroku-app","jwt","jwt-authentication","postgres-database","python","python37","rest-api"],"latest_commit_sha":null,"homepage":"","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/msdeep14.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-07-23T14:31:08.000Z","updated_at":"2021-03-27T04:27:05.000Z","dependencies_parsed_at":"2022-08-27T19:22:25.304Z","dependency_job_id":null,"html_url":"https://github.com/msdeep14/SecureBank","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msdeep14/SecureBank","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msdeep14%2FSecureBank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msdeep14%2FSecureBank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msdeep14%2FSecureBank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msdeep14%2FSecureBank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msdeep14","download_url":"https://codeload.github.com/msdeep14/SecureBank/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msdeep14%2FSecureBank/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["banking-applications","curl","django","django-rest-framework","djangorestframework-jwt","heroku","heroku-app","jwt","jwt-authentication","postgres-database","python","python37","rest-api"],"created_at":"2024-11-10T18:09:43.374Z","updated_at":"2026-04-20T13:05:08.369Z","avatar_url":"https://github.com/msdeep14.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SecureBank\nAPI service to request bank details specific to query URL. \nExample:\n1. Get all bank details for given IFSC code.\n2. Get all banks in a city.\n\nHosted on https://deepsecurebank.herokuapp.com/\n\n## Application Details:\n\n**Dataset:** https://github.com/snarayanank2/indian_banks \n\nUse `curl` to fetch bank details from server. You can specify `limit` and `offset` parameters skip and limit the number of results fetched from server. Refer examples below:\n\n```\n\u003e out=$(curl -X POST -H \"Content-Type: application/json\" -d '{\"username\": \"mandeep\", \"password\": \"mandeep\"}' https://deepsecurebank.herokuapp.com/api/token/)\n\n\u003e echo $out\n{\"refresh\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTU2NDc1MzAzNywianRpIjoiODAzNDkzMWM0ZGZiNGQyYzlkMTE1M2VmMzliNTMwOTAiLCJ1c2VyX2lkIjoxfQ.iwbe-sDEViCdTxlAN48fEjTaL-H9YCtrB2QUnbAdovE\",\"access\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTY0MzIxMDM3LCJqdGkiOiJlMGQ3NjMwM2Q3ZWY0MzUwYTQ5NTgwOWZhYWNiM2VhNCIsInVzZXJfaWQiOjF9.snne4DwHuU1LxekM7WKPMeoQR435AmNXUwqiqm575vM\"}\n\n\u003e access=$(jq -r \".access\" \u003c\u003c\u003c\"$out\")\n\u003e refresh=$(jq -r \".refresh\" \u003c\u003c\u003c\"$out\")\n\nReturn two enteris after skipping first 3 for given bankname and cityname\n\u003e curl -H \"Authorization: Bearer $access\" https://deepsecurebank.herokuapp.com/fetchbank/bankname\\=ABHYUDAYA+COOPERATIVE+BANK+LIMITED\\\u0026cityname\\=MUMBAI\\\u0026limit\\=2\\\u0026offset\\=3/\n[{\"ifsc\":\"ABHY0065004\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"BHANDUP\",\"address\":\"CHETNA APARTMENTS, J.M.ROAD, BHANDUP, MUMBAI-400078\",\"district\":\"GREATER MUMBAI\",\"city\":\"MUMBAI\",\"state\":\"MAHARASHTRA\"},{\"ifsc\":\"ABHY0065005\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"DARUKHANA\",\"address\":\"POTIA IND.ESTATE, REAY ROAD (E), DARUKHANA, MUMBAI-400010\",\"district\":\"GREATER MUMBAI\",\"city\":\"MUMBAI\",\"state\":\"MAHARASHTRA\"}]\n\nReturn first 4 enteries for given bankname and cityname\n\u003e curl -H \"Authorization: Bearer $access\" https://deepsecurebank.herokuapp.com/fetchbank/bankname\\=ABHYUDAYA+COOPERATIVE+BANK+LIMITED\\\u0026cityname\\=MUMBAI\\\u0026limit\\=4/\n[{\"ifsc\":\"ABHY0065001\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"RTGS-HO\",\"address\":\"ABHYUDAYA BANK BLDG., B.NO.71, NEHRU NAGAR, KURLA (E), MUMBAI-400024\",\"district\":\"GREATER MUMBAI\",\"city\":\"MUMBAI\",\"state\":\"MAHARASHTRA\"},{\"ifsc\":\"ABHY0065002\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"ABHYUDAYA NAGAR\",\"address\":\"ABHYUDAYA EDUCATION SOCIETY, OPP. BLDG. NO. 18, ABHYUDAYA NAGAR, KALACHOWKY, MUMBAI - 400033\",\"district\":\"GREATER MUMBAI\",\"city\":\"MUMBAI\",\"state\":\"MAHARASHTRA\"},{\"ifsc\":\"ABHY0065003\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"BAIL BAZAR\",\"address\":\"KMSPM'S SCHOOL, WADIA ESTATE, BAIL BAZAR-KURLA(W), MUMBAI-400070\",\"district\":\"GREATER MUMBAI\",\"city\":\"MUMBAI\",\"state\":\"MAHARASHTRA\"},{\"ifsc\":\"ABHY0065004\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"BHANDUP\",\"address\":\"CHETNA APARTMENTS, J.M.ROAD, BHANDUP, MUMBAI-400078\",\"district\":\"GREATER MUMBAI\",\"city\":\"MUMBAI\",\"state\":\"MAHARASHTRA\"}]\n\nReturn all the enteries for given bankname and cityname\n\u003e curl -H \"Authorization: Bearer $access\" https://deepsecurebank.herokuapp.com/fetchbank/bankname\\=ABHYUDAYA+COOPERATIVE+BANK+LIMITED\\\u0026cityname\\=MUMBAI/\n[{\"ifsc\":\"ABHY0065001\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"RTGS-HO\",\"address\":\"ABHYUDAYA BANK BLDG., B.NO.71, NEHRU NAGAR, KURLA (E), MUMBAI-400024\",\"district\":\"GREATER MUMBAI\",\"city\":\"MUMBAI\",\"state\":\"MAHARASHTRA\"}......\n\nFor /fetchifsc/, it can return maximum of 1 entry as IFSC code is unique for each bank,eg. If you specify offset\u003e0, it will return []\n\u003e curl -H \"Authorization: Bearer $access\" https://deepsecurebank.herokuapp.com/fetchifsc/ifsc\\=ABHY0065002\\\u0026limit\\=2/\n[{\"ifsc\":\"ABHY0065002\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"ABHYUDAYA NAGAR\",\"address\":\"ABHYUDAYA EDUCATION SOCIETY, OPP. BLDG. NO. 18, ABHYUDAYA NAGAR, KALACHOWKY, MUMBAI - 400033\",\"city\":\"MUMBAI\",\"district\":\"GREATER MUMBAI\",\"state\":\"MAHARASHTRA\"}]\n\n\u003e curl -H \"Authorization: Bearer $access\" https://deepsecurebank.herokuapp.com/fetchifsc/ifsc\\=ABHY0065002\\\u0026limit\\=2\\\u0026offset\\=0/\n[{\"ifsc\":\"ABHY0065002\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"ABHYUDAYA NAGAR\",\"address\":\"ABHYUDAYA EDUCATION SOCIETY, OPP. BLDG. NO. 18, ABHYUDAYA NAGAR, KALACHOWKY, MUMBAI - 400033\",\"city\":\"MUMBAI\",\"district\":\"GREATER MUMBAI\",\"state\":\"MAHARASHTRA\"}]\n\n\u003e curl -H \"Authorization: Bearer $access\" https://deepsecurebank.herokuapp.com/fetchifsc/ifsc\\=ABHY0065002/\n[{\"ifsc\":\"ABHY0065002\",\"bank_name\":\"ABHYUDAYA COOPERATIVE BANK LIMITED\",\"branch\":\"ABHYUDAYA NAGAR\",\"address\":\"ABHYUDAYA EDUCATION SOCIETY, OPP. BLDG. NO. 18, ABHYUDAYA NAGAR, KALACHOWKY, MUMBAI - 400033\",\"city\":\"MUMBAI\",\"district\":\"GREATER MUMBAI\",\"state\":\"MAHARASHTRA\"}]\n\n\u003e curl -H \"Authorization: Bearer $access\" https://deepsecurebank.herokuapp.com/fetchifsc/ifsc\\=ABHY00650EE02/\n[{\"Message\":\"NOT FOUND\"}]\n\n\u003e curl -H \"Authorization: Bearer $access\" https://deepsecurebank.herokuapp.com/fetchifsc/                    \n[{\"Message\":\"bank ifsc code is required\"}]\n\n```\n\n**NOTE**: You will need `jq` to installed on command line, else you can copy access token from `echo $out`\n\n## Development\nMake sure you have python virtualenv installed\n\n`source vbank/bin/activate`\n\nIf compiling on local host\n1. Make sure to set `SECRET_KEY` as environment variable\n2. Add entry `'127.0.0.1'` to `ALLOWED_HOSTS`\n3. Set local postgresql database `bankdb` and load data from https://github.com/snarayanank2/indian_banks\n```\n\u003e pg_ctl -D /usr/local/var/postgres start\n\n\u003e createdb -h localhost -p 5432  bankdb \n\n\u003e psql -h localhost bankdb \u003c indian_banks.sql\n\n\u003e psql -h localhost bankdb\n```\n\n## RESOURCES\n1. You can follow doc for deploying django app to Heroku: https://www.codementor.io/jamesezechukwu/how-to-deploy-django-app-on-heroku-dtsee04d4\n2. Fix whitenoise issue while following doc in Point 1, https://stackoverflow.com/questions/55813584/django-whitenoise-configuration-is-incompatible-with-whitenoise-v4-0\n3. To set secret key as environment variable on Heroku server\n`heroku config:set SECRET_KEY='\u003cYOUR_SECRET_KEY\u003e'`\n4. To push local psql db to Heroku\n`heroku pg:push bankdb \u003cheroku-db\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsdeep14%2Fsecurebank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsdeep14%2Fsecurebank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsdeep14%2Fsecurebank/lists"}