une lib pour interagir facilement avec bash
-
http://amoffat.github.io/sh/Un serveur http wsgi en python, pour faire tourner du django. A voir si les perf sont meilleure qu'avec le mod apache
-
http://gunicorn.org/#quickstartL'équivalent de php-fpm pour python (mettre un nginx devant)
-
http://uwsgi-docs.readthedocs.org/en/latest/Twisted is an event-driven networking engine written in Python and licensed under the open source MIT license.
-
https://twistedmatrix.com/trac/virtualenv is a tool to create isolated Python environments.
-
http://www.virtualenv.org/en/latest/virtualenv.htmlLibrairie python qui va nous servir pour piclodio2 (https://github.com/Sispheor/Piclodio2)
Chaque réveil est en fait une ligne dans le cron, avec un commentaire dans lequel on retrouve son id.. Du coup avec cette lib, l'interaction avec le cron va être + simple :-)
via Nico
-
https://pypi.python.org/pypi/python-crontabPour rendre un json lisible :
cmd_qui_donne_du_json | python -mjson.tool
-
http://stackoverflow.com/questions/352098/how-can-i-pretty-print-json-from-the-command-linepython ou perl, faudrait choisir pour concevoir des scripts d'admin moins crades qu'en bash
-
http://sametmax.com/10-raisons-pour-lesquelles-je-suis-toujours-marie-a-python/Objectif : tapper /obug <number> dans xchat m'ouvre un onglet dans ff vers l'url du bug
1) activer le module python dans les options
2) créer un fichier .py dans /home/arnaud/.xchat2/
3)
module_name = "openbuginredmine"
module_version = "1.0"
__module_description__ = "module to open bug in redmine"
import os
import xchat
def obug(word, word_eol, userdata):
if len(word) < 2:
print "Second arg must be the bug number!"
else:
os.system("firefox https://monurlredmine.com/issues/"+word[1])
return xchat.EAT_ALL
xchat.hook_command("obug", obug, help="/obug <number> open bug in ff")
Et voilà, plus qu'à reboot le xchat, ou bien /load nomdufichier.py
ça peut etre appliqué à plein de trucs : pouvoir lancer ce qu'on veut depuis xchat
-
http://xchat.org/docs/xchatpython.html#head-cf24838660500eceef2367deb88df5963483c852Différence entre python et php
Et un site pour débuter en python lorsqu'on vient de php :
http://www.inspyration.org/tutoriels/debuter-python-lorsque-lon-vient-de-php
-
https://wiki.python.org/moin/PythonVsPhpQu'est ce que l'unicode ? qu'est-ce qu'un encodage ? Comment python gère ça
Autres liens dans l'article à lire :
http://www.cs.tut.fi/~jkorpela/unicode/guide.html
http://www.joelonsoftware.com/articles/Unicode.html
http://en.wikipedia.org/wiki/Character_encoding
http://en.wikipedia.org/wiki/UTF-8
-
http://docs.python.org/3/howto/unicode.htmlForum pour demander de l'aide/chercher des réponses sur Python
-
http://www.afpy.org/forums/forum_pythonSite pour apprendre à développer avec une approche interactive. Python en particulier
-
http://www.codecademy.com/tracks/python