import json

def JSONReadable(data):
    return json.dumps(data, indent=4, sort_keys=True)


class Package:
    def __init__(self, name: str):
        import re
        assert re.match('^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$', name, re.IGNORECASE)
