cross-streets 0.1__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 eebideebi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: cross_streets
3
+ Version: 0.1
4
+ License-File: LICENSE
5
+ Requires-Dist: pydantic>=2.12
6
+ Dynamic: license-file
7
+ Dynamic: requires-dist
@@ -0,0 +1,8 @@
1
+ # cross_streets
2
+ Python Library that translates cross streets into Overpass/Nominatim queries
3
+
4
+
5
+ # Building from source
6
+ 1. Clone this repository
7
+ 2. Install `requirements.txt`
8
+ 3. Run `python setup.py sdist bdist_wheel`
@@ -0,0 +1 @@
1
+ from .main import CrossStreets
@@ -0,0 +1,15 @@
1
+ from pydantic import BaseModel
2
+
3
+ class Location(BaseModel):
4
+ latitude: float
5
+ longitude: float
6
+
7
+ class CrossStreets:
8
+ def __init__(self):
9
+ print("running init")
10
+ def geocode(self, raw_intersection:str)->Location:
11
+ return Location(latitude=1, longitude=1)
12
+
13
+ if __name__ == "__main__":
14
+ cs = CrossStreets()
15
+ print(cs.geocode('test'))
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: cross_streets
3
+ Version: 0.1
4
+ License-File: LICENSE
5
+ Requires-Dist: pydantic>=2.12
6
+ Dynamic: license-file
7
+ Dynamic: requires-dist
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ setup.py
4
+ cross_streets/__init__.py
5
+ cross_streets/main.py
6
+ cross_streets.egg-info/PKG-INFO
7
+ cross_streets.egg-info/SOURCES.txt
8
+ cross_streets.egg-info/dependency_links.txt
9
+ cross_streets.egg-info/requires.txt
10
+ cross_streets.egg-info/top_level.txt
11
+ tests/test_initialization.py
@@ -0,0 +1 @@
1
+ pydantic>=2.12
@@ -0,0 +1 @@
1
+ cross_streets
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,10 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name='cross_streets',
5
+ version='0.1',
6
+ packages=find_packages(),
7
+ install_requires=[
8
+ 'pydantic >= 2.12'
9
+ ]
10
+ )
@@ -0,0 +1,7 @@
1
+ import cross_streets as cs
2
+
3
+ import pytest
4
+
5
+ def test_intialization():
6
+ streets = cs.CrossStreets()
7
+ assert type(streets.geocode('test')) == cs.main.Location