On PyPI: https://pypi.org/project/nlogin-py/
In terminal: pip install nlogin-py
from nlogin_py import Nlogin
# Creates an instance
nlogin = Nlogin("localhost", "root", "", "nlogin", False)from nlogin_py import Nlogin
# Creates an instance
nlogin = Nlogin("localhost", "root", "", "nlogin", False)
# Fetches the user identifier (search, mode)
user_id = nlogin.fetch_user_id("Player", Nlogin.FETCH_WITH_LAST_NAME)
# Verifies the password
is_valid = nlogin.verify_password(user_id, "password123")from nlogin_py import Nlogin
# Creates an instance
nlogin = Nlogin("localhost", "root", "", "nlogin", False)
# Registers a player (username, plain password, e-mail, mojang id (optional), bedrock id (optional))
success = nlogin.register("Player", "password123", "youremail@domain.com")from nlogin_py import Nlogin
# Creates an instance
nlogin = Nlogin("localhost", "root", "", "nlogin", False)
# Fetches the user identifier (search, mode)
user_id = nlogin.fetch_user_id("Player", Nlogin.FETCH_WITH_LAST_NAME)
# Changes the password (user identifier, new plain password)
success = nlogin.change_password(user_id, "newpassword123")This project is licensed under the GNU General Public License v3.0.
I used a PHP package from the author of the nLogin plugin. My package is an almost exact copy written in Python.