Skip to content
We're currently creating a lot of content. Sign up to get notified when it's ready.

Installing Dependencies

This guide explains how to manage external dependencies for Python plugins in Qatium. To ensure compatibility, all dependencies required by your plugin must be specified in the requirements.txt file included with your plugin template.

Configuring Dependencies in requirements.txt

The requirements.txt file lists all the packages your plugin relies on. When adding new dependencies, always ensure they are included in this file. This setup ensures that Qatium loads the necessary packages whenever your plugin is used.

  • Adding a dependency: After installing a package with pip, add the package to your requirements.txt file.
  • Supported sources: Qatium supports dependencies from:
    • PyPI (Python Package Index)
    • JsDelivr CDN
    • Direct URLs to specific packages

Requirements for Dependencies

Due to compatibility considerations, only pure Python packages or packages with cross-platform binaries are supported. For example, popular packages like numpy and pandas are pre-configured to work within the Qatium environment.

If you need to use a package that depends on platform-specific native code, please contact us at support@qatium.com or in the Qatium Community for assistance with compatibility.

Example requirements.txt file

An example of a requirements.txt file might look like this:

requests
numpy==1.21.0
pandas
https://cdn.jsdelivr.net/gh/user/repo/package.whl

In this example:

  • requests, numpy, and pandas will be installed as specified.
  • A custom package from JsDelivr is also included.

By following these guidelines for managing dependencies in requirements.txt, your plugin will be set up correctly to work within Qatium.