sirepo.auth_db package

Auth database

copyright:

Copyright (c) 2018-2019 RadiaSoft LLC. All Rights Reserved.

license:

http://www.apache.org/licenses/LICENSE-2.0.html

sirepo.auth_db.db_filename()[source]
sirepo.auth_db.get_class(name)[source]
sirepo.auth_db.init_module()[source]
sirepo.auth_db.init_quest(qcall)[source]
sirepo.auth_db.primary_key_column(prefix)[source]

Submodules

sirepo.auth_db.base module

copyright:

Copyright (c) 2022 RadiaSoft LLC. All Rights Reserved.

license:

http://www.apache.org/licenses/LICENSE-2.0.html

class sirepo.auth_db.base.DbUpgrade(**kwargs)[source]

Bases: UserDbBase

created
name

sirepo.auth_db.email module

email auth user

copyright:

Copyright (c) 2022 RadiaSoft LLC. All Rights Reserved.

license:

http://www.apache.org/licenses/LICENSE-2.0.html

class sirepo.auth_db.email.AuthEmailUser(*args, **kwargs)[source]

Bases: UserDbBase

EMAIL_SIZE = 255
EXPIRES_MINUTES = 480
create_token()[source]
expires
token
uid
unchecked_uid(**filter_by)[source]
unverified_email
user_name

sirepo.auth_db.jupyterhub module

sim_api.jupyterhublogin model

copyright:

Copyright (c) 2022 RadiaSoft LLC. All Rights Reserved.

license:

http://www.apache.org/licenses/LICENSE-2.0.html

class sirepo.auth_db.jupyterhub.JupyterhubUser(**kwargs)[source]

Bases: UserDbBase

uid
user_name

sirepo.auth_db.stripe module

Stripe db tables

copyright:

Copyright (c) 2025 RadiaSoft LLC. All Rights Reserved.

license:

http://www.apache.org/licenses/LICENSE-2.0.html

class sirepo.auth_db.stripe.StripePayment(**kwargs)[source]

Bases: UserDbBase

amount_paid
created
customer_id
invoice_id
payment_exists(invoice_id)[source]
subscription_id
subscription_name
uid
user_payment_key
class sirepo.auth_db.stripe.StripeSubscription(**kwargs)[source]

Bases: UserDbBase

checkout_session_id
created
creation_reason
customer_id
not_revoked_stripe_subscriptions()[source]
revocation_reason
revoke_due_to_inactive_stripe_status(subscription_record)[source]
revoked
role
stripe_subscription_key
subscription_id
uid

sirepo.auth_db.user module

auth database models for user roles.

copyright:

Copyright (c) 2022 RadiaSoft LLC. All Rights Reserved.

license:

http://www.apache.org/licenses/LICENSE-2.0.html

class sirepo.auth_db.user.UserRegistration(**kwargs)[source]

Bases: UserDbBase

created
display_name
uid
class sirepo.auth_db.user.UserRole(**kwargs)[source]

Bases: UserDbBase

add_plan(role, uid, expiration=None)[source]
add_roles(roles, uid, expiration=None)[source]

Add roles or update expiration

all_roles()[source]
delete_roles(roles, uid)[source]
expiration
expire_role(role, uid)[source]
get_roles(uid)[source]
get_roles_and_expiration(uid)[source]
has_active_plan(uid)[source]
has_active_role(role, uid)[source]
has_expired_role(role, uid)[source]
role
set_role_expiration(role, uid, expiration)[source]
uid
uids_of_paid_users()[source]
uids_with_roles(roles)[source]
unchecked_active_plan(uid)[source]
class sirepo.auth_db.user.UserRoleModeration(**kwargs)[source]

Bases: UserDbBase

get_moderation_request_rows()[source]
get_status(role, uid)[source]
last_updated
moderator_uid
role
set_status(role, uid, status, moderator_uid)[source]
status
uid