simplestmaps 1.6.0__tar.gz → 1.7.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,72 @@
1
+ Metadata-Version: 2.4
2
+ Name: simplestmaps
3
+ Version: 1.7.1
4
+ Summary: Super simple on-liner maps in python.
5
+ Home-page: http://github.com/fisadev/simplestmaps
6
+ Author: Juan Pedro Fisanotti
7
+ Author-email: fisadev@gmail.com
8
+ License: MIT
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Natural Language :: English
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: folium>=0.14.0
18
+ Dynamic: author
19
+ Dynamic: author-email
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: license
25
+ Dynamic: license-file
26
+ Dynamic: requires-dist
27
+ Dynamic: summary
28
+
29
+ # Simplest Maps
30
+
31
+ Super simple on-liner maps in python.
32
+
33
+ # Installation
34
+
35
+ `pip3 install simplestmaps`
36
+
37
+ # Usage
38
+
39
+ This lib aims to be super simple to use. For instance, to draw a markers and an area, you could do something like this:
40
+
41
+ ```python
42
+ from simplestmaps import draw_map, area, marker
43
+
44
+ draw_map(
45
+ marker(-31.2526, -61.4917, popup="my hometown"),
46
+ area([(-31.2741, -61.5105), (-31.2872, -61.5137), (-31.2895, -61.5003), (-31.2764, -61.4973)], color="green", popup="our airfield"),
47
+ )
48
+ ```
49
+
50
+ ![example map](./docs/readme_example1.png)
51
+
52
+ It can even do more advanced stuff, like plotting the contents of a geojson file (points, areas, lines):
53
+
54
+ ```python
55
+ from simplestmaps import draw_map, geojson
56
+
57
+ draw_map(
58
+ geojson("./docs/readme_example.geojson"),
59
+ )
60
+ ```
61
+
62
+ ![example map](./docs/readme_example2.png)
63
+
64
+ SimplestMaps can plot markers, dots, labels (text), custom html, lines, areas and geojsons, and all of that can be combined in every map.
65
+
66
+ And every element plotted into the map is also customizable (colors, fonts, sizes, popups, etc).
67
+
68
+ # More demos and docs
69
+
70
+ Here are a good set of examples that showcase (and document) all of the supported features:
71
+
72
+ ## [Take a look at everything that's possible with so little code!](https://simplestmaps.fisadev.com/)
@@ -19,7 +19,7 @@ draw_map(
19
19
  )
20
20
  ```
21
21
 
22
- ![example map](./readme_example1.png)
22
+ ![example map](./docs/readme_example1.png)
23
23
 
24
24
  It can even do more advanced stuff, like plotting the contents of a geojson file (points, areas, lines):
25
25
 
@@ -27,11 +27,11 @@ It can even do more advanced stuff, like plotting the contents of a geojson file
27
27
  from simplestmaps import draw_map, geojson
28
28
 
29
29
  draw_map(
30
- geojson("./readme_example.geojson"),
30
+ geojson("./docs/readme_example.geojson"),
31
31
  )
32
32
  ```
33
33
 
34
- ![example map](./readme_example2.png)
34
+ ![example map](./docs/readme_example2.png)
35
35
 
36
36
  SimplestMaps can plot markers, dots, labels (text), custom html, lines, areas and geojsons, and all of that can be combined in every map.
37
37
 
@@ -41,4 +41,4 @@ And every element plotted into the map is also customizable (colors, fonts, size
41
41
 
42
42
  Here are a good set of examples that showcase (and document) all of the supported features:
43
43
 
44
- ## [Take a look at everything that's possible with so little code!](https://nbviewer.org/github/fisadev/simplestmaps/blob/e26f7cbe1eb195714f87e3804e766e302b7e51b5/demo_and_docs.ipynb)
44
+ ## [Take a look at everything that's possible with so little code!](https://simplestmaps.fisadev.com/)
@@ -3,7 +3,7 @@ from setuptools import setup
3
3
 
4
4
  setup(
5
5
  name="simplestmaps",
6
- version="1.6.0",
6
+ version="1.7.1",
7
7
  description="Super simple on-liner maps in python.",
8
8
  long_description=open("README.md").read(),
9
9
  long_description_content_type="text/markdown",
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.4
2
+ Name: simplestmaps
3
+ Version: 1.7.1
4
+ Summary: Super simple on-liner maps in python.
5
+ Home-page: http://github.com/fisadev/simplestmaps
6
+ Author: Juan Pedro Fisanotti
7
+ Author-email: fisadev@gmail.com
8
+ License: MIT
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Natural Language :: English
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: folium>=0.14.0
18
+ Dynamic: author
19
+ Dynamic: author-email
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: license
25
+ Dynamic: license-file
26
+ Dynamic: requires-dist
27
+ Dynamic: summary
28
+
29
+ # Simplest Maps
30
+
31
+ Super simple on-liner maps in python.
32
+
33
+ # Installation
34
+
35
+ `pip3 install simplestmaps`
36
+
37
+ # Usage
38
+
39
+ This lib aims to be super simple to use. For instance, to draw a markers and an area, you could do something like this:
40
+
41
+ ```python
42
+ from simplestmaps import draw_map, area, marker
43
+
44
+ draw_map(
45
+ marker(-31.2526, -61.4917, popup="my hometown"),
46
+ area([(-31.2741, -61.5105), (-31.2872, -61.5137), (-31.2895, -61.5003), (-31.2764, -61.4973)], color="green", popup="our airfield"),
47
+ )
48
+ ```
49
+
50
+ ![example map](./docs/readme_example1.png)
51
+
52
+ It can even do more advanced stuff, like plotting the contents of a geojson file (points, areas, lines):
53
+
54
+ ```python
55
+ from simplestmaps import draw_map, geojson
56
+
57
+ draw_map(
58
+ geojson("./docs/readme_example.geojson"),
59
+ )
60
+ ```
61
+
62
+ ![example map](./docs/readme_example2.png)
63
+
64
+ SimplestMaps can plot markers, dots, labels (text), custom html, lines, areas and geojsons, and all of that can be combined in every map.
65
+
66
+ And every element plotted into the map is also customizable (colors, fonts, sizes, popups, etc).
67
+
68
+ # More demos and docs
69
+
70
+ Here are a good set of examples that showcase (and document) all of the supported features:
71
+
72
+ ## [Take a look at everything that's possible with so little code!](https://simplestmaps.fisadev.com/)
@@ -54,6 +54,10 @@ def to_points(source, inverted_tuples=False):
54
54
  # a few known classes that have latitude_deg longitude_deg attributes, like the
55
55
  # locations from the orbit-predictor lib
56
56
  lat, lon = source.latitude_deg, source.longitude_deg
57
+ elif source.__class__.__name__ == "Position" and hasattr(source, "position_llh"):
58
+ # a known class from the orbit-predictor lib, which has ECEF coordinates but can easily
59
+ # produce lat, lon, height coords
60
+ lat, lon, _ = source.position_llh
57
61
  elif isinstance(source, (tuple, list)):
58
62
  if len(source) == 1:
59
63
  # a sequence with a single object inside, so extract a point from it as if we just got
@@ -303,11 +307,9 @@ def geojson(path_or_data, points_as=marker, lines_as=line, areas_as=area):
303
307
  )
304
308
 
305
309
 
306
- def draw_map(*things, center=(0, 0), zoom=1.5, tiles="cartodbpositron"):
310
+ def draw_map(*things, center=(0, 0), zoom=1.5, tiles="OpenStreetMap"):
307
311
  """
308
- Draw a simple map with elements on it. Good known working tiles with folium 0.14:
309
- - "cartodbpositron" (white maps)
310
- - "OpenStreetMap"
312
+ Draw a simple map with elements on it.
311
313
 
312
314
  More info on tiles:
313
315
  https://python-visualization.github.io/folium/latest/user_guide/raster_layers/tiles.html
@@ -1,61 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: simplestmaps
3
- Version: 1.6.0
4
- Summary: Super simple on-liner maps in python.
5
- Home-page: http://github.com/fisadev/simplestmaps
6
- Author: Juan Pedro Fisanotti
7
- Author-email: fisadev@gmail.com
8
- License: MIT
9
- Description: # Simplest Maps
10
-
11
- Super simple on-liner maps in python.
12
-
13
- # Installation
14
-
15
- `pip3 install simplestmaps`
16
-
17
- # Usage
18
-
19
- This lib aims to be super simple to use. For instance, to draw a markers and an area, you could do something like this:
20
-
21
- ```python
22
- from simplestmaps import draw_map, area, marker
23
-
24
- draw_map(
25
- marker(-31.2526, -61.4917, popup="my hometown"),
26
- area([(-31.2741, -61.5105), (-31.2872, -61.5137), (-31.2895, -61.5003), (-31.2764, -61.4973)], color="green", popup="our airfield"),
27
- )
28
- ```
29
-
30
- ![example map](./readme_example1.png)
31
-
32
- It can even do more advanced stuff, like plotting the contents of a geojson file (points, areas, lines):
33
-
34
- ```python
35
- from simplestmaps import draw_map, geojson
36
-
37
- draw_map(
38
- geojson("./readme_example.geojson"),
39
- )
40
- ```
41
-
42
- ![example map](./readme_example2.png)
43
-
44
- SimplestMaps can plot markers, dots, labels (text), custom html, lines, areas and geojsons, and all of that can be combined in every map.
45
-
46
- And every element plotted into the map is also customizable (colors, fonts, sizes, popups, etc).
47
-
48
- # More demos and docs
49
-
50
- Here are a good set of examples that showcase (and document) all of the supported features:
51
-
52
- ## [Take a look at everything that's possible with so little code!](https://nbviewer.org/github/fisadev/simplestmaps/blob/e26f7cbe1eb195714f87e3804e766e302b7e51b5/demo_and_docs.ipynb)
53
-
54
- Platform: UNKNOWN
55
- Classifier: Intended Audience :: Developers
56
- Classifier: License :: OSI Approved :: MIT License
57
- Classifier: Natural Language :: English
58
- Classifier: Operating System :: OS Independent
59
- Classifier: Programming Language :: Python
60
- Classifier: Programming Language :: Python :: 3
61
- Description-Content-Type: text/markdown
@@ -1,61 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: simplestmaps
3
- Version: 1.6.0
4
- Summary: Super simple on-liner maps in python.
5
- Home-page: http://github.com/fisadev/simplestmaps
6
- Author: Juan Pedro Fisanotti
7
- Author-email: fisadev@gmail.com
8
- License: MIT
9
- Description: # Simplest Maps
10
-
11
- Super simple on-liner maps in python.
12
-
13
- # Installation
14
-
15
- `pip3 install simplestmaps`
16
-
17
- # Usage
18
-
19
- This lib aims to be super simple to use. For instance, to draw a markers and an area, you could do something like this:
20
-
21
- ```python
22
- from simplestmaps import draw_map, area, marker
23
-
24
- draw_map(
25
- marker(-31.2526, -61.4917, popup="my hometown"),
26
- area([(-31.2741, -61.5105), (-31.2872, -61.5137), (-31.2895, -61.5003), (-31.2764, -61.4973)], color="green", popup="our airfield"),
27
- )
28
- ```
29
-
30
- ![example map](./readme_example1.png)
31
-
32
- It can even do more advanced stuff, like plotting the contents of a geojson file (points, areas, lines):
33
-
34
- ```python
35
- from simplestmaps import draw_map, geojson
36
-
37
- draw_map(
38
- geojson("./readme_example.geojson"),
39
- )
40
- ```
41
-
42
- ![example map](./readme_example2.png)
43
-
44
- SimplestMaps can plot markers, dots, labels (text), custom html, lines, areas and geojsons, and all of that can be combined in every map.
45
-
46
- And every element plotted into the map is also customizable (colors, fonts, sizes, popups, etc).
47
-
48
- # More demos and docs
49
-
50
- Here are a good set of examples that showcase (and document) all of the supported features:
51
-
52
- ## [Take a look at everything that's possible with so little code!](https://nbviewer.org/github/fisadev/simplestmaps/blob/e26f7cbe1eb195714f87e3804e766e302b7e51b5/demo_and_docs.ipynb)
53
-
54
- Platform: UNKNOWN
55
- Classifier: Intended Audience :: Developers
56
- Classifier: License :: OSI Approved :: MIT License
57
- Classifier: Natural Language :: English
58
- Classifier: Operating System :: OS Independent
59
- Classifier: Programming Language :: Python
60
- Classifier: Programming Language :: Python :: 3
61
- Description-Content-Type: text/markdown
File without changes
File without changes