The nx package comes bundled with PyNX and is available to use in your Python homebrew applications. It allows you to access Switch-specific elements such as buttons, filesystem, etc. via a high-level, object-oriented wrapper around libnx.
For help on installing, using, and contributing please visit the documentation.