Shaare your links...
3416 links
L!NKS Retour au blog Login RSS Feed ATOM Feed Tag cloud Picture wall Daily
Links per page: 20 50 100
◄Older
page 4 / 10
Newer►
200 results for tags python x
  • Views VS generators | Sam & Max
    permalink -
    - http://sametmax.com/views-vs-generators/
    python
  • Genshi
    Template + pour python

    Suggéré lors d'une install de pip sous Mint, à voir
    permalink -
    - http://genshi.edgewall.org/
    python
  • python - How can I use pywin32 with a virtualenv without having to include the host environment's site-packages folder? - Stack Overflow
    Installer win32api dans un virtualenv :



    I found http://old.nabble.com/Windows:-virtualenv-and-pywin32--td27658201.html (now a dead link) which offered the following solution:

       Browse http://sourceforge.net/projects/pywin32/files/ for the URL of the exe you want
       Activate your virtualenv
       Run easy_install http://PATH.TO/EXE/DOWNLOAD

    This works with modern versions of setuptools (circa February 2014, reported by tovmeod in the comments).
    permalink -
    - https://stackoverflow.com/questions/1830304/how-can-i-use-pywin32-with-a-virtualenv-without-having-to-include-the-host-envir
    python pywin32
  • pyjwt : JSON Web Token implementation in Python
    permalink -
    - https://github.com/jpadilla/pyjwt
    http json python token
  • noise 1.2.1 : Python Package Index
    bruit de Perlin
    permalink -
    - https://pypi.python.org/pypi/noise/#downloads
    python
  • Cours de programmation en langage Python - Spécialité ISN - Terminale S
    un petit cours et des exercices autour de python et du format d'image PGM (dont j'ai découvert l'existence en utilisant la librairie "noise" de python et qui permet de générer du bruit de Perlin.
    permalink -
    - http://fsincere.free.fr/isn/python/cours_python_ch10.php
    cours image python
  • Manipuler les dates et les durées en Python | Sam & Max
    Bon marre de rechercher sans arrêt : google sametmax datetime...
    alors je le mets ici !

    et aussi :
    http://sametmax.com/serialiser-et-parser-une-date-en-python-formats-de-strftimestrptime-et-timestamps/
    permalink -
    - http://sametmax.com/manipuler-les-dates-et-les-durees-en-python/
    memo python
  • Utiliser requests de manière non bloquante facilement | Sam & Max
    permalink -
    - http://sametmax.com/utiliser-requests-de-maniere-non-bloquante-facilement/
    python requests
  • Save a file using the python requests library - Stack Overflow
    ########################
    with open('output.jpg', 'wb') as handle:
       response = requests.get('http://www.example.com/image.jpg', stream=True)

       if not response.ok:
           # Something went wrong

       for block in response.iter_content(1024):
           if not block:
               break
           handle.write(block)
    ########################
    /*I usually just use urllib.urlretrieve(). It works, but if you need to use a session or some sort of authentication, the above code works as well.*/

    voir aussi : https://stackoverflow.com/questions/13137817/how-to-download-image-using-requests
    -----------------------------------------------------------------------------------------------------------------------------------------


    Get a file-like object from the request and copy it to a file. This will also avoid reading the whole thing into memory at once.
    ########################
    import shutil
    import requests

    url = 'http://example.com/img.png'
    response = requests.get(url, stream=True)
    with open('img.png', 'wb') as out_file:
       shutil.copyfileobj(response.raw, out_file)
    del response
    ########################

    Note that the .raw file-like object does not decompress a response using Content-Encoding: gzip or Content-Encoding: deflate. You can use response.raw.read(decode_content=True) but shutil.copyfileobj cannot do that because it assumes a generic .read() method

    ########################
    import requests
    import shutil

    r = requests.get(settings.STATICMAP_URL.format(**data), stream=True)
    if r.status_code == 200:
       with open(path, 'wb') as f:
           r.raw.decode_content = True
           shutil.copyfileobj(r.raw, f)
    ########################
    ou :
    #######################
    r = requests.get(settings.STATICMAP_URL.format(**data), stream=True)
    if r.status_code == 200:
       with open(path, 'wb') as f:
           for chunk in r.iter_content(1024):
               f.write(chunk)
    ########################
    permalink -
    - https://stackoverflow.com/questions/14114729/save-a-file-using-the-python-requests-library
    python
  • Quickstart — Flask Documentation (0.10)
    permalink -
    - http://flask.pocoo.org/docs/0.10/quickstart/#sessions
    flask python webserver
  • Picamera pour piloter intégralement la caméra de votre Raspberry Pi en Python | Framboise 314, le Raspberry Pi à la sauce française….
    permalink -
    - http://www.framboise314.fr/picamera-pour-piloter-integralement-la-camera-de-votre-raspberry-pi-en-python/
    camera python raspberry
  • Tiny-Python-Snapshot-Server
    Petit script python pour prendre régulièrement une photo avec une camera pour raspberry et la diffuser sur une serveur web
    permalink -
    - https://github.com/modmypi/Tiny-Python-Snapshot-Server/blob/master/snapshot.py
    photo python raspberry script
  • rfxcom 0.3.0 : Python Package Index
    permalink -
    - https://pypi.python.org/pypi/rfxcom/0.3.0
    python RFXCOM
  • Librairie python pour communiquer avec RFXtrx (RFXCOM)
    permalink -
    - https://github.com/woudt/pyRFXtrx
    433Mhz python RFXCOM
  • rfxcmd - Command line utility for RFX devices - Google Project Hosting
    permalink -
    - https://code.google.com/p/rfxcmd/
    python RFXCOM
  • Python 3 Wall of Superpowers
    permalink -
    - https://python3wos.appspot.com/
    python
  • Kivy/python-for-android: Slides
    Présentation rapide de kivy (développement d'application pour mobile android, IOS,..) en python
    permalink -
    - http://slides.com/baptistelagarde/kivy-python-for-android/fullscreen#/12
    android kivy python
  • Dusty's Diverse Domain » Blog Archive » Building a Python Kivy App in Android (Easier than it looks, but harder than it needs to be)
    permalink -
    - http://archlinux.me/dusty/2012/12/05/building-a-python-kivy-app-in-android-easier-than-it-looks-but-harder-than-it-needs-to-be/
    android kivy python
  • Qu’est-ce qu’une coroutine en Python, et à quoi ça sert ? | Sam & Max
    En résumé :

       yield permet de faire des générateurs
       On peut demander la prochaine valeur du générateur avec next(). Dans ce cas, le code s’exécute jusqu’au prochain yield.
       On peut envoyer une valeur au générateur avec send(). Dans ce cas, on DOIT partir d’un yield existant duquel on récupère la valeur envoyée via une assignation. Donc il faut au moins un next() avant d’utiliser un send() et un signe égal sur le yield.
       send() va aussi aller au prochain yield et retourner sa valeur.
       Une coroutine n’est qu’une formalisation de la manière d’éffectuer une tâche avec un init, une exécution et une finalisation optionelle en utilisant un générateur. C’est une solution générique à un problème courant, mais plus léger qu’une classe.
       Généralement on décore les générateurs coroutines avec un décorateur @coroutine pour s’éviter d’appeler next() à la main et notifier l’usage qu’il est fait de ce générateur.
       On peut chaîner des coroutines comme on chaîne des générateurs, mais au lieu de lire les données une à une (PULL), on les envoie une par une (PUSH). Cela est pratique quand on ne sait pas à l’avance quand une nouvelle donnée va arriver.
    permalink -
    - http://sametmax.com/quest-ce-quune-coroutine-en-python-et-a-quoi-ca-sert/
    python
  • pyspider - Liens en vrac de sebsauvage
    permalink -
    - http://sebsauvage.net/links/?AIhfhQ
    crawler python
Links per page: 20 50 100
◄Older
page 4 / 10
Newer►
Shaarli 0.0.41 beta - The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net. Theme by idleman.fr.