Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gen3users

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gen3users

Utils for Gen3 Commons user management

  • 1.1.1
  • PyPI
  • Socket score

Maintainers
1

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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc