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.

anvil.server [uplink] Module

Functions

connect(key, [init_session=None], [quiet=False]) (more info)

Connect your uplink script to your anvil app.

  • init_session - If you pass a function to the init_session keyword parameter, it will be called after the uplink connection is established, but before any other interaction

  • quiet - Set quiet to True to surpress connection output. Errors will still be displayed.


disconnect()

Disconnect your uplink script from your anvil app. Your script is then free to call anvil.server.connect() with the same uplink key or a new uplink key.


    wait_forever() (more info)

    A useful shortcut to keep your Python script running. This allows your app to anvil.server.call functions inside your Python script. You can use any other way to keep the process alive in place of this function.



      anvil.server [uplink]