# retoor <retoor@molodetz.nl>

from __future__ import annotations

import os

from client import DevPlace

URL = os.environ.get("DEVPLACE_URL", "https://devplace.net")


def main() -> None:
    dp = DevPlace(URL)
    names = dp.methods()
    print(f"{len(names)} methods available on {URL}/xmlrpc\n")
    for name in names:
        print("###", name)
        print(dp.help(name))
        print()


if __name__ == "__main__":
    main()
