Skip to content

Conversation

@pounard
Copy link
Member

@pounard pounard commented Jul 24, 2025

TL;DR:

Given the following file:

Number,Foo,Animal
1,foo,cat
2,bar,dog
3,baz,girafe

Then:

# db_tools.config.yaml
anonymization:
    default:
        customer:
            my_data:
                anonymizer: file_column
                options:
                    source: ./resources/my_data.csv
                    # Define your CSV file column names.
                    columns: [number, foo, animal]
                    # Other allowed options.
                    file_skip_header: true
                    # Now your columns, keys are CSV column names
                    # you set upper, values are your database column
                    # names.
                    number: my_integer_column
                    foo: my_foo_column
                    animal: my_animal_column
  #...

Which behaves then like any multiple column anonymizer.

No magic, this is quite simple.

@pounard pounard self-assigned this Jul 24, 2025
@pounard pounard force-pushed the datalist-2quater-file-column branch from 46187c1 to ee5cfa6 Compare October 18, 2025 14:02
@pounard pounard force-pushed the datalist-2quater-file-column branch from ee5cfa6 to 70ef59b Compare October 18, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants