def create(client, args):

	def validate_description(text):
		if len(text) == 0:
			print('Description may not be empty.  Try again.')
			return False
		return True

	def validate_name(text):
		if len(text) == 0:
			print('Name may not be empty.  Try again.')
			return False
		if any(char for char in text if char.isspace()):
			print('Name may not contain spaces.  Try again.')
			return False
		# What other characters don't belong in the name?
		return True

	def validate_homepage(text):
		# This is a lame excuse for validation.
		if len(text) == 0:
			print('Home page may not be empty.  Try again.')
			return False
		return True

	name = read_user_input('Repository name', validate_name)
	homepage = read_user_input('Homepage', validate_homepage)
	description = read_user_input('Description', validate_description)
	print(client.get_user().create_repo(name=name, description=description, homepage=homepage))
Create a new repository.
dataset/ETHPy150Open CMB/cligh/cligh/repos.py/create