Skip to content

Instantly share code, notes, and snippets.

Guillaume Lostis glostis

Block or report user

Report or block glostis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View planet_permissions.py
from planet.api import ClientV1, filters
from simplekml import Kml, Style, Color
def get_items(item_type="SkySatScene", permission="assets.basic_panchromatic_dn:download"):
client = ClientV1()
query = filters.and_filter(filters.permission_filter(permission))
request = filters.build_search_request(query, item_types=[item_type])
result = client.quick_search(request)
You can’t perform that action at this time.