{"id":20374828,"url":"https://github.com/gisce/liquicomun","last_synced_at":"2025-04-12T07:16:55.826Z","repository":{"id":51149235,"uuid":"102482618","full_name":"gisce/liquicomun","owner":"gisce","description":"Liquicomun","archived":false,"fork":false,"pushed_at":"2021-05-21T08:16:11.000Z","size":4644,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-26T02:32:19.328Z","etag":null,"topics":["api","esios","hacktoberfest","parser","python","ree"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gisce.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":"2017-09-05T13:09:40.000Z","updated_at":"2022-10-17T11:45:01.000Z","dependencies_parsed_at":"2022-09-04T18:22:08.019Z","dependency_job_id":null,"html_url":"https://github.com/gisce/liquicomun","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fliquicomun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fliquicomun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fliquicomun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fliquicomun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gisce","download_url":"https://codeload.github.com/gisce/liquicomun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328075,"owners_count":21085257,"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":["api","esios","hacktoberfest","parser","python","ree"],"created_at":"2024-11-15T01:27:15.040Z","updated_at":"2025-04-12T07:16:55.800Z","avatar_url":"https://github.com/gisce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Liquicomun lib\n\nIt provides a simple interface to reach ESIOS Liquicomun data.\n\nHandled data:\n- Perdidas (losses)\n- Precios (prices)\n\n## Installation\n\n```\npip install liquicomun\n```\n\n## Usage\n\n### Fetch all available losses for a concrete date\n\nIt provides an iterator that handle all the available losses for the requested scenario.\n\nFor each iteration it return the related `next` Perdida instance (loss).\n\nStart and end dates are mandatory.\n\nTariffs and subsystems list are optional, and override the default list of elements to process.\n\n```\nfrom liquicomun import Perdidas\n\nscenario = {\n    'date_start': '20171001',\n    'date_end': '20171031',\n    #'tariffs': ['2.0A'],                   # Optional tariffs list\n    #'subsystems': [\"baleares\", \"ceuta\"],   # Optional subsystems list\n}\n\nlosses = Perdidas(**scenario)\n\n# Iterate losses\nfor a_loss in losses:\n    current_tariff = a_loss.tariff\n    current_subsystem = a_loss.subsystem\n    data_matrix = a_loss.matrix\n    data_version = a_loss.version\n\n```\n\n### Fetch just the losses for one tariff and subsystem\n\nIt return a Loss instance\n\nThe expected tariff, start and end dates are mandatory.\n\nSubsystem and version are optional. If no subsystem is provided will fetch the peninsular data.\n\n```\nfrom liquicomun import Perdida\n\nscenario = {\n    'date_start': '20171001',\n    'date_end': '20171031',\n    'tariff': '2.0A',\n    #'subsystem': \"baleares\",              # default \"\" -\u003e peninsula\n}\n\na_loss = Perdida(**scenario)\n\ndata_matrix = a_loss.matrix\ndata_version = a_loss.version\ncurrent_tariff = a_loss.tariff\ncurrent_subsystem = a_loss.subsystem\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fliquicomun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgisce%2Fliquicomun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fliquicomun/lists"}