pymultilame
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| pymultilame [2018/08/27 07:13] – serge | pymultilame [2022/02/14 08:49] (Version actuelle) – supprimée serge | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ======Python: | ||
| - | <WRAP center round box centeralign 60%> | ||
| - | **Des scripts pour les tâches de tous les jours** | ||
| - | </ | ||
| - | |||
| - | |||
| - | ===== pymultilame ===== | ||
| - | |||
| - | ==== Des scripts python pour les tâches répétitives. ==== | ||
| - | |||
| - | < | ||
| - | Ce module propose les outils les plus courrant que j' | ||
| - | à utiliser en import ou en recopiant des bouts de code. | ||
| - | |||
| - | Ce module est une amélioration de | ||
| - | [mylabotools](https:// | ||
| - | qui n'est plus maintenu. | ||
| - | </ | ||
| - | === Comprend les rubriques === | ||
| - | |||
| - | * Blender: Des scripts spécifiques pour le Blender Game Engine 2.7x et qui ne peuvent tourner que dans Blender | ||
| - | * Twisted: des exemples de twisted en python3 | ||
| - | * Network: des sockets simples en python3 | ||
| - | * Tools: des outils utilisés fréquement | ||
| - | |||
| - | ==== Installation ==== | ||
| - | |||
| - | === Installation de Twisted pour python 3.x === | ||
| - | |||
| - | * [[https:// | ||
| - | |||
| - | < | ||
| - | sudo pip3 install twisted | ||
| - | </ | ||
| - | === Installation de pymultilame === | ||
| - | |||
| - | * [[https:// | ||
| - | |||
| - | < | ||
| - | sudo pip3 install -e git+https:// | ||
| - | </ | ||
| - | Mise à jour: | ||
| - | |||
| - | < | ||
| - | sudo pip3 install --upgrade git+https:// | ||
| - | </ | ||
| - | ==== Utilisation ==== | ||
| - | |||
| - | <code python> | ||
| - | from pymultilame.blendertools import scene_change | ||
| - | from pymultilame import HttpDownload | ||
| - | </ | ||
| - | ==== Licence ==== | ||
| - | |||
| - | Touls les scripts sont sous | ||
| - | |||
| - | GNU GENERAL PUBLIC LICENSE Version 3 | ||
| - | |||
| - | voir le fichier LICENSE | ||
| - | |||
| - | ==== Documentation ==== | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | |||
| - | ==== Conversion de README.md en dokuwiki ==== | ||
| - | |||
| - | < | ||
| - | pandoc README.md -f markdown -t dokuwiki -s -o README.dokuwiki | ||
| - | </ | ||
| - | ==== Merci à ==== | ||
| - | |||
| - | * [[https:// | ||
| - | |||
| - | =====Les sources sur github===== | ||
| - | |||
| - | * https:// | ||
| - | |||
| - | =====Aide===== | ||
| - | Obtenu avec pydoc3.5 | ||
| - | |||
| - | <code txt> | ||
| - | ====blendertools==== | ||
| - | CLASSES | ||
| - | builtins.object | ||
| - | VirtualGl | ||
| - | | ||
| - | class VirtualGl(builtins.object) | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | FUNCTIONS | ||
| - | droiteAffine(x1, | ||
| - | Retourne les valeurs de a et b de y=ax+b | ||
| - | à partir des coordonnées de 2 points. | ||
| - | | ||
| - | print_str_args(*args) | ||
| - | Imprime en terminal les variables en argument | ||
| - | Les variables doivent être sous forme de string, | ||
| - | par exemple | ||
| - | print_str_args(" | ||
| - | imprime la variable a qui a une valeur 42 | ||
| - | a = 42 | ||
| - | | ||
| - | scene_change(sceneOld, | ||
| - | End of sceneOld, load sceneNew. | ||
| - | Scene must be str: if scene = scene python object, name is scene.name | ||
| - | |||
| - | DATA | ||
| - | gl = < | ||
| - | |||
| - | FILE | ||
| - | / | ||
| - | |||
| - | |||
| - | |||
| - | ====fifolist==== | ||
| - | CLASSES | ||
| - | builtins.object | ||
| - | PileFIFO | ||
| - | | ||
| - | class PileFIFO(builtins.object) | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | FILE | ||
| - | / | ||
| - | |||
| - | |||
| - | |||
| - | ====mytools==== | ||
| - | DESCRIPTION | ||
| - | Des méthodes souvent appelées par les autres scripts, | ||
| - | regroupées dans une class MyTools | ||
| - | |||
| - | CLASSES | ||
| - | builtins.object | ||
| - | MyTools | ||
| - | | ||
| - | class MyTools(builtins.object) | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | DATA | ||
| - | __all__ = [' | ||
| - | |||
| - | FILE | ||
| - | / | ||
| - | |||
| - | |||
| - | |||
| - | ====http_download==== | ||
| - | DESCRIPTION | ||
| - | Télécharge une url. | ||
| - | Peut aussi l' | ||
| - | |||
| - | CLASSES | ||
| - | builtins.object | ||
| - | HttpDownload | ||
| - | | ||
| - | class HttpDownload(builtins.object) | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | FUNCTIONS | ||
| - | save_data_in_file(data, | ||
| - | Mode ' | ||
| - | Mode ' | ||
| - | donc enregistre un fichier | ||
| - | w ecrase | ||
| - | a ajoute | ||
| - | |||
| - | DATA | ||
| - | __all__ = [' | ||
| - | |||
| - | FILE | ||
| - | / | ||
| - | |||
| - | |||
| - | |||
| - | ====tcpclient==== | ||
| - | CLASSES | ||
| - | builtins.object | ||
| - | TcpClient | ||
| - | | ||
| - | class TcpClient(builtins.object) | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | FUNCTIONS | ||
| - | sleep(...) | ||
| - | sleep(seconds) | ||
| - | | ||
| - | Delay execution for a given number of seconds. | ||
| - | a floating point number for subsecond precision. | ||
| - | |||
| - | FILE | ||
| - | / | ||
| - | </ | ||
| - | | ||
| - | {{tag> | ||
pymultilame.1535353990.txt.gz · Dernière modification : de serge
