This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Google Drive MCP Server | |
| This server provides Model Context Protocol (MCP) integration with Google Drive, | |
| allowing clients to: | |
| - List and search files in Google Drive | |
| - Read file contents | |
| - List, read, and write Google Sheet data | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Mixins | |
| mixin input(type, label) | |
| .input-container | |
| input(type='#{type}' id='#{label}' required) | |
| label(for='#{label}')=label | |
| .bar | |
| mixin button(text) | |
| .button-container | |
| button | |
| span=text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dictionary = { "some_key": "some_value" } | |
| for key, value in dictionary.items(): | |
| print("%s --> %s" %(key, value)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dictionary = { "some_key": "some_value" } | |
| for key in dictionary: | |
| print("%s --> %s" %(key, dictionary[key])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| books = [ | |
| "book1", | |
| "book2", | |
| "book3", | |
| "book4", | |
| "book5" | |
| ] | |
| for book in books: | |
| print(book) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dict_person = { | |
| "name": "Leandro", | |
| "nickname": "Len", | |
| "nationality": "American", | |
| } | |
| dict_person['age'] = 24 | |
| print("My name is %s" %(dict_person["name"])) | |
| print("But you can call me %s" %(dict_person["nickname"])) | |
| print("And by the way I'm %i and %s" %(dict_person["age"], dictionary_tk["nationality"])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dictionary_tk = { | |
| "name": "Leandro", | |
| "nickname": "Len", | |
| "nationality": "Americal" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| persons = [] | |
| persons.append("Person A") | |
| persons.append("Person B") | |
| print(persons[0]) # Person A | |
| print(persons[1]) # Person B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| numbers = [5, 7, 1, 3, 4] | |
| print(numbers[0]) # 5 | |
| print(numbers[1]) # 7 | |
| print(numbers[4]) # 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| number = [1,2,3,4,5,6,7,8,9,10] | |
| for num in number: | |
| print(num) |
NewerOlder