porder
Advanced tools
+5
-1
| Metadata-Version: 2.1 | ||
| Name: porder | ||
| Version: 0.8.2 | ||
| Version: 0.8.3 | ||
| Summary: Simple CLI for Planet Orders v2 | ||
@@ -581,2 +581,6 @@ Home-page: https://github.com/samapriya/porder | ||
| ### v0.8.3 | ||
| - Fixed bundle parsing | ||
| - Updated based bundles | ||
| ### v0.8.2 | ||
@@ -583,0 +587,0 @@ - [Pull request 48](https://github.com/tyson-swetnam/porder/pull/48) |
| Metadata-Version: 2.1 | ||
| Name: porder | ||
| Version: 0.8.2 | ||
| Version: 0.8.3 | ||
| Summary: Simple CLI for Planet Orders v2 | ||
@@ -581,2 +581,6 @@ Home-page: https://github.com/samapriya/porder | ||
| ### v0.8.3 | ||
| - Fixed bundle parsing | ||
| - Updated based bundles | ||
| ### v0.8.2 | ||
@@ -583,0 +587,0 @@ - [Pull request 48](https://github.com/tyson-swetnam/porder/pull/48) |
@@ -5,2 +5,2 @@ # -*- coding: utf-8 -*- | ||
| __email__ = "samapriya.roy@gmail.com" | ||
| __version__ = "0.8.2" | ||
| __version__ = "0.8.3" |
+1
-50
@@ -110,35 +110,2 @@ { | ||
| }, | ||
| "analytic_5b": { | ||
| "name": "Analytic Image", | ||
| "description": "Radiometrically-calibrated analytic image stored as 16-bit scaled radiance", | ||
| "bands": "all", | ||
| "rectification": "orthorectified", | ||
| "radiometry": "at-sensor", | ||
| "fileType": "GeoTIFF", | ||
| "auxiliaryFiles": "udm", | ||
| "assets": { | ||
| "PSOrthoTile": [ | ||
| "analytic_5b", | ||
| "analytic_5b_xml", | ||
| "udm" | ||
| ] | ||
| } | ||
| }, | ||
| "analytic_5b_udm2": { | ||
| "name": "Analytic Image", | ||
| "description": "Radiometrically-calibrated analytic image stored as 16-bit scaled radiance. Includes udm2", | ||
| "bands": "all", | ||
| "rectification": "orthorectified", | ||
| "radiometry": "at-sensor", | ||
| "fileType": "GeoTIFF", | ||
| "auxiliaryFiles": "udm and udm2", | ||
| "assets": { | ||
| "PSOrthoTile": [ | ||
| "analytic_5b", | ||
| "analytic_5b_xml", | ||
| "udm", | ||
| "udm2" | ||
| ] | ||
| } | ||
| }, | ||
| "visual": { | ||
@@ -373,12 +340,2 @@ "name": "Visual", | ||
| ], | ||
| "PSOrthoTile": [ | ||
| "analytic_sr", | ||
| "udm", | ||
| "analytic_xml" | ||
| ], | ||
| "REOrthoTile": [ | ||
| "analytic_sr", | ||
| "udm", | ||
| "analytic_xml" | ||
| ], | ||
| "MOD09GQ": [ | ||
@@ -468,8 +425,2 @@ "analytic_num_observations", | ||
| "udm2" | ||
| ], | ||
| "PSOrthoTile": [ | ||
| "analytic_sr", | ||
| "udm", | ||
| "udm2", | ||
| "analytic_xml" | ||
| ] | ||
@@ -704,3 +655,3 @@ } | ||
| }, | ||
| "version": "2020-03-10" | ||
| "version": "02-20-20" | ||
| } |
+8
-10
@@ -35,2 +35,3 @@ from __future__ import print_function | ||
| import pkg_resources | ||
| import dateutil.parser | ||
| from bs4 import BeautifulSoup | ||
@@ -355,14 +356,11 @@ from pySmartDL import SmartDL | ||
| def bundles(item): | ||
| url = "https://developers.planet.com/docs/orders/product-bundles-reference/" | ||
| html = requests.get(url).text | ||
| soup = BeautifulSoup(html, "html.parser") | ||
| url = "https://developers.planet.com/theme/js/scrub_all_bundles_bundle_spec.json" | ||
| date_response = requests.get(url).json() | ||
| ref_date = dateutil.parser.parse(date_response['version']) | ||
| with open(os.path.join(lpath, "bundles.json")) as f: | ||
| r = json.load(f) | ||
| current = r["version"] | ||
| curr_date = datetime.datetime.strptime(current, "%Y-%m-%d") | ||
| for detail in soup.find_all("em"): | ||
| release = detail.text.split(":")[1].strip() | ||
| ref_date = datetime.datetime.strptime(release, "%Y-%m-%d") | ||
| r=json.load(f) | ||
| current= r['version'] | ||
| curr_date = dateutil.parser.parse(current) | ||
| if curr_date < ref_date: | ||
| print("Refreshing bundles to " + "\n" + str(release)) | ||
| print("Refreshing bundles to " + "\n" + str(date_response['version'])) | ||
| try: | ||
@@ -369,0 +367,0 @@ url = "https://developers.planet.com/theme/js/scrub_all_bundles_bundle_spec.json" |
+4
-0
@@ -573,2 +573,6 @@ # porder: Simple CLI for Planet ordersV2 API [](https://twitter.com/intent/tweet?text=Use%20porder%20CLI%20with%20@planetlabs%20new%20ordersv2%20API&url=https://github.com/tyson-swetnam/porder) | ||
| ### v0.8.3 | ||
| - Fixed bundle parsing | ||
| - Updated based bundles | ||
| ### v0.8.2 | ||
@@ -575,0 +579,0 @@ - [Pull request 48](https://github.com/tyson-swetnam/porder/pull/48) |
+1
-1
@@ -23,3 +23,3 @@ import sys | ||
| name='porder', | ||
| version='0.8.2', | ||
| version='0.8.3', | ||
| packages=['porder'], | ||
@@ -26,0 +26,0 @@ url='https://github.com/samapriya/porder', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
299585
-0.37%3940
-1.28%