{ "info": { "author": "Ivan Arar", "author_email": "ivan.arar@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools" ], "description": "

BlaBlaCar API Client Python Library

\n\n[![PyPI version](https://badge.fury.io/py/BlaBlaCar-API.svg)](https://badge.fury.io/py/BlaBlaCar-API)\n\n

Easily search for trips!

\n\n

Installation

\n

Works on both 2.7.x and 3.x python.

\n\n```\npip install blablacar-api\n```\n\n

Usage

\n\n```python\nfrom blablacarapi import BlaBlaCarApi\n\n# initialize API\napi = BlaBlaCarApi(api_key=\"__your_api_key_here__\")\n\n# fetch trips from London to Paris\ntrips = api.trips(frm=\"London\", to=\"Paris\")\n\n# after fetching you have:\n# trips.trips\n# trips.top_trips\n# trips.pager\n# trips.facets\n# trips.savings\n# trips.distance\n# trips.duration\n# trips.recommended_price\n\n# iterate over the trips\nfor trip in trips.trips:\n\tprint(\"%s: %s -> %s\" % (trip.departure_date, trip.departure_place['address'], trip.arrival_place['address']))\n\t# fetch data for one trip using trip id\n\tsingle_trip = api.trip(trip.permanent_id)\n\n# paging\ntrips.pager.has_next() # True or False\ntrips.pager.next() # returns 2 if the current page is 1\ntrips.pager.has_previous() # True or False\ntrips.pager.previous() # returns False if the current page is 1, and it returns 1 if current page is 2\n```\n\n

Locales

\n\n```python\napi = BlaBlaCarApi(api_key=\"__your_blablacar_api_key_here__\", locale=\"en_GB\", currency=\"en_GB\")\n```\n\n

Debugging

\n\n

If you want to debug your code using the data regarding the API call.

\n\n```python\n# initialize with debug=True\napi = BlaBlaCarApi(api_key=\"...\", debug=True)\n\n# after every API call the client library will automatically print all the data to standard output\napi.trips(...)\n\n# and you can always have all debug data in your code\ndebug_data = api.request.debug.show()\n```\n\n

Official documentation

\n\n

For more information visit official documentation: https://dev.blablacar.com/docs/versions/1.0

\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/arrrlo/BlaBlaCar-Client-Api", "keywords": "blablacar,api,trip,distance", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "BlaBlaCar-API", "package_url": "https://pypi.org/project/BlaBlaCar-API/", "platform": "", "project_url": "https://pypi.org/project/BlaBlaCar-API/", "project_urls": { "Homepage": "https://github.com/arrrlo/BlaBlaCar-Client-Api", "Source": "https://github.com/arrrlo/BlaBlaCar-Client-Api" }, "release_url": "https://pypi.org/project/BlaBlaCar-API/0.2.3/", "requires_dist": [ "requests (~=2.20.0)", "click (~=6.7)", "colorama (~=0.3)" ], "requires_python": "", "summary": "BlaBlaCar Client Api", "version": "0.2.3" }, "last_serial": 4434909, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "dfa1531db73e3798ff13b62cde6095fa", "sha256": "b2ff8c4a54cca017988ed49a5dabfc0f26c06e3ee74b91013fa30ce9b5f5e742" }, "downloads": -1, "filename": "BlaBlaCar_API-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "dfa1531db73e3798ff13b62cde6095fa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7974, "upload_time": "2018-04-17T14:52:11", "url": "https://files.pythonhosted.org/packages/72/32/4646ad6c09f7b0ad26dcdb6407fa264af7ab24afef8724159baaa55cf84a/BlaBlaCar_API-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dbfb2f3af7581104e5db1dc26ad1c63e", "sha256": "16d24c4453376aaea53ed88c952a14912c5147adaf2799af629e7c19ec99bd84" }, "downloads": -1, "filename": "BlaBlaCar API-0.1.1.tar.gz", "has_sig": false, "md5_digest": "dbfb2f3af7581104e5db1dc26ad1c63e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6344, "upload_time": "2018-04-17T14:52:12", "url": "https://files.pythonhosted.org/packages/08/0c/a34771e4e2c01761cb67937e50489860c22c5c68fea7251903d509588cf5/BlaBlaCar%20API-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "62f3b2615c23d0e6134f0e54c597d07a", "sha256": "1b16877dcd29b5abcc95e439a3d256d484b84fccbefe0d4535310bdc5cf3c483" }, "downloads": -1, "filename": "BlaBlaCar_API-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "62f3b2615c23d0e6134f0e54c597d07a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8011, "upload_time": "2018-04-17T14:54:27", "url": "https://files.pythonhosted.org/packages/7a/8c/3d17fa92a351c9f4f96f22f7170b68700df334d7f288050d90a179f0e159/BlaBlaCar_API-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1cbbf4e74fc80a20aa1a25544893bbfd", "sha256": "9064f1c82888fb214e2fda20fd8b31390bc6ef7244d117a3ab2a1f93af935f99" }, "downloads": -1, "filename": "BlaBlaCar API-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1cbbf4e74fc80a20aa1a25544893bbfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6390, "upload_time": "2018-04-17T14:54:29", "url": "https://files.pythonhosted.org/packages/1e/b7/d747e15fd65b3542ee79951d5d4c04b0995279dadaaaa7e027482c95e345/BlaBlaCar%20API-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "bfe615afee5b91452414e83260fa9da6", "sha256": "d3c70ffed254dc5c309bb2768e74e31277fdbbb2d089d7138c826a1886bdc112" }, "downloads": -1, "filename": "BlaBlaCar_API-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bfe615afee5b91452414e83260fa9da6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8012, "upload_time": "2018-04-19T13:03:01", "url": "https://files.pythonhosted.org/packages/ee/3c/80c86c4fc84f98f6cd27998a24402a0f3056e6c2a93d710cf20ca680c431/BlaBlaCar_API-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bcf7a9f3ea1f536ac67b0afe207431eb", "sha256": "da4fffa5209a72588a66d2d866206e45ad7690cd05ab848b679caba0fb354937" }, "downloads": -1, "filename": "BlaBlaCar API-0.2.1.tar.gz", "has_sig": false, "md5_digest": "bcf7a9f3ea1f536ac67b0afe207431eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6398, "upload_time": "2018-04-19T13:03:03", "url": "https://files.pythonhosted.org/packages/29/e6/29d7e28e458b0eb1df0aa714a73a67795ada8510aa426e02263de97a099a/BlaBlaCar%20API-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "b75c4e991441c41d41f8c20d57a308d5", "sha256": "da66c5314ca8f69f5158c8b564895a7d6a5b0f31ff9b029da116149434f34049" }, "downloads": -1, "filename": "BlaBlaCar_API-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b75c4e991441c41d41f8c20d57a308d5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8022, "upload_time": "2018-04-24T15:23:35", "url": "https://files.pythonhosted.org/packages/e1/3d/36bd9f8b4811cb3131211d66c0bd4245eb975f0025fa5a21c808ee7616e4/BlaBlaCar_API-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5db86e00eac66fbb50fe13cbc5c6d01e", "sha256": "6165760bb3c57ff9ea32f18364e71efe49a4ac1b01cb8ccbff651b3c1d0af0df" }, "downloads": -1, "filename": "BlaBlaCar API-0.2.2.tar.gz", "has_sig": false, "md5_digest": "5db86e00eac66fbb50fe13cbc5c6d01e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6408, "upload_time": "2018-04-24T15:23:36", "url": "https://files.pythonhosted.org/packages/36/e5/4a8b85c6f9af929ef6c0d23d767963e2c800cddb61df437170aa57da871c/BlaBlaCar%20API-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "676585b0e2008edbc984880a49a9f983", "sha256": "e517fc62018585588d63a27ba52a1b4f2f4d25f939c02a0914f87301883b6d93" }, "downloads": -1, "filename": "BlaBlaCar_API-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "676585b0e2008edbc984880a49a9f983", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8027, "upload_time": "2018-10-31T08:10:24", "url": "https://files.pythonhosted.org/packages/4c/f7/96b1ee27b4e80bac648229f255c062040ea91d5f296996d09d440979db80/BlaBlaCar_API-0.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0a0b6987cb7468d1fd7f7f8df5f240e5", "sha256": "18c19db23cb2b446183b291ab8a9cd57a9caec308397e8512e9a067f662380bb" }, "downloads": -1, "filename": "BlaBlaCar API-0.2.3.tar.gz", "has_sig": false, "md5_digest": "0a0b6987cb7468d1fd7f7f8df5f240e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6407, "upload_time": "2018-10-31T08:10:25", "url": "https://files.pythonhosted.org/packages/92/7a/6cfd6cf2a9f4ad8a1771d368631e79aa0392f558d644be46f6d5b9780ef7/BlaBlaCar%20API-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "676585b0e2008edbc984880a49a9f983", "sha256": "e517fc62018585588d63a27ba52a1b4f2f4d25f939c02a0914f87301883b6d93" }, "downloads": -1, "filename": "BlaBlaCar_API-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "676585b0e2008edbc984880a49a9f983", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8027, "upload_time": "2018-10-31T08:10:24", "url": "https://files.pythonhosted.org/packages/4c/f7/96b1ee27b4e80bac648229f255c062040ea91d5f296996d09d440979db80/BlaBlaCar_API-0.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0a0b6987cb7468d1fd7f7f8df5f240e5", "sha256": "18c19db23cb2b446183b291ab8a9cd57a9caec308397e8512e9a067f662380bb" }, "downloads": -1, "filename": "BlaBlaCar API-0.2.3.tar.gz", "has_sig": false, "md5_digest": "0a0b6987cb7468d1fd7f7f8df5f240e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6407, "upload_time": "2018-10-31T08:10:25", "url": "https://files.pythonhosted.org/packages/92/7a/6cfd6cf2a9f4ad8a1771d368631e79aa0392f558d644be46f6d5b9780ef7/BlaBlaCar%20API-0.2.3.tar.gz" } ] }