PYLSP(1)

✨ PYLSP(1) ✨

okay so bestie, welcome to the pylsp manual page β€” part of the User Commands section, and honestly? it's giving main character energy for your editor πŸ’…


🌸 NAME 🌸

pylsp β€” Python Language Server 🐍✨


πŸ¦‹ SYNOPSIS πŸ¦‹

pylsp [OPTION]...

like. that's it. that's the whole vibe. options go here, everything else is the server doing its thing 🫢


πŸ’– DESCRIPTION πŸ’–

Run a Python Language Server following the Language Server Protocol.</purpose>

no cap, that's the entire job description. it runs a Python language server, and it does it following the Language Server Protocol β€” the LSP, iykyk 🌈. your editor talks, pylsp listens, everybody slays πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • --tcp β€” use a TCP server instead of stdio. switch up the transport, bestie 🧚
  • --host HOST β€” bind to this address. tell it where to sit πŸ’œ
  • --port PORT β€” bind to this port. tell it which door to use πŸšͺ✨
  • --check-parent-process β€” check whether parent process is still alive using os.kill(ppid, 0) and auto shut down language server process when parent process is not alive. literally the "are you still there? πŸ‘€" feature β€” if your parent process dips, the language server shuts itself down too. no lingering, no drama, periodt πŸ’€
  • --log-config LOG_CONFIG β€” path to a JSON file containing Python logging config. drop your logging config file path here πŸ““
  • --log-file LOG_FILE β€” redirect logs to the given file instead of writing to stderr. sending the receipts to a file instead of screaming them at stderr πŸ—‚οΈ. heads up though: has no effect if used with --log-config. so don't do both and expect magic, bestie 😭
  • -v, --verbose β€” increase verbosity of log output, overrides log config file. more words, more chaos, and yes β€” it overrides the log config file πŸ”₯
  • -h, --help β€” show a help message and exit. the classic. the icon. the one everybody types first πŸ‘‘

reminder bestie: --log-file and --log-config together = --log-file does nothing. it's not broken, it's just how it is πŸ™ˆ

and that's the whole page, mwah πŸ’‹ this was pylsp version 1.2.2, dated December 2020 β€” yes, December 2020, she's been iconic for a minute πŸ‘‘. go forth and code, bestie, you've got this πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from