Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Utils for Gen3 commons user management

Project description


Utils for Gen3 commons user management.

user.yaml validation

Validate a user.yaml file using the CLI:

pip install gen3users
gen3users validate first_user.yaml second_user.yaml

Validate a user.yaml file in a Python script:

from gen3users.validation import validate_user_yaml

file_name = "my-gen3-commons/user.yaml"
with open(file_name, "r") as f:
    user_yaml =
    validate_user_yaml(user_yaml, file_name)

user.yaml conversion

Converts a user.yaml file from the old format to the new ABAC-based centralized auth format, required by the latest Fence and Arborist.

Convert a user.yaml file using the CLI:

pip install gen3users
gen3users convert old_user.yaml [new_user.yaml]

Convert a user.yaml in a Python script:

from gen3users.conversion import convert_old_user_yaml_to_new_user_yaml

src_file_name = "my-gen3-commons/old_user.yaml"
dst_file_name = "my-gen3-commons/new_user.yaml"
with open (src_file_name, "r") as f:
        user_yaml =
        convert_old_user_yaml_to_new_user_yaml(user_yaml, dst_file_name)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gen3users, version 0.7.0
Filename, size File type Python version Upload date Hashes
Filename, size gen3users-0.7.0.tar.gz (13.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page