for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""Translate cli commands to non-cli code."""
import logging
from kytos.utils.users import UsersManager
log = logging.getLogger(__name__)
class UsersAPI:
"""An API for the command-line interface.
Use the config file only for required options. Static methods are called
by the parser and they instantiate an object of this class to fulfill the
request.
"""
user_manager = UsersManager()
@classmethod
def create(cls, args):
"""Create a new User in Napps server."""
result = cls.user_manager.register()
print(result)