URI standard library #270

Open
opened 2025-12-30 01:23:00 +01:00 by adam · 2 comments
Owner

Originally created by @bioball on GitHub (Jan 27, 2025).

Pkl's standard library is missing a URI type, but this is a quite common type in service configuration.

For example:

  • Website address
  • Database connection string

Additionally, it's necessary to construct a valid URI sometimes when interacting with read().
Currently, this requires importing package pkl.experimental.uri.

There should be an API within the standard library for working with URIs.

This requires a SPICE to be written to iterate on the design.

Originally created by @bioball on GitHub (Jan 27, 2025). Pkl's standard library is missing a URI type, but this is a quite common type in service configuration. For example: * Website address * Database connection string Additionally, it's necessary to construct a valid URI sometimes when interacting with `read()`. Currently, this requires [importing package `pkl.experimental.uri`](https://github.com/apple/pkl-pantry/blob/main/packages/k8s.contrib/convert.pkl#L112). There should be an API within the standard library for working with URIs. This requires a SPICE to be written to iterate on the design.
Author
Owner

@bioball commented on GitHub (Jan 30, 2025):

SPICE is up! https://github.com/apple/pkl-evolution/pull/13

@bioball commented on GitHub (Jan 30, 2025): SPICE is up! https://github.com/apple/pkl-evolution/pull/13
Author
Owner

@bioball commented on GitHub (Feb 3, 2025):

I'm going to punt this to the 0.29 release. I think there's too many open questions here, and I doubt that we can get a polished version out in just three weeks.

@bioball commented on GitHub (Feb 3, 2025): I'm going to punt this to the 0.29 release. I think there's too many open questions here, and I doubt that we can get a polished version out in just three weeks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#270