Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jupyterhub/jupyterhub
/ functions
Functions
2,069 in github.com/jupyterhub/jupyterhub
⨍
Functions
2,069
◇
Types & classes
217
↳
Endpoints
33
↓ 295 callers
Function
api_request
Make an API request
jupyterhub/tests/utils.py:156
↓ 259 callers
Method
find
Find a role by name. Returns None if not found.
jupyterhub/orm.py:215
↓ 156 callers
Method
add
Add a user to the UserDict
jupyterhub/user.py:94
↓ 151 callers
Function
url_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 callers
Method
get
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 callers
Method
login_user
Login a user by name, returning her cookies.
jupyterhub/tests/mocking.py:391
↓ 101 callers
Function
add_user
Add a user to the database.
jupyterhub/tests/utils.py:124
↓ 87 callers
Method
get
(self)
jupyterhub/tests/mocksu.py:28
↓ 72 callers
Function
get_page
(path, app, hub=True, **kw)
jupyterhub/tests/utils.py:198
↓ 71 callers
Function
public_url
Return the full, public base URL (including prefix) of the given JupyterHub instance.
jupyterhub/tests/utils.py:222
↓ 70 callers
Method
delete
(self, user_name)
jupyterhub/apihandlers/users.py:339
↓ 62 callers
Method
update
(self, other)
jupyterhub/_memoize.py:149
↓ 58 callers
Method
new_api_token
Create a new API token If `token` is given, load that token.
jupyterhub/orm.py:373
↓ 56 callers
Function
create_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 callers
Method
get_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 callers
Function
public_host
Return the public *host* (no URL prefix) of the given JupyterHub instance.
jupyterhub/tests/utils.py:214
↓ 43 callers
Function
maybe_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 callers
Function
auth_header
Return header with user's API authorization token.
jupyterhub/tests/utils.py:146
↓ 37 callers
Method
init_role_creation
Load default and user-defined roles and scopes into the database
jupyterhub/app.py:2332
↓ 37 callers
Method
stop
()
jupyterhub/tests/test_spawner.py:283
↓ 36 callers
Method
get
(self, user_name, user_path)
jupyterhub/handlers/base.py:1732
↓ 35 callers
Method
poll
()
jupyterhub/tests/test_spawner.py:286
↓ 35 callers
Method
pop
Remove and return an item
jupyterhub/services/auth.py:185
↓ 31 callers
Method
init_db
Ensure we start with a clean user & role list
jupyterhub/tests/mocking.py:314
↓ 30 callers
Method
delete
Delete a user from the cache and the database
jupyterhub/user.py:176
↓ 30 callers
Method
finish
Roll back any uncommitted transactions from the handler.
jupyterhub/handlers/base.py:198
↓ 29 callers
Method
spawn
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 callers
Method
find_user
Get a user by name return None if no such user
jupyterhub/handlers/base.py:580
↓ 27 callers
Method
get
(self)
jupyterhub/tests/test_pages.py:955
↓ 25 callers
Method
add_user
Add a user's server to the proxy table.
jupyterhub/proxy.py:328
↓ 25 callers
Function
find_user
Find user in database.
jupyterhub/tests/utils.py:115
↓ 24 callers
Method
get
(self)
jupyterhub/singleuser/mixins.py:152
↓ 24 callers
Method
get_auth_state
Retrieve and decrypt auth_state for the user
jupyterhub/user.py:414
↓ 24 callers
Method
grant
Grant shared permissions for a server Updates existing Share if there is one, otherwise creates a new Share
jupyterhub/orm.py:832
↓ 24 callers
Method
match
Is this my token?
jupyterhub/orm.py:626
↓ 22 callers
Function
get_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 callers
Method
post
POST spawns with user-specified options
jupyterhub/handlers/pages.py:261
↓ 21 callers
Function
jhapiRequest
(endpoint, method, data)
jsx/src/util/jhapiUtil.js:7
↓ 20 callers
Method
count_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 callers
Method
init_role_assignment
(self)
jupyterhub/app.py:2441
↓ 20 callers
Function
isoformat
Render a datetime object as an ISO 8601 UTC timestamp Naive datetime objects are assumed to be UTC
jupyterhub/utils.py:92
↓ 19 callers
Method
get
(self)
examples/service-whoami/whoami.py:21
↓ 19 callers
Method
now
()
jupyterhub/orm.py:1274
↓ 18 callers
Function
new_username
Return a new unique username
jupyterhub/tests/conftest.py:243
↓ 18 callers
Function
utcnow
()
jupyterhub/alembic/versions/99a28a4418e1_user_created.py:22
↓ 17 callers
Method
get_json_body
Return the body of the request as JSON data.
jupyterhub/apihandlers/base.py:111
↓ 17 callers
Method
set
Store an entry in the cache Purges oldest entry if cache is full
jupyterhub/_memoize.py:46
↓ 17 callers
Method
start
()
jupyterhub/tests/test_spawner.py:280
↓ 16 callers
Method
api_request
Make an authenticated API request of the proxy.
jupyterhub/proxy.py:918
↓ 16 callers
Method
get_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 callers
Method
init_users
Load users into and from the database
jupyterhub/app.py:2123
↓ 16 callers
Function
url_escape_path
Escape a value to be used in URLs, cookies, etc.
jupyterhub/utils.py:465
↓ 16 callers
Method
wait
(self)
jupyterhub/tests/test_auth.py:319
↓ 15 callers
Method
get
(self)
jupyterhub/singleuser/extension.py:72
↓ 15 callers
Method
get
(self)
jupyterhub/apihandlers/users.py:44
↓ 15 callers
Function
new_spawner
(db, **kwargs)
jupyterhub/tests/test_spawner.py:48
↓ 15 callers
Method
read
(self)
jupyterhub/tests/test_auth.py:309
↓ 15 callers
Method
render_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 callers
Function
update
(d1, d2)
share/jupyterhub/static/js/jhapi.js:22
↓ 14 callers
Method
validate_username
Validate a normalized username Return True if username is valid, False otherwise.
jupyterhub/auth.py:445
↓ 13 callers
Method
check_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 callers
Function
create_temp_role
Generate a temporary role with certain scopes. Convenience function that provides setup, database handling and teardown
jupyterhub/tests/conftest.py:490
↓ 13 callers
Method
has_scope
Is the current request being made with the given scope?
jupyterhub/handlers/base.py:566
↓ 13 callers
Function
login
filling the login form by user and pass_w parameters and initiate the login
jupyterhub/tests/browser/test_browser.py:23
↓ 12 callers
Method
get
dict-like get
jupyterhub/services/auth.py:178
↓ 12 callers
Method
initialize
(self, argv=None)
jupyterhub/tests/mocking.py:341
↓ 12 callers
Method
log
I can't seem to avoid typing self.log
jupyterhub/handlers/base.py:118
↓ 12 callers
Method
new
Generate a new API token for a user or service
jupyterhub/orm.py:1130
↓ 12 callers
Method
purge_expired
Purge all expired values
jupyterhub/services/auth.py:215
↓ 11 callers
Method
get
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 callers
Method
poll
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 callers
Method
server_url
Get the url for a server with a given name
jupyterhub/user.py:688
↓ 11 callers
Method
stop
(self)
jupyterhub/app.py:3915
↓ 10 callers
Function
parse_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 callers
Function
random_port
Get a single random port.
jupyterhub/utils.py:78
↓ 10 callers
Method
save_auth_state
Encrypt and store auth_state
jupyterhub/user.py:406
↓ 10 callers
Method
start
(self)
jupyterhub/app.py:204
↓ 9 callers
Method
_lookup_spawner
Lookup orm.Spawner for user_name/server_name raise 404 if not found
jupyterhub/apihandlers/shares.py:189
↓ 9 callers
Function
assert_not_found
Assert that an item with a given id is not found
jupyterhub/tests/test_orm.py:19
↓ 9 callers
Method
get_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 callers
Function
groupEditJsx
(callbackSpy)
jsx/src/components/GroupEdit/GroupEdit.test.jsx:34
↓ 9 callers
Function
mtime
shorthand for mtime
setup.py:44
↓ 9 callers
Method
normalize_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 callers
Function
utcnow
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 callers
Function
_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 callers
Method
apply_group_overrides
Apply group overrides before starting a server
jupyterhub/spawner.py:1779
↓ 8 callers
Method
check_routes
Check that all users are properly routed on the proxy.
jupyterhub/proxy.py:385
↓ 8 callers
Function
expand_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 callers
Method
get
(self)
jupyterhub/tests/extension/__init__.py:26
↓ 8 callers
Method
init_groups
Load predefined groups into the database
jupyterhub/app.py:2290
↓ 8 callers
Function
mockAsync
()
jsx/src/components/Groups/Groups.test.js:23
↓ 8 callers
Function
new_hub
Fixture to launch a new hub for testing
jupyterhub/tests/test_app.py:292
↓ 8 callers
Method
options
(self, *args, **kwargs)
jupyterhub/apihandlers/base.py:562
↓ 8 callers
Method
wait_up
Wait for this server to come up
jupyterhub/objects.py:169
↓ 7 callers
Function
_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 callers
Function
assign_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 callers
Method
delete_user
Remove a user's server from the proxy table.
jupyterhub/proxy.py:349
↓ 7 callers
Function
exponential_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 callers
Function
fill_user
Fill a default user model Any unspecified fields will be filled with the defaults
jupyterhub/tests/test_api.py:212
↓ 7 callers
Method
find_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