{ "info": { "author": "Dennis Kaarsemaker", "author_email": "dennis@kaarsemaker.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Topic :: System :: Networking" ], "description": "ip\\_info\n=======\n\nReally simple flask app that provides you info about where you're connecting\nfrom. Similar to sites like whatismyip.com, but without all the clutter and\ncrap.\n\nDependencies\n------------\nYou need the python libraries flask, whelk, publicsuffix and GeoIP. These can\nbe installed with your OS' package manager or with pip. You also need a working\n`whois` program on your `$PATH`.\n\nUbuntu users can install these packages with:\n\n sudo add-apt-repository ppa:dennis/python\n sudo apt-get install python-whelk python-flask python-publicsuffix python-geoip whois\n\nUsage\n-----\nUsing the built-in flask/werkzeug http daemon, you can quickly run it in demo mode:\n\n python -m ip_info\n\nI would however recommend using a wsgi daemon such as uwsgi and a proper httpd\nlike nginx as frontend. \n\nConfiguration examples\n----------------------\nExample nginx configuration:\n\n server {\n listen 80;\n listen [::]:80;\n\n root /usr/share/nginx/www;\n index index.html index.htm;\n\n server_name ip.seveas.net;\n\n try_files $uri @uwsgi;\n location @uwsgi {\n include uwsgi_params;\n uwsgi_pass unix:/run/uwsgi/app/ip_info/socket;\n }\n }\n\n\nExample uwsgi configuration:\n\n [uwsgi]\n plugins = python\n module = ip_info:app\n env = IP_SETTINGS=/etc/ip_settings\n env = HOME=/nonexistent\n\n shared-socket = 1\n chown_socket = www-data\n log-reopen = 1\n\n processes = 10\n harakiri = 60\n max-requests = 20\n reload-on-as = 1024\n auto-procname = 1\n procname-prefix-spaced = ip_info\n\nThe `IP_SETTINGS` environment variable can be used to point to a configuration\nfile. This configuration file can be used to set any Flask setting you want.\nip\\_info itself only has one setting: A `DB` variable that can point to a\ncuston GeoIP data file, such as the data file that contains city information.\n\nLicense\n-------\nCopyright (c) 2014 Dennis Kaarsemaker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/seveas/ip_info", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "ip_info", "package_url": "https://pypi.org/project/ip_info/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ip_info/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/seveas/ip_info" }, "release_url": "https://pypi.org/project/ip_info/1.0/", "requires_dist": null, "requires_python": null, "summary": "Simple IP information webapp", "version": "1.0" }, "last_serial": 1184972, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "61b8cf0014ec26bfeba1811ce21da540", "sha256": "609326807633a2b1eb8c7044e1932e40fc78654bcb5bd106fb3222769288fcb0" }, "downloads": -1, "filename": "ip_info-1.0.tar.gz", "has_sig": false, "md5_digest": "61b8cf0014ec26bfeba1811ce21da540", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4421, "upload_time": "2014-08-09T11:29:49", "url": "https://files.pythonhosted.org/packages/18/8d/a38c00dc4466828830e37864f5597cc73e768cb90c2b8ac5619c18b03226/ip_info-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "61b8cf0014ec26bfeba1811ce21da540", "sha256": "609326807633a2b1eb8c7044e1932e40fc78654bcb5bd106fb3222769288fcb0" }, "downloads": -1, "filename": "ip_info-1.0.tar.gz", "has_sig": false, "md5_digest": "61b8cf0014ec26bfeba1811ce21da540", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4421, "upload_time": "2014-08-09T11:29:49", "url": "https://files.pythonhosted.org/packages/18/8d/a38c00dc4466828830e37864f5597cc73e768cb90c2b8ac5619c18b03226/ip_info-1.0.tar.gz" } ] }