Skip to content

Instantly share code, notes, and snippets.

@birkin
Created February 25, 2026 15:51
Show Gist options
  • Select an option

  • Save birkin/8c10e338f266555e53ac2f3a496e4153 to your computer and use it in GitHub Desktop.

Select an option

Save birkin/8c10e338f266555e53ac2f3a496e4153 to your computer and use it in GitHub Desktop.
demo script for code4lib-2026 talk on `uv`
# /// script
# requires-python = ">=3.12, <3.13"
# dependencies = [
# "httpx==0.28.1",
# ]
# ///
import httpx
def main():
url = 'https://repository.library.brown.edu/api/items/bdr:80246/'
response = httpx.get(url)
data = response.json()
primary_title = data.get('primary_title')
print(f'Primary Title: {primary_title}')
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment