NeoBase 0.34.6__tar.gz → 0.34.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. neobase-0.34.8/.gitignore +38 -0
  2. neobase-0.34.8/.pre-commit-config.yaml +24 -0
  3. {neobase-0.34.6 → neobase-0.34.8}/NeoBase.egg-info/PKG-INFO +4 -3
  4. {neobase-0.34.6 → neobase-0.34.8}/NeoBase.egg-info/SOURCES.txt +1 -0
  5. {neobase-0.34.6 → neobase-0.34.8}/PKG-INFO +4 -3
  6. {neobase-0.34.6 → neobase-0.34.8}/README.rst +1 -1
  7. neobase-0.34.8/neobase/__init__.py +4 -0
  8. {neobase-0.34.6 → neobase-0.34.8}/neobase/__main__.py +1 -1
  9. neobase-0.34.8/neobase/_version.py +1 -0
  10. {neobase-0.34.6 → neobase-0.34.8}/neobase/neobase.py +1 -1
  11. {neobase-0.34.6 → neobase-0.34.8}/neobase/optd_por_public.csv +165 -151
  12. {neobase-0.34.6 → neobase-0.34.8}/pyproject.toml +47 -4
  13. {neobase-0.34.6 → neobase-0.34.8}/tox.ini +12 -2
  14. neobase-0.34.6/.gitignore +0 -12
  15. neobase-0.34.6/neobase/__init__.py +0 -4
  16. neobase-0.34.6/neobase/_version.py +0 -1
  17. {neobase-0.34.6 → neobase-0.34.8}/.github/workflows/python-package.yml +0 -0
  18. {neobase-0.34.6 → neobase-0.34.8}/LICENSE +0 -0
  19. {neobase-0.34.6 → neobase-0.34.8}/MANIFEST.in +0 -0
  20. {neobase-0.34.6 → neobase-0.34.8}/NeoBase.egg-info/dependency_links.txt +0 -0
  21. {neobase-0.34.6 → neobase-0.34.8}/NeoBase.egg-info/entry_points.txt +0 -0
  22. {neobase-0.34.6 → neobase-0.34.8}/NeoBase.egg-info/not-zip-safe +0 -0
  23. {neobase-0.34.6 → neobase-0.34.8}/NeoBase.egg-info/top_level.txt +0 -0
  24. {neobase-0.34.6 → neobase-0.34.8}/_config.yml +0 -0
  25. {neobase-0.34.6 → neobase-0.34.8}/conftest.py +0 -0
  26. {neobase-0.34.6 → neobase-0.34.8}/doc/Makefile +0 -0
  27. {neobase-0.34.6 → neobase-0.34.8}/doc/conf.py +0 -0
  28. {neobase-0.34.6 → neobase-0.34.8}/doc/index.rst +0 -0
  29. {neobase-0.34.6 → neobase-0.34.8}/doc/make.bat +0 -0
  30. {neobase-0.34.6 → neobase-0.34.8}/setup.cfg +0 -0
  31. {neobase-0.34.6 → neobase-0.34.8}/setup.py +0 -0
  32. {neobase-0.34.6 → neobase-0.34.8}/test_neobase.py +0 -0
  33. {neobase-0.34.6 → neobase-0.34.8}/update_data.sh +0 -0
@@ -0,0 +1,38 @@
1
+ # python
2
+ *.py[co~]
3
+ __pycache__
4
+ # Ignoring build dir
5
+ /build
6
+ /dist
7
+ /*.egg-info/
8
+ /*.eggs/
9
+ # Coverage reports
10
+ /.coverage*
11
+ /htmlcov
12
+ # Ignoring profiling reports
13
+ *.prof
14
+ *.lprof
15
+ # Tox and pytest
16
+ /.tox
17
+ /.cache
18
+ /.pytest_cache
19
+ # Virtualenv
20
+ /.env*
21
+ # IDE Files
22
+ /.idea
23
+ /.benchmarks
24
+ # Sonar
25
+ /.scannerwork
26
+ # Type checkers
27
+ /.mypy_cache
28
+ /.pyre
29
+ /.pytype
30
+ # Hypothesis
31
+ /.hypothesis
32
+ # Logs
33
+ tests.log
34
+ tests.log.[0-9]
35
+ # Generated by setuptools_scm
36
+ neobase/_version.py
37
+ # Some commits ignored by git blame
38
+ .git-blame-ignore-revs
@@ -0,0 +1,24 @@
1
+ repos:
2
+ - repo: "meta"
3
+ hooks:
4
+ - id: "check-hooks-apply"
5
+ - id: "check-useless-excludes"
6
+
7
+ - repo: "https://github.com/pre-commit/pre-commit-hooks"
8
+ rev: "v5.0.0"
9
+ hooks:
10
+ - id: "check-added-large-files"
11
+ - id: "check-merge-conflict"
12
+ - id: "check-yaml"
13
+
14
+ - repo: "https://github.com/astral-sh/ruff-pre-commit"
15
+ rev: "v0.11.0"
16
+ hooks:
17
+ - id: "ruff"
18
+ args: ["--fix"]
19
+
20
+ - repo: "https://github.com/psf/black-pre-commit-mirror"
21
+ rev: "25.1.0"
22
+ hooks:
23
+ - id: "black"
24
+ language_version: "python3.11"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: NeoBase
3
- Version: 0.34.6
3
+ Version: 0.34.8
4
4
  Summary: Python library to manipulate Open Travel Data
5
5
  Home-page: https://github.com/alexprengere/neobase
6
6
  Author: Alex Prengère
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
13
13
  Requires-Python: >=3.9
14
14
  Description-Content-Type: text/x-rst
15
15
  License-File: LICENSE
16
+ Dynamic: license-file
16
17
 
17
18
  NeoBase |actions|_ |cratev|_ |crated|_
18
19
  ======================================
@@ -150,7 +151,7 @@ Tests
150
151
  A note about performance
151
152
  ------------------------
152
153
 
153
- 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).
154
+ 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).
154
155
 
155
156
  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>`__:
156
157
 
@@ -1,4 +1,5 @@
1
1
  .gitignore
2
+ .pre-commit-config.yaml
2
3
  LICENSE
3
4
  MANIFEST.in
4
5
  README.rst
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: NeoBase
3
- Version: 0.34.6
3
+ Version: 0.34.8
4
4
  Summary: Python library to manipulate Open Travel Data
5
5
  Home-page: https://github.com/alexprengere/neobase
6
6
  Author: Alex Prengère
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
13
13
  Requires-Python: >=3.9
14
14
  Description-Content-Type: text/x-rst
15
15
  License-File: LICENSE
16
+ Dynamic: license-file
16
17
 
17
18
  NeoBase |actions|_ |cratev|_ |crated|_
18
19
  ======================================
@@ -150,7 +151,7 @@ Tests
150
151
  A note about performance
151
152
  ------------------------
152
153
 
153
- 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).
154
+ 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).
154
155
 
155
156
  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>`__:
156
157
 
@@ -134,7 +134,7 @@ Tests
134
134
  A note about performance
135
135
  ------------------------
136
136
 
137
- 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).
137
+ 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).
138
138
 
139
139
  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>`__:
140
140
 
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env python
2
+
3
+ from .neobase import * # noqa: F403
4
+ from ._version import __version__ # noqa: F401
@@ -135,7 +135,7 @@ def main():
135
135
  data = G.get(key)
136
136
  for name in sorted(data):
137
137
  if not name.startswith("__") or data[name]:
138
- print(f"{name:<20s}{repr(data[name])}")
138
+ print(f"{name:<20s}{data[name]!r}")
139
139
 
140
140
 
141
141
  if __name__ == "__main__":
@@ -0,0 +1 @@
1
+ __version__ = "0.34.8"
@@ -43,7 +43,7 @@ except ImportError:
43
43
  return zip(a, b)
44
44
 
45
45
 
46
- __all__ = ["NeoBase", "LatLng", "OPTD_POR_URL", "UnknownKeyError"]
46
+ __all__ = ["OPTD_POR_URL", "LatLng", "NeoBase", "UnknownKeyError"]
47
47
 
48
48
  OPTD_POR_URL = (
49
49
  "https://raw.githubusercontent.com/opentraveldata/opentraveldata/"