Live Chat

We'll need to share your messages (and your email address if you're logged in) with our live chat provider, Drift. Here's their privacy policy.

If you don't want to do this, you can email us instead at contact@anvil.works.

User Interfaces and Client Code

With Anvil, you can build the user interface of your web app in Python: either by using Anvil’s drag-and-drop designer, or by writing code.

You can then bring your app to life by writing Python code that runs in the browser.

Structure of an Anvil UI

Your app’s user interface is made up of one or more Forms, which are pages (or parts of pages) that you create in the Anvil editor.

Your Forms are made up of components such as buttons, text boxes, panels, and so on. In fact, your Forms are themselves components!

You can even define your own components and have them appear in the toolbox of the visual designer.

Python Code

Each Form is also a Python class, with Python code that runs in the web browser when a user opens your app. You can specify code to run when events fire (for example, when the user clicks a particular button). Your code can control the components on your Form, to dynamically display data, navigate around the app, and generally control a dynamic UI.

And, of course, you can make calls to your app’s Server Modules, which run on the Anvil server instead of in the browser, and to Python code outside of Anvil.