Skip to content
/ api Public
forked from steamcmd/api

Read-only API interface for steamcmd app_info

License

Notifications You must be signed in to change notification settings

Maelep/api

 
 

Repository files navigation

Build Status Snyk Vulnerabilities CodeFactor Code Style Service Status Image Size MIT License GitHub Release

SteamCMD API

Read-only API interface for steamcmd app_info

Container Image

The API is run via a Docker image which contains both the steamcmd binary and the Python code which is wrapped around it. You can build and run the container (locally) with Docker:

docker build -t steamcmd-api:test .
docker run -p 8080:8080 -d steamcmd-api:test

However during development, using Docker Compose is preferred. See the Development section for information.

Deploying

Newer versions of the API are automatically deployed on Heroku when a new version has been created on Github. Deployment is done via Github Actions

If you want or need to deploy manually you will have to authenticate locally:

heroku container:login

And use the following deployment commands:

heroku container:push web --app yourappname
heroku container:release web --app yourappname

Development

The easiest way to spin up the development environment is using Docker compose. This will build the image locally, mount the correct directory (src) and set the required environment variables. If you are on windows you should store the repository in the WSL filesystem or it will fail. Execute compose up in the root:

docker-compose up

Now you can reach the SteamCMD API locally on http://localhost:8080

To keep things simple, Black is used for code style / formatting. Part of the pipeline will check if the code is properly formatted according to Black code style. You can install it locally via pip:

pip install black

And then simply run it agains the Python source code:

black src

About

Read-only API interface for steamcmd app_info

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.2%
  • Dockerfile 3.8%