steamcmd / api

Read-only API interface for steamcmd app_info
https://www.steamcmd.net
MIT License
56 stars 7 forks source link

Use subprocess stdin & stdout to interact with steamcmd to get info for appids that require querying multiple times. #26

Closed 1337cookie closed 3 years ago

1337cookie commented 3 years ago

Fix for #16 & #19

This method of interacting with steamcmd could potentially be used to make the response time of the api faster by leaving a prompt open for the next request.

jonakoudijs commented 3 years ago

Awesome work! My apologies for the late reply, I will have a deeper look into this (and merge it) as soon as I can.

1337cookie commented 3 years ago

Thanks, it's a bit hacky and I'm not familiar with python or its conventions. The hackyness is a bit necessary given the way steamcmd and app_info_print work.

jonakoudijs commented 3 years ago

Again my apologies for the late reply. I am fairly short on time these days.

And that is true, no way to get around that. But it looks great. I did some testing myself and it seems to work as expected! I am going to merge the PR and tag the code with a new version.