{"id":20885326,"url":"https://github.com/lab11/s2sim-python-client-lib","last_synced_at":"2025-08-02T04:35:59.748Z","repository":{"id":23100306,"uuid":"26454459","full_name":"lab11/s2sim-python-client-lib","owner":"lab11","description":"A Python library for S2Sim clients.","archived":false,"fork":false,"pushed_at":"2014-11-15T00:14:29.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-12T17:50:28.011Z","etag":null,"topics":[],"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/lab11.png","metadata":{"files":{"readme":"README","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":"2014-11-10T20:35:18.000Z","updated_at":"2014-11-12T03:59:17.000Z","dependencies_parsed_at":"2022-08-21T20:30:32.901Z","dependency_job_id":null,"html_url":"https://github.com/lab11/s2sim-python-client-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lab11/s2sim-python-client-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab11%2Fs2sim-python-client-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab11%2Fs2sim-python-client-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab11%2Fs2sim-python-client-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab11%2Fs2sim-python-client-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lab11","download_url":"https://codeload.github.com/lab11/s2sim-python-client-lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lab11%2Fs2sim-python-client-lib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334642,"owners_count":24233795,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-18T08:13:10.206Z","updated_at":"2025-08-02T04:35:59.721Z","avatar_url":"https://github.com/lab11.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"To Do:\n\n- Extend S2SimSession and the messages to reflect the new interoperability doc\n- Write a sample negotiation/forecast client? Will need for testing anyway.\n- Robustification of S2SimSession connection to timeouts\n\nPython Client API:\n\n# Create a S2Sim session object with an object name (must be obtained from S2Sim maintainers).\nsession = S2SimSession(obj_name)\n\n# Connect to the S2Sim server. At this time, address='seelabc.ucsd.edu' and port=26999.\nsession.s2sim_connect(address, port)\n\n# Disconnect cleanly from the S2Sim server.\nsession.s2sim_disconnect()\n\n# Report your energy demand for the interval.\nsession.report_power(power_consumed)\n\n# Get simulation time from S2Sim server.\nsession.get_time()\n\n# Get last known price from S2Sim server. May not be final price for the interval.\nsession.get_price()\n\n# Send list of projected energy demands in exchange for\nsession.send_demand_negotiation(energy_demands)\n\n# Block until the client receives the interval price from the S2Sim server.\nsession.wait_for_price()\n\n# Block until client receives message from S2Sim server\nsession.receive_from_server()\n\nSee S2SimSession.py for implementation details.\nSee Interoperability Document version XX for API details. (INCLUDE LINK)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab11%2Fs2sim-python-client-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flab11%2Fs2sim-python-client-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flab11%2Fs2sim-python-client-lib/lists"}