Shared libraries, for use in any fides project.
pip install fideslib
Examples here will assume a project structure of
the root module.
To use the default config settings create a module and file to store the config. In
this example we will use
from fideslib.core.config import get_config
config = get_config()
Then the config can be used in other files by importing
from my_project.core.config import config
The default config can be overridden by extending the settings classes. With the same
setup as above, in the
from fideslib.core.config import DatabaseSettings, FidesSettings, get_config
env_prefix = "FIDESOPS__DATABASE__"
config = get_config(ExtendedDataBaseSettings) # pass the name of the custom settings class here
Now the resulting
config.database will contain the extra
extra_field field and
ExtendedDataBaseSettings will look for environment variables with
We welcome and encourage all types of contributions and improvements!
Read about the Fides community or dive into the development guides for information about contributions, documentation, code style, testing, and more. Ethyca is committed to fostering a safe and collaborative environment, such that all interactions are governed by the Fides Code of Conduct.
Fides is created and sponsored by Ethyca: a developer tools company building the trust infrastructure of the internet. If you have questions or need assistance getting started, let us know at firstname.lastname@example.org!
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.