Skip to content

Instantly share code, notes, and snippets.

@rondreas
Last active September 22, 2022 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rondreas/a2d396335b9c0832dae01ff71b9079b5 to your computer and use it in GitHub Desktop.
Save rondreas/a2d396335b9c0832dae01ff71b9079b5 to your computer and use it in GitHub Desktop.
Get count for all "servers"
import lx
host_svc = lx.service.Host()
# look over all lx.symbol.a_* constants,
for k, v in lx.symbol.__dict__.items():
if k.startswith("a_"):
print(f"{k}: {host_svc.NumServers(v)}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment