Connecting to External Resources
You can connect your Anvil app to code, web services, and databases that live outside of Anvil.
Uplink: code outside Anvil
The Anvil Uplink lets you connect Python code running anywhere — your laptop, a private server, an IoT device, or a Colab notebook — to your Anvil app. The Uplink can expose callable functions to your app, and your app can call them just like any other server function.
HTTP APIs
Anvil makes it easy to make HTTP requests from client or server code. You can also expose your app’s own functionality as HTTP endpoints using the @anvil.server.route() decorator.
Connecting to an external database
Because Anvil’s back end is a full Python environment, you can use standard database drivers such as Pymysql or Psycopg2 in your Server Modules to query a MySQL or PostgreSQL database.
Do you still have questions?
Our Community Forum is full of helpful information and Anvil experts.