Shaare your links...
3325 links
L!NKS Retour au blog Login RSS Feed ATOM Feed Tag cloud Picture wall Daily
Links per page: 20 50 100
◄Older
page 3 / 10
Newer►
188 results for tags python x
  • DIY Book Scanner • View topic - Spreads development environment
    Utiliser jpegtran (https://github.com/jbaiter/jpegtran-cffi)
    """jpegtran-cffi is a Python package for fast JPEG transformations. Compared to other, more general purpose image processing libraries like wand-py or PIL/Pillow, transformations are generally more than twice as fast (see Benchmarks). In addition, all operations except for scaling are lossless, since the image is not being re-compressed in the process. This is due to the fact that all transformation operations work directly with the JPEG data.

    This is achieved by using multiple C routines from the Enlightenment project's epeg library (for scaling) and jpegtran from the Independent JPEG Group's libjpeg library (for all other operations). These routines are called from Python through the CFFI module, i.e. no external processes are launched.

    The package also includes rudimentary support for getting and setting the EXIF orientation tag, automatically transforming the image according to it and obtaining the JFIF thumbnail image."""



    sudo apt-get python-dev
    sudo apt-get install libffi-dev
    sudo apt-get install libjpeg8-dev

    -> virtualenv
    pip install --user jpegtran-cffi
    permalink -
    - http://www.diybookscanner.org/forum/viewtopic.php?f=35&t=3078
    epeg image python
  • Calling a function of a module from a string with the function's name in Python - Stack Overflow
    import foo
    methodToCall = getattr(foo, 'bar')
    result = methodToCall()

    ou : result = getattr(foo, 'bar')()
    permalink -
    - https://stackoverflow.com/questions/3061/calling-a-function-of-a-module-from-a-string-with-the-functions-name-in-python
    python
  • https://inventwithpython.com/chapters/
    d'après les comments de http://sametmax.com/quels-exercices-pour-debutants-en-python/
    permalink -
    - https://inventwithpython.com/chapters/
    python tuto
  • Manipulating PDFs with Python - Tutorial - Binpress
    permalink -
    - https://www.binpress.com/tutorial/manipulating-pdfs-with-python/167
    pdf python
  • Deep into Python
    des trucs pas si évidents en python...
    for ... else
    permalink -
    - http://sebastianraschka.com/Articles/2014_deep_python.html#else_clauses
    python
  • mitmproxy 0.11.3 - Introduction
    permalink -
    - http://mitmproxy.org/doc/index.html
    proxy python
  • 7. Camera Hardware — Picamera 1.10 documentation
    permalink -
    - http://picamera.readthedocs.org/en/latest/fov.html#camera-modes
    picamera python
  • Fledgling Polymath — Basic Authentication in bottle.py
    permalink -
    - http://fledglingpolymath.tumblr.com/post/39977900894/basic-authentication-in-bottle-py
    basicAuth bottle python
  • 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
Links per page: 20 50 100
◄Older
page 3 / 10
Newer►
Shaarli 0.0.41 beta - The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net. Theme by idleman.fr.