Flask-RESTful Documentation Release 0.3.10section. A Minimal API A minimal Flask-RESTful API looks like this: from flask import Flask from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class HelloWorld(Resource): CRUD resource for a todo application (of course) looks like this: from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) todos = {} class TodoSimple(Resource): "Change my brakepads"} Or from python if you have the requests library installed: >>> from requests import put, get >>> put('http://localhost:5000/todo1', data={'data': 'Remember the milk'}).json() {u'todo1':0 码力 | 42 页 | 84.60 KB | 1 年前3
Click Documentation
Release 4.2.dev0of subcommands at runtime What does it look like? Here is an example of a simple Click program: import click @click.command() @click.option('--count', default=1, help='Number of greetings.') @click.option('--name' its simplest, just decorating a function with this decorator will make it into a callable script: import click @click.command() def hello(): click.echo('Hello World!') What’s happening is that the decorator that is a perfectly valid name it means that if another piece of code wants to import from that module it will trigger the import a second time under it’s real name and all the sudden your code is imported0 码力 | 101 页 | 407.32 KB | 1 年前3
PlantUML 1.2020.22 Guide de référence du langagePlantUML (1.2020.22) 268 / 294 20.17 Building custom library [!import, !include] 20 PREPROCESSEUR 20.17 Building custom library [!import, !include] It's possible to package a set of included files into imported into your diagram using !import directive. Once the library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l'appelant de la manière suivante <$nom_du_sprite> 0 码力 | 295 页 | 3.03 MB | 1 年前3
PlantUML 1.2020.23 Guide de référence du langagePlantUML (1.2020.23) 281 / 307 20.17 Building custom library [!import, !include] 20 PREPROCESSEUR 20.17 Building custom library [!import, !include] It's possible to package a set of included files into imported into your diagram using !import directive. Once the library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l'appelant de la manière suivante <$nom_du_sprite> 0 码力 | 308 页 | 3.12 MB | 1 年前3
PlantUML 1.2021.1 Guide de référence du langagecustom library [!import, !include] It’s possible to package a set of included files into a single .zip or .jar archive. This single zip/jar can then be imported into your diagram using !import directive. library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This just adds "customLibrary.zip" in the search path !include myFolder/myFile inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l’appelant de la manière suivante <$nom_du_sprite> 0 码力 | 385 页 | 4.05 MB | 1 年前3
PlantUML 1.2021.2 Guide de référence du langagecustom library [!import, !include] It’s possible to package a set of included files into a single .zip or .jar archive. This single zip/jar can then be imported into your diagram using !import directive. library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This just adds "customLibrary.zip" in the search path !include myFolder/myFile inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l’appelant de la manière suivante <$nom_du_sprite> 0 码力 | 391 页 | 4.10 MB | 1 年前3
PlantUML 1.2021.3 Guide de référence du langagecustom library [!import, !include] It’s possible to package a set of included files into a single .zip or .jar archive. This single zip/jar can then be imported into your diagram using !import directive. library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This just adds "customLibrary.zip" in the search path !include myFolder/myFile inclure le ficheier qui contient le sprite (ex: !include). Une fois importé, vous pouvez utiliser le sprite normallement en l’appelant de la manière suivante <$nom_du_sprite> 0 码力 | 406 页 | 4.24 MB | 1 年前3
PlantUML 1.2023.11 Guide de référence du langagePlantUML (1.2023.11) 490 / 533 25.16 Building custom library [!import, !include] 25 PREPROCESSEUR 25.16 Building custom library [!import, !include] It’s possible to package a set of included files into imported into your diagram using !import directive. Once the library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This note again the use of the prefix MA_. Example of usage: @startuml !include' To import the sprite file you DON'T need to place a prefix! !include MA_FOLDER_MOVE(Red 0 码力 | 534 页 | 7.56 MB | 1 年前3
PlantUML 1.2019.6 Guide de référence du langageimported into your diagram using !import directive. Once the library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This LIBRARY again the use of the prefix MA_. Example of usage: @startuml !include' To import the sprite file you DON'T need to place a prefix! !include MA_FOLDER_MOVE(Red macro to create the empty rectangle. Example of usage: @startuml !include ' To import the sprite file you DON'T need to place a prefix! !include MA_FOLDER_MOVE(Red 0 码力 | 174 页 | 1.91 MB | 1 年前3
PlantUML 1.2019.1 Guide de référence du langageimported into your diagram using !import directive. Once the library has been imported, you can !include file from this single zip/jar. Example: @startuml !import /path/to/customLibrary.zip ' This just 146 19.5 Office 19 STANDARD LIBRARY Example of usage: @startuml !include' To import the sprite file you DON'T need to place a prefix! !include MA_FOLDER_MOVE(Red macro to create the empty rectangle. Example of usage: @startuml !include ' To import the sprite file you DON'T need to place a prefix! !include MA_FOLDER_MOVE(Red 0 码力 | 147 页 | 1.85 MB | 1 年前3
共 16 条
- 1
- 2













