Files
devplacepy/examples/xmlrpc/introspect.py
T
retoor c151325916 feat: add plug-and-play devRant API client examples with Python and JavaScript
Add complete set of example scripts for the devRant REST protocol under
examples/devrant/, including reusable client libraries, a rant poster,
a live feed watcher with keyword-based auto-upvote, and an end-to-end
smoke test that exercises every endpoint. Both Python (stdlib-only) and
JavaScript (Node 18+ global fetch) implementations are provided.
2026-06-14 07:48:37 +00:00

24 lines
436 B
Python

# 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()