Data provider

Datamule supports multiple data providers. The default data provider is sec. You can set the default provider using the Config class.

from datamule import Config

config = Config()
config.set_default_source("datamule") # set default source to datamule, can also be "sec"
print(f"Default source: {config.get_default_source()}")

Getting a datamule API Key

You can get a datamule API Key here: https://datamule.xyz/dashboard.

Setting the API Key

Datamule automatically looks for the environment variable DATAMULE_API_KEY. You can set this environment variable in your shell profile or directly in your code.

PowerShell

[System.Environment]::SetEnvironmentVariable('DATAMULE_API_KEY', 'your-api-key', 'User')

Bash

echo 'export DATAMULE_API_KEY="your-api-key"' >> ~/.bashrc
source ~/.bashrc

Zsh (macOS default)

echo 'export DAT

Note

I don’t use macOS, so I’m not sure if this is correct. Please let me know if it’s not.