mirror of
https://github.com/zulip/zulip.git
synced 2026-06-06 21:12:33 +08:00
As zuliprc files are in a standard format that you can access from any programming language, not just Python, it makes more sense to have them documented with the information about API keys. Fixes #10670.
1.3 KiB
1.3 KiB
Configuring the Python bindings
Zulip provides a set of tools that allows interacting with its API more easily, called the Python bindings. One of the most notable use cases for these bindings are bots developed using Zulip's bot framework.
In order to use them, you need to configure them with your identity (account, API key, and Zulip server URL). There are a few ways to achieve that:
- Using a
zuliprcfile, referenced via the--config-fileoption or theconfig_fileoption to thezulip.Clientconstructor (recommended for bots). - Using a
zuliprcfile in your home directory at~/.zuliprc(recommended for your own API key). - Using the environment variables documented here.
- Using the
--api-key,--email, and--sitevariables as command line parameters. - Using the
api_key,email, andsiteparameters to thezulip.Clientconstructor.