Skip to content

Instantly share code, notes, and snippets.

@Lawouach
Created January 27, 2017 14:10
Show Gist options
  • Save Lawouach/27bca4374ce01b84639e954726e3080d to your computer and use it in GitHub Desktop.
Save Lawouach/27bca4374ce01b84639e954726e3080d to your computer and use it in GitHub Desktop.
Most basic Python Rug editor
# -*- coding: utf-8 -*-
from typing import Dict, Any
__all__ = ["editor"]
def edit(project: Any, params: Dict[str, str]) -> Dict[str, str]:
"""
Log the project's name
"""
print(project.name())
return {"status":"OK", "message": "Done!"}
editor = {
"tags": ["python"],
"name": "LogProjectName",
"description": "Log the project name",
"parameters": [],
"edit": edit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment