$npx skillfedfor your agent

geotext

Geotext extracts countriy and city mentions from text

With conditionsPyPI Text ProcessingReleased Jul 201898.6K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — geotext-0.4.0-py2.py3-none-any.whl
v0.4.0 · released 2018-07-30

Yes, if you need simple, offline geographic entity extraction and can tolerate an unmaintained codebase. The lack of dependencies and low install friction make it attractive for lightweight projects. However, do not use it if you require current geographic data, active bug fixes, or support for modern Python versions—consider an actively maintained alternative for production systems.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is frictionless—the package has no runtime dependencies and ships as a pure Python wheel.
  • However, the project is archived and abandoned; the last commit was in 2022 and no releases have occurred since 2018, so maintenance and bug fixes are not forthcoming.

License · maintenance · safety

MIT (permissive) — MIT is a permissive license, so you may use, modify, and distribute geotext freely in commercial and private projects with minimal restrictions. The underlying geographic data is licensed under Creative Commons Attribution 3.0.

last release 2018-07-30 (2937 days) · last repo commit 2022-12-26 · 140 stars · archived

0 known vulnerabilities (OSV.dev, 2026-08-14) · 98,627 downloads/mo, #13,070 on PyPI

Verify before relying

pip install geotext

from geotext import GeoText

places = GeoText("London is a great city")
print(places.cities)  # ['London']
print(places.country_mentions)  # OrderedDict([(u'GB', 1)])
  • Whether the geographic database (from geonames.org) is current enough for modern city and country name coverage.
  • Compatibility with Python versions beyond 3.6, given the package has not been updated since 2018.
  • Accuracy and recall of extraction on non-English text or transliterated place names.
Same gist for agents: .md · .json

What it is and what it does

Geotext is a lightweight Python library that identifies and extracts country and city names from plain text. It parses input strings and returns structured results: a list of detected cities, a list of detected countries, and a frequency count of country mentions by ISO code. You can optionally filter results to cities within a specific country by passing a country code.

The package relies on a built-in geographic database derived from geonames.org data and has no external runtime dependencies, making it fast and simple to integrate. It was last updated in 2018 and is no longer maintained; the repository is archived. While the core extraction logic remains functional, the underlying geographic data may not reflect recent city or country name changes, and compatibility with modern Python versions is untested.

Use it for

  • Extract city and country names from user-generated content, reviews, or social media posts for geographic analysis.
  • Filter travel or news articles by location mentions to organize content by region or country.
  • Preprocess text data for geospatial machine learning pipelines that require structured location labels.
  • Identify geographic scope in customer feedback or support tickets without external API calls.
  • Build lightweight location-aware search or tagging systems where offline extraction is preferred.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need simple, offline geographic entity extraction and can tolerate an unmaintained codebase.

The lack of dependencies and low install friction make it attractive for lightweight projects. However, do not use it if you require current geographic data, active bug fixes, or support for modern Python versions—consider an actively maintained alternative for production systems.

Install

geotext on PyPI

Before you install

Installation is frictionless—the package has no runtime dependencies and ships as a pure Python wheel. However, the project is archived and abandoned; the last commit was in 2022 and no releases have occurred since 2018, so maintenance and bug fixes are not forthcoming.

License in practice

MIT is a permissive license, so you may use, modify, and distribute geotext freely in commercial and private projects with minimal restrictions. The underlying geographic data is licensed under Creative Commons Attribution 3.0.

Quickstart

pip install geotext

from geotext import GeoText

places = GeoText("London is a great city")
print(places.cities)  # ['London']
print(places.country_mentions)  # OrderedDict([(u'GB', 1)])

Verify before relying

  • Whether the geographic database (from geonames.org) is current enough for modern city and country name coverage.
  • Compatibility with Python versions beyond 3.6, given the package has not been updated since 2018.
  • Accuracy and recall of extraction on non-English text or transliterated place names.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,937 days since the last release
Last repo commit repository archived
First released
Downloads98,627 / month, #13,070 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6

Evidence: geotext-0.4.0-py2.py3-none-any.whl

Tags

Capabilities
extract cities from textcountry mention extractiongeographic entity recognitioncity name detectionplace name extractiongeotext parsinglocation mention finder
Topics
nlpgeolocationlightweight
PyPI keywords
geotext

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “extract cities from text”

  • geotextGeotext extracts mentions of countries and cities from unstructured…
  • django-cities-lightProvides Django models and management commands to import and manage…
  • geonamescacheProvides Python dictionaries of geographic data including continents,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Text Processing packages

regex Worth it
PyPI · Python Modules · released Jul 2026

A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.

Apache-2.0 AND CNRI-Pythoncompiled wheel · 3.10+
437.7Mdownloads / mo
pyparsing Worth it
PyPI · Text Processing · released Jan 2026

pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.

Install it if you need to parse text or define grammars programmatically.

MITpure Python · 3.9+
412.7Mdownloads / mo
fonttools Worth it
PyPI · Text Processing · released May 2026

fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.

Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.

permissive licensepure Python · 3.10+
235.9Mdownloads / mo
docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
RapidFuzz Worth it
PyPI · Text Processing · released Apr 2026

RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.

Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.

MITcompiled wheel · 3.10+
184.2Mdownloads / mo
tinycss2 Worth it
PyPI · Text Processing · released Nov 2025

tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.

Install it if your project requires CSS tokenization or syntax manipulation.

BSD-3-Clausepure Python · 3.10+
113.2Mdownloads / mo

See also geonamescache · reverse-geocode · django-cities-light · pyap2 · countryinfo · pyap · geoip2 · goose3 · reverse_geocoder · IP2Location