Coder Social home page Coder Social logo

jagar2 / create_hub_users_with_tokens Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

This is a short script to help ENGR131. This script will use the command line to create base users and hub user accounts for a jupyterhub. The script will mint a token and save the password and token to a csv.

License: BSD 2-Clause "Simplified" License

Python 95.74% Shell 4.26%

create_hub_users_with_tokens's Introduction

Create_hub_users_with_tokens

This is a short script to help ENGR131. This script will use the command line to create base users and hub user accounts for a jupyterhub. The script will mint a token and save the password and token to a csv.

To run the script with sudo access you type:

python create_user_script.py file_name base_name number_of_accounts admin_api_token hub_ip_address

where:

file_name is the base filename for the CSV file

base_name is the base name of the user account <base_number>

number_of_accounts is the number of accounts to create. The accounts start at 1

admin_api_token is an api token associated with the admin account - this admin must be a sudoer

hub_ip_address is the ip address where the hub is located (This is just the address no http://)

To use:

  1. clone the repository
  2. Modify the batch.sh file if needed
  3. chmod +x ~/Create_hub_users_with_tokens/batch.sh
  4. ~/Create_hub_users_with_tokens/batch.sh {Admin API Token} {hub ip address}

create_hub_users_with_tokens's People

Contributors

jagar2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.