MCPcopy Create free account

hub / github.com/jupyterhub/jupyterhub / functions

Functions2,069 in github.com/jupyterhub/jupyterhub

↓ 295 callersFunctionapi_request
Make an API request
jupyterhub/tests/utils.py:156
↓ 259 callersMethodfind
Find a role by name. Returns None if not found.
jupyterhub/orm.py:215
↓ 156 callersMethodadd
Add a user to the UserDict
jupyterhub/user.py:94
↓ 151 callersFunctionurl_path_join
Join components of url into a relative url. Use to prevent double slash when joining subpath. This will leave the initial and final / in plac
jupyterhub/utils.py:470
↓ 125 callersMethodget
Retrieve a User object if it can be found, else default Lookup can be by User object, id, or name .. versionchanged:: 1.2
jupyterhub/user.py:153
↓ 109 callersMethodlogin_user
Login a user by name, returning her cookies.
jupyterhub/tests/mocking.py:391
↓ 101 callersFunctionadd_user
Add a user to the database.
jupyterhub/tests/utils.py:124
↓ 87 callersMethodget
(self)
jupyterhub/tests/mocksu.py:28
↓ 72 callersFunctionget_page
(path, app, hub=True, **kw)
jupyterhub/tests/utils.py:198
↓ 71 callersFunctionpublic_url
Return the full, public base URL (including prefix) of the given JupyterHub instance.
jupyterhub/tests/utils.py:222
↓ 70 callersMethoddelete
(self, user_name)
jupyterhub/apihandlers/users.py:339
↓ 62 callersMethodupdate
(self, other)
jupyterhub/_memoize.py:149
↓ 58 callersMethodnew_api_token
Create a new API token If `token` is given, load that token.
jupyterhub/orm.py:373
↓ 56 callersFunctioncreate_user_with_scopes
Generate a temporary user with specific scopes. Convenience function that provides setup, database handling and teardown
jupyterhub/tests/conftest.py:513
↓ 51 callersMethodget_authenticated_user
Authenticate the user who is attempting to log in Returns user dict if successful, None otherwise. This calls `authenticate`, which
jupyterhub/auth.py:691
↓ 48 callersFunctionpublic_host
Return the public *host* (no URL prefix) of the given JupyterHub instance.
jupyterhub/tests/utils.py:214
↓ 43 callersFunctionmaybe_future
Return an asyncio Future Use instead of gen.maybe_future For our compatibility, this must accept: - asyncio coroutine (gen.maybe_future
jupyterhub/utils.py:612
↓ 38 callersFunctionauth_header
Return header with user's API authorization token.
jupyterhub/tests/utils.py:146
↓ 37 callersMethodinit_role_creation
Load default and user-defined roles and scopes into the database
jupyterhub/app.py:2332
↓ 37 callersMethodstop
()
jupyterhub/tests/test_spawner.py:283
↓ 36 callersMethodget
(self, user_name, user_path)
jupyterhub/handlers/base.py:1732
↓ 35 callersMethodpoll
()
jupyterhub/tests/test_spawner.py:286
↓ 35 callersMethodpop
Remove and return an item
jupyterhub/services/auth.py:185
↓ 31 callersMethodinit_db
Ensure we start with a clean user & role list
jupyterhub/tests/mocking.py:314
↓ 30 callersMethoddelete
Delete a user from the cache and the database
jupyterhub/user.py:176
↓ 30 callersMethodfinish
Roll back any uncommitted transactions from the handler.
jupyterhub/handlers/base.py:198
↓ 29 callersMethodspawn
Start the user's spawner depending from the value of JupyterHub.allow_named_servers if False: JupyterHub expects only one si
jupyterhub/user.py:773
↓ 28 callersMethodfind_user
Get a user by name return None if no such user
jupyterhub/handlers/base.py:580
↓ 27 callersMethodget
(self)
jupyterhub/tests/test_pages.py:955
↓ 25 callersMethodadd_user
Add a user's server to the proxy table.
jupyterhub/proxy.py:328
↓ 25 callersFunctionfind_user
Find user in database.
jupyterhub/tests/utils.py:115
↓ 24 callersMethodget
(self)
jupyterhub/singleuser/mixins.py:152
↓ 24 callersMethodget_auth_state
Retrieve and decrypt auth_state for the user
jupyterhub/user.py:414
↓ 24 callersMethodgrant
Grant shared permissions for a server Updates existing Share if there is one, otherwise creates a new Share
jupyterhub/orm.py:832
↓ 24 callersMethodmatch
Is this my token?
jupyterhub/orm.py:626
↓ 22 callersFunctionget_scopes_for
Find scopes for a given user or token from their roles and resolve permissions Arguments: orm_object: orm object or User wrapper Retur
jupyterhub/scopes.py:354
↓ 22 callersMethodpost
POST spawns with user-specified options
jupyterhub/handlers/pages.py:261
↓ 21 callersFunctionjhapiRequest
(endpoint, method, data)
jsx/src/util/jhapiUtil.js:7
↓ 20 callersMethodcount_active_users
Count the number of user servers that are active/pending/ready Returns dict with counts of active/pending/ready servers
jupyterhub/user.py:186
↓ 20 callersMethodinit_role_assignment
(self)
jupyterhub/app.py:2441
↓ 20 callersFunctionisoformat
Render a datetime object as an ISO 8601 UTC timestamp Naive datetime objects are assumed to be UTC
jupyterhub/utils.py:92
↓ 19 callersMethodget
(self)
examples/service-whoami/whoami.py:21
↓ 19 callersMethodnow
()
jupyterhub/orm.py:1274
↓ 18 callersFunctionnew_username
Return a new unique username
jupyterhub/tests/conftest.py:243
↓ 18 callersFunctionutcnow
()
jupyterhub/alembic/versions/99a28a4418e1_user_created.py:22
↓ 17 callersMethodget_json_body
Return the body of the request as JSON data.
jupyterhub/apihandlers/base.py:111
↓ 17 callersMethodset
Store an entry in the cache Purges oldest entry if cache is full
jupyterhub/_memoize.py:46
↓ 17 callersMethodstart
()
jupyterhub/tests/test_spawner.py:280
↓ 16 callersMethodapi_request
Make an authenticated API request of the proxy.
jupyterhub/proxy.py:918
↓ 16 callersMethodget_all_routes
Fetch and return all the routes associated by JupyterHub from the proxy. **Subclasses must define this method** Should retur
jupyterhub/proxy.py:261
↓ 16 callersMethodinit_users
Load users into and from the database
jupyterhub/app.py:2123
↓ 16 callersFunctionurl_escape_path
Escape a value to be used in URLs, cookies, etc.
jupyterhub/utils.py:465
↓ 16 callersMethodwait
(self)
jupyterhub/tests/test_auth.py:319
↓ 15 callersMethodget
(self)
jupyterhub/singleuser/extension.py:72
↓ 15 callersMethodget
(self)
jupyterhub/apihandlers/users.py:44
↓ 15 callersFunctionnew_spawner
(db, **kwargs)
jupyterhub/tests/test_spawner.py:48
↓ 15 callersMethodread
(self)
jupyterhub/tests/test_auth.py:309
↓ 15 callersMethodrender_template
Render jinja2 template If sync is set to True, we render the template & return a string If sync is set to False, we return a
jupyterhub/handlers/base.py:1456
↓ 14 callersFunctionupdate
(d1, d2)
share/jupyterhub/static/js/jhapi.js:22
↓ 14 callersMethodvalidate_username
Validate a normalized username Return True if username is valid, False otherwise.
jupyterhub/auth.py:445
↓ 13 callersMethodcheck_allowed
Check if a username is allowed to authenticate based on configuration Return True if username is allowed, False otherwise. No allowe
jupyterhub/auth.py:627
↓ 13 callersFunctioncreate_temp_role
Generate a temporary role with certain scopes. Convenience function that provides setup, database handling and teardown
jupyterhub/tests/conftest.py:490
↓ 13 callersMethodhas_scope
Is the current request being made with the given scope?
jupyterhub/handlers/base.py:566
↓ 13 callersFunctionlogin
filling the login form by user and pass_w parameters and initiate the login
jupyterhub/tests/browser/test_browser.py:23
↓ 12 callersMethodget
dict-like get
jupyterhub/services/auth.py:178
↓ 12 callersMethodinitialize
(self, argv=None)
jupyterhub/tests/mocking.py:341
↓ 12 callersMethodlog
I can't seem to avoid typing self.log
jupyterhub/handlers/base.py:118
↓ 12 callersMethodnew
Generate a new API token for a user or service
jupyterhub/orm.py:1130
↓ 12 callersMethodpurge_expired
Purge all expired values
jupyterhub/services/auth.py:215
↓ 11 callersMethodget
GET /api/ returns info about the Hub and its API. It is not an authenticated endpoint For now, it just returns the version of Jupyter
jupyterhub/apihandlers/hub.py:69
↓ 11 callersMethodpoll
Check if the single-user process is running Returns: None if single-user process is running. Integer exit status (0 if un
jupyterhub/spawner.py:1645
↓ 11 callersMethodserver_url
Get the url for a server with a given name
jupyterhub/user.py:688
↓ 11 callersMethodstop
(self)
jupyterhub/app.py:3915
↓ 10 callersFunctionparse_scopes
Parses scopes and filters in something akin to JSON style For instance, scope list ["users", "groups!group=foo", "servers!server=user/bar",
jupyterhub/scopes.py:888
↓ 10 callersFunctionrandom_port
Get a single random port.
jupyterhub/utils.py:78
↓ 10 callersMethodsave_auth_state
Encrypt and store auth_state
jupyterhub/user.py:406
↓ 10 callersMethodstart
(self)
jupyterhub/app.py:204
↓ 9 callersMethod_lookup_spawner
Lookup orm.Spawner for user_name/server_name raise 404 if not found
jupyterhub/apihandlers/shares.py:189
↓ 9 callersFunctionassert_not_found
Assert that an item with a given id is not found
jupyterhub/tests/test_orm.py:19
↓ 9 callersMethodget_next_url
Get the next_url for login redirect Default URL after login: - if redirect_to_server (default): send to user's own server -
jupyterhub/handlers/base.py:834
↓ 9 callersFunctiongroupEditJsx
(callbackSpy)
jsx/src/components/GroupEdit/GroupEdit.test.jsx:34
↓ 9 callersFunctionmtime
shorthand for mtime
setup.py:44
↓ 9 callersMethodnormalize_username
Normalize the given username and return it Override in subclasses if usernames need different normalization rules. The default attem
jupyterhub/auth.py:615
↓ 9 callersFunctionutcnow
Return utcnow with_tz (default): returns tz-aware datetime in UTC if with_tz=False, returns UTC timestamp without tzinfo (used for most
jupyterhub/utils.py:683
↓ 8 callersFunction_bool_env
Cast an environment variable to bool If unset or empty, return `default` `0` is False; all other values are True.
jupyterhub/utils.py:42
↓ 8 callersMethodapply_group_overrides
Apply group overrides before starting a server
jupyterhub/spawner.py:1779
↓ 8 callersMethodcheck_routes
Check that all users are properly routed on the proxy.
jupyterhub/proxy.py:385
↓ 8 callersFunctionexpand_scopes
Returns a set of fully expanded scopes for a collection of raw scopes Arguments: scopes (collection(str)): collection of raw scopes o
jupyterhub/scopes.py:568
↓ 8 callersMethodget
(self)
jupyterhub/tests/extension/__init__.py:26
↓ 8 callersMethodinit_groups
Load predefined groups into the database
jupyterhub/app.py:2290
↓ 8 callersFunctionmockAsync
()
jsx/src/components/Groups/Groups.test.js:23
↓ 8 callersFunctionnew_hub
Fixture to launch a new hub for testing
jupyterhub/tests/test_app.py:292
↓ 8 callersMethodoptions
(self, *args, **kwargs)
jupyterhub/apihandlers/base.py:562
↓ 8 callersMethodwait_up
Wait for this server to come up
jupyterhub/objects.py:169
↓ 7 callersFunction_exclude_home
Filter out any entries in a path list that are in my home directory. Used to disable per-user configuration.
jupyterhub/singleuser/_disable_user_config.py:39
↓ 7 callersFunctionassign_default_roles
Assigns default role(s) to an entity: tokens get 'token' role users and services get 'admin' role if they are admin (removed if they are not
jupyterhub/roles.py:310
↓ 7 callersMethoddelete_user
Remove a user's server from the proxy table.
jupyterhub/proxy.py:349
↓ 7 callersFunctionexponential_backoff
Exponentially backoff until `pass_func` is true. The `pass_func` function will wait with **exponential backoff** and **random jitter** f
jupyterhub/utils.py:182
↓ 7 callersFunctionfill_user
Fill a default user model Any unspecified fields will be filled with the defaults
jupyterhub/tests/test_api.py:212
↓ 7 callersMethodfind_group
Find and return a group by name. Raise 404 if not found.
jupyterhub/apihandlers/groups.py:27
next →1–100 of 2,069, ranked by callers