Create your own API with Python and FastAPI with YiWen Hon
We are very excited to announce that the NHS-R Community will be hosting its annual conference, including pre-conference online talks, online workshops and the main conference, during October 2023.
The online conference workshop will be hosted via Zoom and take place on the following date:
The objective of this workshop is to introduce Python users to the FastAPI package and show them how to build their own API, using free and open source tools. APIs are a great way of making machine learning models more accessible to a wider audience, reducing the technical barrier to entry.
We will begin with an overview of what APIs are and how they can be interrogated, and a revision of basic concepts such as the JSON data format, and how it is comprised of the lists and dict types. We will practice using the requests library to query a simple API endpoint. We will then move on to using FastAPI to build a very basic endpoint, using the Uvicorn package to test if it works on the local machine. After that, we will build a more complex API endpoint that accepts parameters, again testing if it works on the local machine. Depending on the progress of participants, we can also touch on more complex concepts such as validating parameters, POST requests, and documentation. The workshop will finish with suggestions for how the API can be made publicly available, with an overview of some hosting solutions, and common considerations such as authentication and security.
By the end of the workshop, participants should be able to:
By registering for this event, you will qualify for the following:
A Zoom link will be provided to you to attend the conference workshop virtually. Please note that if subtitles are used, they are likely to be generated by Zoom thus, may encounter some issues converting technical language and acronyms to text.
If you require any additional information or have any accessibility requests, please do not hesitate to contact the Conference Team via email@example.com.
Additional Conference Related Activities
Please note that the conference will also include the following separate activities:
Data Scientist at Nottinghamshire Healthcare NHS Trust
YiWen was a librarian for 10 years before retraining as a data scientist. She now works on an NHS England funded open source project, pxtextmining, creating natural language processing models to help NHS Trusts make better use of their qualitative data. She also teaches Python and data science at the coding bootcamp provider, Le Wagon.
October 2, 2023
1:30 pm - 5:00 pm
Only authorised members can sign up to this event, please log in first to register.