{"id":23700,"library":"factorio-rcon-py","title":"Factorio RCON Client","description":"A simple Python client for communicating with a Factorio game server via the RCON protocol. Latest version 2.1.3 supports Python >=3.8. Released as needed.","status":"active","version":"2.1.3","language":"python","source_language":"en","source_url":"https://github.com/conqp/factorio-rcon-py","tags":["factorio","rcon","game-server","client"],"install":[{"cmd":"pip install factorio-rcon-py","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Direct import from submodule is wrong; the correct path is factorio_rcon.RCONClient.","wrong":"from factorio_rcon.rcon import RCONClient","symbol":"RCONClient","correct":"from factorio_rcon import RCONClient"}],"quickstart":{"code":"from factorio_rcon import RCONClient\n\nclient = RCONClient('127.0.0.1', 27015, 'password')\nresponse = client.send_command('/players')\nprint(response)","lang":"python","description":"Connect to a Factorio server, send an RCON command, and print the response."},"warnings":[{"fix":"Ensure the server is reachable and the port is open.","message":"Connecting to a remote server may fail due to firewall or incorrect port. Default Factorio RCON port is 27015.","severity":"gotcha","affected_versions":"all"},{"fix":"Wrap RCONClient usage in a retry logic or recreate the client on failure.","message":"The client does not automatically reconnect. If the connection drops, create a new RCONClient instance.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install factorio-rcon-py'.","cause":"Library not installed or installed under a different name.","error":"ModuleNotFoundError: No module named 'factorio_rcon'"},{"fix":"Verify server is running with RCON enabled and correct port (default 27015).","cause":"Server is not running, RCON not enabled, or wrong IP/port.","error":"ConnectionRefusedError: [Errno 111] Connection refused"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}