Datapane's Python library and CLI can be installed using pip.
$ pip3 install datapane
Once installed, you can use the API described in this tutorial and in the reference to build and export your own reports locally and share them as HTML files. From there, you can also sign up to the free hosted server to deploy your reports and run scripts.
As well as a Python client, Datapane has a server component which allows you to both share reports and execute your scripts to allow others generate reports and actions dynamically.
datapane.com is available as a free, public server, which you can use to share reports and scripts. The API and CLI is configured to use this server by default.
To use Datapane, first sign up for a free account and copy the API key provided in the web interface. Next, login using the CLI using this key. All requests from both the CLI and Python library will now be authenticated.
$ datapane loginEnter your API Key: [paste your API key here]
Datapane provides private hosted servers and supports on-premise instances for teams and enterprises. In such a case, log in to your instance, for instance
https://your-company.datapane.com, using your existing credentials (these will have been provide to you by your admin).
Similarly to using the public instance, your home page will indicate your API key and you will be able authenticate by passing in your API key to the login command. You can pass in the full URL of your server to the login command as follows.
$ datapane login --server=https://acme.datapane.comEnter your API Key: [paste your API key here]