Skip to content

Navok85/PyFactoryBridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

➡️ Method References ⬅️

Satisfactory Dedicated Server HTTP API Python wrapper
pip install pyfactorybridge

Overview

This is a Python wrapper for the Satisfactory Dedicated Server HTTP API. It is designed to make it easier to interact with the API and to provide a more Pythonic interface.

Features

Direct 1:1 implementation to the offical documentation. Most API endpoints supported (bar downloading & uploading saves, and some other ways of authenticating). No need to manually construct URLs or handle HTTP requests. Easy to use and understand.

Demo

All methods are documented in the methods.md file.

from pyfactorybridge import API
from pyfactorybridge.exceptions import SaveGameFailed

# Authenticate with the password... (not recommended)
# satisfactory = API(address="XXXX:7777", password="XXXX")

# Or with the token...
satisfactory = API(address="XXXX:7777", token="XXXX")

try:
    satisfactory.save_game(SaveName="Test")
except SaveGameFailed as error:
    print("Could not save game!")

print(satisfactory.get_server_options())

satisfactory.shutdown()

ToDo

  • Update documentation to reflect error exceptions
  • Add support for more authentication methods
  • Implement more logging and catch request errors
  • Add support for SSL certifications to avoid using verify=false
  • Add support for downloading and uploading games

About

Satisfactory 1.0 Dedicated server API python wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%