snowplow / snowplow-python-analytics-sdk

Python SDK for working with Snowplow enriched events in Spark, AWS Lambda et al.
21 stars 9 forks source link

Add extract_schema(uri) function #26

Closed alexanderdean closed 7 years ago

alexanderdean commented 7 years ago

Let's extract an extract_schema(uri) function from the current fix_schema(prefix, schema) as it's quite useful functionality:

extract_schema("iglu:com.acme-corporation_underscore/event_name-dash/jsonschema/1-10-1")
{'version': '1-10-1', 'vendor': 'com.acme-corporation_underscore', 'name': 'event_name-dash', 'format': 'jsonschema'}