Registry / data / geotext

geotext

JSON →
library0.4.0pypypi✓ verified 88d ago

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.

pip install geotext
INSTALL
IMPORT
SIG · GEOTEXT
G
geotext
datapythonv0.4.0
Install
—
Import
—
Disk
—
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
1/2 runs
1/2 runs
py 3.11
1/2 runs
1/2 runs
py 3.12
1/2 runs
1/2 runs
py 3.13
1/2 runs
1/2 runs
py 3.9
1/2 runs
1/2 runs
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GeoText
✓ from geotext import GeoText
✗ import geotext
Module does not expose GeoText at top-level. Must use from-import.

Extract city and country mentions from text.

from geotext import GeoText places = GeoText("I live in Paris and work in Berlin") print(places.cities) # ['Paris', 'Berlin'] print(places.countries) # []
Debug
Known issues
deprecatedProject unmaintained since 2018, no Python 3.6+ compatibility fixes. Use Python 2.7 or backport yourself.
fix
Consider alternatives: geonamescache, countryinfo, or spacy geo components.
affects: 0.4.0 only
gotchaGeoText does lowercase matching by default, so 'PARIS' or 'Paris' work, but mixed case may cause misses.
fix
Normalize input text to lowercase before passing to GeoText if needed.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'geotext'
Wrong import: import geotext instead of from geotext import GeoText
fix
Use: from geotext import GeoText
ImportError: No module named enum
Python 2.7 environment missing enum backport. geotext uses enum.
fix
Install enum34: pip install enum34, or switch to Python 3.4+.
Upgrade
Version history
0.4.0latest on PyPI · released Jul 30, 2018
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
geotext — pip install geotext · libregistry