TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: pygls – a Pythonic generic language server

15 pointsby _isusover 6 years ago

1 comment

_isusover 6 years ago
I’m one of the software developers with Open Law Library (<a href="http:&#x2F;&#x2F;www.openlawlib.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.openlawlib.org&#x2F;</a>). We needed our VS Code extension, <i>Codify</i>, to communicate with our codification engine (basically a compiler for laws) which is written in Python. So we needed a native Python language server. We found Palantir&#x27;s excellent <i>python-language-server</i>, but instead of targeting Python directly, we needed one targeting legal XML. Basically, we needed a pythonic generic language server. Thus was born, <i>pygls</i> (pronounced like &quot;pie glass&quot;).<p>Our goal with <i>pygls</i> is to make it incredibly easy for anybody to write a language server for anything in Python. We have created a thin pythonic layer over the Language Server Protocol - giving the developer the core of what they need without getting in the way. Currently, it targets Python 3.5+ and has support for sync, async and threaded (using an <i>@thread</i> decorator) features and commands.<p>Python is one of our favorite languages, and VS Code one of our favorite editors. We hope <i>pygls</i> will make it possible for people to build many new and exciting language servers that leverage the power, ecosystem, and flexibility of Python.<p>This wouldn&#x27;t be possible without Daniel Elero&#x27;s hard work. Thank you, Daniel!
评论 #18735681 未加载