Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

neobase

Latest version: v0.37.4

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: alexprengere
18 Stars
1 Forks
4 Versions
4.9K Downloads
Python Repo language

Scan summary

neobase was last scanned on 26 Nov 2026 at version 0.37.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 26 Nov 2026.
  • Findings: No rules fired in version 0.37.4.
  • Downloads: 4,894 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.37.4 LATEST 26 Nov 2026 No rules fired
0.37.3 13 Nov 2026 No rules fired
0.37.2 8 Nov 2026 No rules fired
0.37.1 31 Oct 2026 Not shown

No rules fired in 0.37.4

Findings

Findings for v0.37.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.37.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

NeoBase |actions|_ |cratev|_ |crated|_

.. _actions : https://github.com/alexprengere/neobase/actions/workflows/python-package.yml .. |actions| image:: https://github.com/alexprengere/neobase/actions/workflows/python-package.yml/badge.svg

.. _cratev : https://pypi.org/project/NeoBase/ .. |cratev| image:: https://img.shields.io/pypi/v/neobase.svg

.. _crated : https://pypi.org/project/NeoBase/ .. |crated| image:: https://static.pepy.tech/badge/neobase

Minimalist GeoBases <https://github.com/opentraveldata/geobases/>__ implementation:

  • no dependencies
  • compatible with Python 3.11+, CPython and PyPy
  • one data source: opentraveldata <https://github.com/opentraveldata/opentraveldata>__
  • one Python module for easier distribution on clusters (like Hadoop)
  • faster load time (5x)
  • tested with pytest and tox
  • passes static typing checks with ty

.. code:: python

>>> from neobase import NeoBase
>>> b = NeoBase()
>>> b.get('ORY', 'city_code_list')
['PAR']
>>> b.get('ORY', 'city_name_list')
['Paris']
>>> b.get('ORY', 'country_code')
'FR'
>>> b.distance('ORY', 'CDG')
34.87...
>>> b.get_location('ORY')
LatLng(lat=48.72..., lng=2.35...)

Installation

Use the Python package:

.. code:: bash

pip install neobase

Docs

Check out readthedocs <http://neobase.readthedocs.org/en/latest/>__ for the API.

You can customize the source data when initializing:

.. code:: python

with open("file.csv") as f:
    N = NeoBase(f)

Otherwise the loaded file will be the embedded one, unless the OPTD_POR_FILE environment variable is set. In that case, it will load from the path defined in that variable.

You can manually retrieve the latest data source yourself too, but you expose yourself to some breaking changes if they occur in the data.

.. code:: python

from io import StringIO
from urllib.request import urlopen

from neobase import NeoBase, OPTD_POR_URL

data = urlopen(OPTD_POR_URL).read().decode('utf8')
N = NeoBase(StringIO(data))
N.get("PAR")

The reference date of validity can be changed as well:

.. code:: python

N = NeoBase(date="2000-01-01")
N.get("AIY")  # was decommissioned in 2015

By default, the reference date will be set to today, unless the OPTD_POR_DATE environment variable is set. In that case, it will use that value.

You can customize the behavior regarding duplicates: points sharing the same IATA code, like NCE as airport and NCE as city. By default everything is kept, but you can set it so that only the first point with an IATA code is kept:

.. code:: python

N = NeoBase(duplicates=False)
len(N)  # about 10,000 "only"

Note that you can use the OPTD_POR_DUPLICATES environment variable to control this as well: set it to 0 to drop duplicates.

Finally, you can customize fields loaded by subclassing.

.. code:: python

class SubNeoBase(NeoBase):
    KEY = 0  # iata_code

    # Those loaded fields are the default ones
    FIELDS = (
        ("name", 6, None),
        ("lat", 8, None),
        ("lng", 9, None),
        ("page_rank", 12, lambda s: float(s) if s else None),
        ("country_code", 16, None),
        ("country_name", 18, None),
        ('continent_name', 19, None),
        ("timezone", 31, None),
        ("city_code_list", 36, lambda s: s.split(",")),
        ('city_name_list', 37, lambda s: s.split('=')),
        ('location_type', 41, None),
        ("currency", 46, None),
    )

N = SubNeoBase()

Command-line interface

You can query the data using:

.. code:: bash

python -m neobase PAR NCE

Tests

.. code:: bash

tox

A note about performance

The geographical operations like N.find_near("ORY", 100) or N.find_closest_from("ORY") perform a full scan of the data, and are not optimized (remember that this library has no dependencies, by design).

If you want a more efficient solution, you should use a spatial index like a BallTree, for example using scikit-learn <https://scikit-learn.org/stable/modules/generated/sklearn.neighbors.BallTree.html>__:

.. code:: python

import numpy as np
from sklearn.neighbors import BallTree
from neobase import NeoBase

N = NeoBase()

iata_codes = []
coords = []
for key in N:
    lat, lon = N.get_location(key)
    if lat is not None and lon is not None:
        iata_codes.append(N.get(key, "iata_code"))
        coords.append([np.radians(lat), np.radians(lon)])
coords = np.array(coords)

tree = BallTree(coords, metric="haversine")

def find_closest_with_balltree(coord):
    point = np.radians(coord)
    _, idx = tree.query([point], k=1)
    iata_code = iata_codes[idx[0][0]]
    return iata_code

paris = (48.8566, 2.3522)
print(find_closest_with_balltree(paris))  # <0.1ms
print(list(N.find_closest_from_location(paris)))  # ~30ms

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases neobase

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229