Created
February 25, 2026 15:51
-
-
Save birkin/8c10e338f266555e53ac2f3a496e4153 to your computer and use it in GitHub Desktop.
demo script for code4lib-2026 talk on `uv`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// 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