{ "info": { "author": "Johannes Baiter", "author_email": "johannes.baiter@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "gphoto2-cffi\n============\n\nPython bindings for `libgphoto2`_ with an interface that strives to be\nidiomatic. In contrast to other bindings for Python, gphoto2-cffi hides most\nof the lower-level abstractions and reduces the API surface while still\noffering access to most of the library's features.\n\n.. code:: python\n\n import gphoto2cffi as gp\n\n # List all attached cameras that are supported\n cams = gp.list_cameras()\n\n # Get a camera instance by specifying a USB bus and device number\n my_cam = gp.Camera(bus=4, device=1)\n\n # Get an instance for the first supported camera\n my_cam = gp.Camera()\n # or\n my_cam = next(gp.list_cameras())\n\n # Capture an image to the camera's RAM and get its data\n imgdata = my_cam.capture()\n\n # Grab a preview from the camera\n previewdata = my_cam.get_preview()\n\n # Get a list of files on the camera\n files = tuple(my_cam.list_all_files())\n\n # Iterate over a file's content\n with open(\"image.jpg\", \"wb\") as fp:\n for chunk in my_cam.files[0].iter_data():\n fp.write(chunk)\n\n # Get a configuration value\n image_quality = my_cam.config['capturesettings']['imagequality'].value\n # Set a configuration value\n my_cam.config['capturesettings']['imagequality'].set(\"JPEG Fine\")\n\nPython 2.7 and 3.4 or newer (CPython and PyPy) are supported.\n\n.. _libgphoto2: http://www.gphoto.org/proj/libgphoto2/\n.. _PyPy: http://pypy.org/\n.. _cffi: https://cffi.readthedocs.org/\n\nRequirements\n------------\n\n* libgphoto2 with development headers\n* A working C compiler\n* cffi\n\nInstallation\n------------\n\nFrom Source::\n\n $ pip install git+https://github.com/jbaiter/gphoto2-cffi.git\n\nSimilar projects\n----------------\n\n* `piggyphoto `_: Uses ctypes\n* `python-gphoto2 `_: Uses SWIG\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jbaiter/gphoto2-cffi.git", "keywords": "", "license": "LGPLv3", "maintainer": "", "maintainer_email": "", "name": "gphoto2-cffi", "package_url": "https://pypi.org/project/gphoto2-cffi/", "platform": "", "project_url": "https://pypi.org/project/gphoto2-cffi/", "project_urls": { "Homepage": "http://github.com/jbaiter/gphoto2-cffi.git" }, "release_url": "https://pypi.org/project/gphoto2-cffi/0.4.2/", "requires_dist": null, "requires_python": "", "summary": "libgphoto2 bindings with an interface that strives to be idiomatic", "version": "0.4.2" }, "last_serial": 3008291, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f15e6b6a94ddb83aed12e89757503f87", "sha256": "1a4188b2417027d2e929ffbd96bc3ec336cf2f71f53f6f5b923a69a3aa8efdfe" }, "downloads": -1, "filename": "gphoto2-cffi-0.1.tar.gz", "has_sig": false, "md5_digest": "f15e6b6a94ddb83aed12e89757503f87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21317, "upload_time": "2014-11-12T17:15:40", "url": "https://files.pythonhosted.org/packages/55/b3/d11ab1e51aa2fc7d2359589f837abb5de144fd9f5e1215b64e265597eed5/gphoto2-cffi-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "db7e782aecf24fd53e0556c8dfd9d40c", "sha256": "f4f60b30b050da2aee5008de0b95b015e6c7e4c94946085b47afad01e6ee4688" }, "downloads": -1, "filename": "gphoto2-cffi-0.2.tar.gz", "has_sig": false, "md5_digest": "db7e782aecf24fd53e0556c8dfd9d40c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 55383, "upload_time": "2014-11-24T23:20:43", "url": "https://files.pythonhosted.org/packages/92/22/5790a12046a704cf2760340c4d455f0d172c249afb0ab55c6b36bdbc8cc6/gphoto2-cffi-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "cc861a6520e5aea8284d57a627b00b50", "sha256": "876a3b815399f1d9f9b335bb9a914fbb25a622ba3fd6fe710fa44ca3ec04cbd7" }, "downloads": -1, "filename": "gphoto2-cffi-0.3.tar.gz", "has_sig": false, "md5_digest": "cc861a6520e5aea8284d57a627b00b50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22341, "upload_time": "2016-07-07T15:10:01", "url": "https://files.pythonhosted.org/packages/53/75/9987dec9f6e1bc1940b4bfd0e9cdca4abb31a9b8f76db7f31ee8f7637823/gphoto2-cffi-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "d1ca574b7170fe94e82fa6af4aed35d9", "sha256": "e13b3d28b9bc7d74e304928333319a4244b8bf14c755df7049bd4edb47ebdeb5" }, "downloads": -1, "filename": "gphoto2-cffi-0.4.tar.gz", "has_sig": false, "md5_digest": "d1ca574b7170fe94e82fa6af4aed35d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14072, "upload_time": "2017-06-13T08:34:26", "url": "https://files.pythonhosted.org/packages/17/fb/2b863b8b90402ff38b30475a11eb9fc2dca4af9a396b98e50b10e07f171b/gphoto2-cffi-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "bb88fd6b379745cede0b51de1cd0ea78", "sha256": "90768381e4f002cdedec1831ce8b18c81e1a93158749f06ba1c2ce35e8d1d3d8" }, "downloads": -1, "filename": "gphoto2-cffi-0.4.1.tar.gz", "has_sig": false, "md5_digest": "bb88fd6b379745cede0b51de1cd0ea78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17276, "upload_time": "2017-06-14T08:10:05", "url": "https://files.pythonhosted.org/packages/21/4d/6eb8fae39b53de4c7ece089982298fd0481f568320cafa5622ab36dcf0f8/gphoto2-cffi-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "354a875680bf462427b8af4c4b725f33", "sha256": "281f3c1b4113784f86170fe87b013663889066fd0dc23bc9c1c491d5e99f3438" }, "downloads": -1, "filename": "gphoto2-cffi-0.4.2.tar.gz", "has_sig": false, "md5_digest": "354a875680bf462427b8af4c4b725f33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22924, "upload_time": "2017-07-08T12:26:15", "url": "https://files.pythonhosted.org/packages/42/81/b742c2e09988c0e0cbb8c0888f0021e7f7dbc90a40a14f93d2718854d2ef/gphoto2-cffi-0.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "354a875680bf462427b8af4c4b725f33", "sha256": "281f3c1b4113784f86170fe87b013663889066fd0dc23bc9c1c491d5e99f3438" }, "downloads": -1, "filename": "gphoto2-cffi-0.4.2.tar.gz", "has_sig": false, "md5_digest": "354a875680bf462427b8af4c4b725f33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22924, "upload_time": "2017-07-08T12:26:15", "url": "https://files.pythonhosted.org/packages/42/81/b742c2e09988c0e0cbb8c0888f0021e7f7dbc90a40a14f93d2718854d2ef/gphoto2-cffi-0.4.2.tar.gz" } ] }