File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 39
39
import geopandas
40
40
from shapely .geometry .multipolygon import MultiPolygon
41
41
import sliderule
42
+ from sliderule import version
42
43
43
44
###############################################################################
44
45
# GLOBALS
@@ -710,3 +711,12 @@ def toregion (filename, tolerance=0.0):
710
711
711
712
# return region #
712
713
return regions
714
+
715
+ #
716
+ # GET VERSION
717
+ #
718
+ def get_version ():
719
+
720
+ rsps = sliderule .source ("version" , {})
721
+ rsps ["client" ] = {"version" : version .full_version }
722
+ return rsps
Original file line number Diff line number Diff line change 1
1
#
2
2
# Connects to SlideRule server node at provided url and prints the metrics
3
3
# associated with the queried attribute.
4
- #
5
- # This bypasses service discovery and goes directly to the server node.
6
- #
7
- # Use query_services.py to get list of server node IP addresses
4
+ #
5
+ # This bypasses service discovery and goes directly to the server node.
6
+ #
7
+ # Use query_services.py to get list of server node IP addresses
8
8
#
9
9
import sys
10
10
import logging
40
40
41
41
# Build Metric Request
42
42
rqst = {
43
- "attr" : attr
43
+ "attr" : attr
44
44
}
45
45
46
46
# Retrieve Metrics
You can’t perform that action at this time.
0 commit comments