{"id":20200863,"url":"https://github.com/openclimatefix/ruvnl-consumer-app","last_synced_at":"2026-02-08T15:32:57.862Z","repository":{"id":219133479,"uuid":"748259718","full_name":"openclimatefix/ruvnl-consumer-app","owner":"openclimatefix","description":"Data consumer that scrapes/saves data from the Rajasthan Urja Vikas Nigam Limited (RUVNL) website.","archived":false,"fork":false,"pushed_at":"2024-11-04T11:15:35.000Z","size":96,"stargazers_count":0,"open_issues_count":7,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T23:58:34.883Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openclimatefix.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["openclimatefix"],"patreon":null,"open_collective":"openclimatefix","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2024-01-25T15:56:01.000Z","updated_at":"2025-01-16T15:02:00.000Z","dependencies_parsed_at":"2024-11-04T12:19:32.269Z","dependency_job_id":"63a44cd6-c10b-4ab7-8b7e-759f7ef6266c","html_url":"https://github.com/openclimatefix/ruvnl-consumer-app","commit_stats":null,"previous_names":["openclimatefix/ruvnl-consumer-app"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fruvnl-consumer-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fruvnl-consumer-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fruvnl-consumer-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openclimatefix%2Fruvnl-consumer-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openclimatefix","download_url":"https://codeload.github.com/openclimatefix/ruvnl-consumer-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241637191,"owners_count":19994927,"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-14T04:45:54.172Z","updated_at":"2026-02-08T15:32:57.828Z","avatar_url":"https://github.com/openclimatefix.png","language":"Python","funding_links":["https://github.com/sponsors/openclimatefix","https://opencollective.com/openclimatefix"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eRUVNL-consumer-app\u003c/h1\u003e\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\nThis consumer pulls data from the Rajasthan Urja Vikas Nigam Limited (RUVNL) website.\n\nThe API used is `http://sldc.rajasthan.gov.in/rrvpnl/read-sftp?type=overview`\n\n## Install dependencies (requires [poetry](https://python-poetry.org/))\n\n```\npoetry install\n```\n\n## Linting and formatting\n\nLint with:\n```\nmake lint\n```\n\nFormat code with:\n```\nmake format\n```\n\n## Running tests\n\n```\nmake test\n```\n\n## Running the app locally\nReplace `{DB_URL}` with a postgres DB connection string (see below for setting up a ephemeral local DB)\n\nIf testing on a local DB, you may use the following script to seed the the DB with a dummy user, site and site_group. \n```\nDB_URL={DB_URL} poetry run seeder\n```\n⚠️ Note this is a destructive script and will drop all tables before recreating them to ensure a clean slate. DO NOT RUN IN PRODUCTION ENVIRONMENTS\n\nThis example invokes app.py and passes the help flag\n```\nDB_URL={DB_URL} poetry run app --help\n```\n\n### Starting a local database using docker\n\n```bash\n    docker run \\\n        -it --rm \\\n        -e POSTGRES_USER=postgres \\\n        -e POSTGRES_PASSWORD=postgres \\\n        -p 54545:5432 postgres:14-alpine \\\n        postgres\n```\n\nThe corresponding `DB_URL` will be\n\n`postgresql://postgres:postgres@localhost:54545/postgres`\n\n## Building and running in [Docker](https://www.docker.com/)\n\nBuild the Docker image\n```\nmake docker.build\n```\n\nRun the image (this example invokes app.py and passes the help flag)\n```\ndocker run -it --rm ocf/ruvnl-consumer-app --help\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://anaskhan.me\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/83116240?v=4?s=100\" width=\"100px;\" alt=\"Anas Khan\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAnas Khan\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openclimatefix/ruvnl-consumer-app/commits?author=anxkhn\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/peterdudfield\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/34686298?v=4?s=100\" width=\"100px;\" alt=\"Peter Dudfield\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ePeter Dudfield\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openclimatefix/ruvnl-consumer-app/commits?author=peterdudfield\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://chrisxbriggs.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/617309?v=4?s=100\" width=\"100px;\" alt=\"Chris Briggs\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eChris Briggs\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openclimatefix/ruvnl-consumer-app/commits?author=confusedmatrix\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/ADIMANV\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/68527614?v=4?s=100\" width=\"100px;\" alt=\"Aditya Sawant\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAditya Sawant\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openclimatefix/ruvnl-consumer-app/commits?author=ADIMANV\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://suvanbanerjee.github.io\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/104707806?v=4?s=100\" width=\"100px;\" alt=\"Suvan Banerjee\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSuvan Banerjee\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openclimatefix/ruvnl-consumer-app/commits?author=suvanbanerjee\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclimatefix%2Fruvnl-consumer-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenclimatefix%2Fruvnl-consumer-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenclimatefix%2Fruvnl-consumer-app/lists"}