{ "info": { "author": "Benjamin Weber", "author_email": "mail@bwe.im", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "jim\n***\n\n.. image:: https://img.shields.io/travis/benjaminweb/jim.svg?style=flat-square\n :target: https://travis-ci.org/benjaminweb/jim\n :alt: Linux Built Status\n\n.. image:: https://img.shields.io/appveyor/ci/hyllos/jim/default.svg?style=flat-square\n :target: https://ci.appveyor.com/project/hyllos/jim\n :alt: Windows Built Status\n\n.. image:: https://img.shields.io/codecov/c/bitbucket/hyllos/jim/default.svg?style=flat-square\n :target: https://codecov.io/bb/hyllos/jim/branch/default\n :alt: Code coverage\n\nThe German railways system at your fingertips.\n\nInstall\n=======\n\n.. code-block:: bash\n\n pip3 install jim\n\nQuick Start\n===========\n\nTo get all currently running trains:\n\n.. code-block:: python\n\n >>> from jim.trains import RailGrid\n >>> bahn = RailGrid()\n >>> bahn\n <2195 trains>\n\nYou can filter for specific trains::\n\n >>> regs = bahn.filter(regional=True)\n >>> nats = bahn.filter(national=True)\n >>> ices = bahn.filter('ICE')\n\nLet's pick an ICE::\n\n >>> an_ice = ices[-1]\n >>> an_ice\n \n\nEach train is a `Train` class.\nYou can retrieve its next station like::\n\n >>> an_ice.next_station\n <20:26 -> Hamburg Dammtor [+0]>\n\nSimilarly goes the previous station::\n\n >>> an_ice.previous_station\n <20:24 -> Berlin-Spandau>\n\nIf delay data is available, it will be stored here::\n\n >>> an_ice.delay\n 0\n\n.. note::\n\n Be aware many trains have a delay setting of `None`. Then, no data is available.\n Further, the delay of the next station `next_station.delay` is distinct from\n the general delay (as shown before).\n\nAdvanced\n========\n\nYou can refresh a `jim.trains.RailGrid` class::\n\n >>> bahn.refresh()\n >>> bahn\n <2260 trains>\n\nCredits\n=======\n\n * https://github.com/makujaho/trainspotter/blob/master/trainspotter/train.py\n https://media.ccc.de/v/MRMCD15-6986-i_like_trains#video&t=1454\n * https://github.com/derhuerst/db-zugradar-client\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/hyllos/jim", "keywords": "bahn train traffic", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Jim", "package_url": "https://pypi.org/project/Jim/", "platform": "", "project_url": "https://pypi.org/project/Jim/", "project_urls": { "Homepage": "https://bitbucket.org/hyllos/jim" }, "release_url": "https://pypi.org/project/Jim/0.0.2/", "requires_dist": [ "backoff", "pendulum", "regex", "requests", "responses; extra == 'test'" ], "requires_python": "", "summary": "library to retrieve data from German railways", "version": "0.0.2" }, "last_serial": 3010431, "releases": { "0.0.0": [], "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "f1e4b036155aa0f73b2b08557aca7464", "sha256": "5486b23876832e6d66b00e0fcd8f82e91a2e7a0e1dac3818a1d40ee8aa2b2d1a" }, "downloads": -1, "filename": "jim-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1e4b036155aa0f73b2b08557aca7464", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9124, "upload_time": "2017-07-09T19:53:57", "url": "https://files.pythonhosted.org/packages/28/b9/7fe7778eb46e140ed053f41aa27298dd868575c3e7f4bf3cff236f3b87d3/jim-0.0.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f1e4b036155aa0f73b2b08557aca7464", "sha256": "5486b23876832e6d66b00e0fcd8f82e91a2e7a0e1dac3818a1d40ee8aa2b2d1a" }, "downloads": -1, "filename": "jim-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1e4b036155aa0f73b2b08557aca7464", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9124, "upload_time": "2017-07-09T19:53:57", "url": "https://files.pythonhosted.org/packages/28/b9/7fe7778eb46e140ed053f41aa27298dd868575c3e7f4bf3cff236f3b87d3/jim-0.0.2-py2.py3-none-any.whl" } ] }