{"id":23787,"library":"geotext","title":"geotext","description":"Geotext extracts country and city mentions from text using a simple word-matching approach (not ML). Current version 0.4.0, last updated 2018, project effectively in maintenance mode. Does not support Python 3.6+ out of the box.","status":"maintenance","version":"0.4.0","language":"python","source_language":"en","source_url":"https://github.com/elyase/geotext","tags":["geotext","cities","countries","geocoding","text-extraction"],"install":[{"cmd":"pip install geotext","lang":"bash","label":"PyPI default"},{"cmd":"pip install git+https://github.com/elyase/geotext.git","lang":"bash","label":"Latest from GitHub"}],"dependencies":[],"imports":[{"note":"Module does not expose GeoText at top-level. Must use from-import.","wrong":"import geotext","symbol":"GeoText","correct":"from geotext import GeoText"}],"quickstart":{"code":"from geotext import GeoText\n\nplaces = GeoText(\"I live in Paris and work in Berlin\")\nprint(places.cities)  # ['Paris', 'Berlin']\nprint(places.countries)  # []\n","lang":"python","description":"Extract city and country mentions from text."},"warnings":[{"fix":"Consider alternatives: geonamescache, countryinfo, or spacy geo components.","message":"Project unmaintained since 2018, no Python 3.6+ compatibility fixes. Use Python 2.7 or backport yourself.","severity":"deprecated","affected_versions":"0.4.0 only"},{"fix":"Normalize input text to lowercase before passing to GeoText if needed.","message":"GeoText does lowercase matching by default, so 'PARIS' or 'Paris' work, but mixed case may cause misses.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: from geotext import GeoText","cause":"Wrong import: import geotext instead of from geotext import GeoText","error":"ModuleNotFoundError: No module named 'geotext'"},{"fix":"Install enum34: pip install enum34, or switch to Python 3.4+.","cause":"Python 2.7 environment missing enum backport. geotext uses enum.","error":"ImportError: No module named enum"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}