sirepo.pkcli package

Submodules

sirepo.pkcli.admin module

?

copyright:Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved.
license:http://www.apache.org/licenses/LICENSE-2.0.html
sirepo.pkcli.admin.create_examples()[source]

Adds missing app examples to all users.

sirepo.pkcli.admin.purge_users(days=180, confirm=False)[source]

Remove old users from db which have not registered.

Parameters:
  • days (int) – maximum days of untouched files (old is mtime > days)
  • confirm (bool) – delete the directories if True (else don’t delete) [False]
Returns:

directories removed (or to remove if confirm)

Return type:

list

sirepo.pkcli.cookie module

copyright:Copyright (c) 2018 RadiaSoft LLC. All Rights Reserved.
license:http://www.apache.org/licenses/LICENSE-2.0.html
sirepo.pkcli.cookie.gen_private_key()[source]

Generate random private key

sirepo.pkcli.db module

Database utilities

copyright:Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved.
license:http://www.apache.org/licenses/LICENSE-2.0.html
sirepo.pkcli.db.upgrade()[source]

Upgrade the database

sirepo.pkcli.elegant module

sirepo.pkcli.hellweg module

sirepo.pkcli.jspec module

sirepo.pkcli.myapp module

Wrapper to run myapp from the command line.

copyright:Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved.
license:http://www.apache.org/licenses/LICENSE-2.0.html
sirepo.pkcli.myapp.run(cfg_dir)[source]

sirepo.pkcli.rs4pi module

sirepo.pkcli.service module

Runs the server in uwsgi or http modes.

Also supports starting nginx proxy.

copyright:Copyright (c) 2015 RadiaSoft LLC. All Rights Reserved.
license:http://www.apache.org/licenses/LICENSE-2.0.html
sirepo.pkcli.service.celery()[source]

Start celery

sirepo.pkcli.service.flower()[source]

Start flower

sirepo.pkcli.service.http()[source]

Starts Flask server in http mode.

Used for development only.

sirepo.pkcli.service.nginx_proxy()[source]

Starts nginx in container.

Used for development only.

sirepo.pkcli.service.rabbitmq()[source]
sirepo.pkcli.service.uwsgi()[source]

Starts UWSGI server

sirepo.pkcli.shadow module

sirepo.pkcli.srw module

sirepo.pkcli.synergia module

sirepo.pkcli.warppba module

Wrapper to run the code from the command line.

copyright:Copyright (c) 2015 RadiaSoft LLC. All Rights Reserved.
license:http://www.apache.org/licenses/LICENSE-2.0.html
sirepo.pkcli.warppba.run(cfg_dir)[source]

Run code in cfg_dir

Parameters:cfg_dir (str) – directory to run code in
sirepo.pkcli.warppba.run_background(cfg_dir)[source]

Run code in cfg_dir with mpi

Parameters:cfg_dir (str) – directory to run code in

sirepo.pkcli.warpvnd module

sirepo.pkcli.zgoubi module

Wrapper to run zgoubi from the command line.

copyright:Copyright (c) 2018 RadiaSoft LLC. All Rights Reserved.
license:http://www.apache.org/licenses/LICENSE-2.0.html
sirepo.pkcli.zgoubi.run(cfg_dir)[source]
sirepo.pkcli.zgoubi.run_background(cfg_dir)[source]

Module contents