fideslib
Installation
pip install fideslib
Usage
Config
Examples here will assume a project structure of src/my_project where my_project is
the root module.
To use the default config settings create a module and file to store the config. In
this example we will use src/my_project/core/config.py.
from fideslib.core.config import get_config
config = get_config()
Then the config can be used in other files by importing config.
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 src/my_project/core/config.py file:
from fideslib.core.config import DatabaseSettings, FidesSettings, get_config
class ExtendedDataBaseSettings(DatabaseSettings):
extra_field: str
class Config:
env_prefix = "FIDESOPS__DATABASE__"
class ExtendedFidesSettings(FidesSettings):
database: ExtendedDataBaseSettings
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
FIDESOBS__DATABASE__.
Contributing
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.
License
The Fides ecosystem of tools are licensed under the Apache Software License Version 2.0. Fides tools are built on Fideslang, the Fides language specification, which is licensed under CC by 4.
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 fides@ethyca.com!
Metadata
Release files for fideslib 3.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fideslib-3.1.5.tar.gz | 28.6 kB | Without provenance | Details |
Release files / fideslib-3.1.5.tar.gz
| Download URL | fideslib-3.1.5.tar.gz |
|---|---|
| Size | 28.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
407b3be27c78c3638fd77fe0a736e0614a3ef9fae3de137a55dc4fdf68cfb03b
|
|
BLAKE2b-256 checksum How to use checksums |
e4bf200fc6dc6f3366ac52c7fda690de70cd8f88a9ee941f96d450badb143866
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for fideslib 3.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.