Skip to main content

gen3users

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 = f.read()
    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 = f.read()
        convert_old_user_yaml_to_new_user_yaml(user_yaml, dst_file_name)

Metadata

Release files for gen3users 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gen3users 1.1.1
File Size Uploaded
gen3users-1.1.1.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gen3users 1.1.1
File Interpreter ABI Platform
gen3users-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 33.7 kB

Release files / gen3users-1.1.1.tar.gz

Download URL gen3users-1.1.1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6636ff127ce145f9104fc72358dd17de54b19be19ae45b89e13876c0adcf4ba0
BLAKE2b-256 checksum
How to use checksums
56e56bc8024b829d344601193bdd8552f0e883b6809e3046550f7da05042f1ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1022-azure

Release files / gen3users-1.1.1-py3-none-any.whl

Download URL gen3users-1.1.1-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a38ba90c8cef5f7c4ed6ae2f1f1d733524d48b1b2c60e66db8537e36194faab
BLAKE2b-256 checksum
How to use checksums
08d7327f0d4aa4d654950d7f81d38e9330a94959f452eb45608410a486c6e95a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1022-azure

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.5

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page