Commit Graph

6911 Commits

Author SHA1 Message Date
MinRK
6106fecd48 raise TimeoutError in wait_for_server 2014-09-18 16:07:44 -07:00
MinRK
a77e106488 move some utility functions to ORM classes
simplify handler methods
2014-09-18 15:37:39 -07:00
MinRK
67e2a71d8c log unexpected errors in wait_for_server 2014-09-18 15:01:16 -07:00
MinRK
3181520e56 check for IPython >= 2.2 2014-09-17 12:09:46 -07:00
MinRK
97ac3ebf32 make hub-starting user admin by default 2014-09-16 16:19:15 -07:00
Min RK
216f12a5d9 Merge pull request #35 from minrk/config
add basic CLI and config file support
2014-09-16 16:09:15 -07:00
Min RK
e674eab8e0 Merge pull request #36 from minrk/async-wait
make wait_for_server async
2014-09-16 15:18:31 -07:00
MinRK
81c71a7f45 add missing yield for notify_proxy coroutine 2014-09-16 15:12:35 -07:00
MinRK
46b3e11110 make wait_for_server async 2014-09-16 15:02:42 -07:00
MinRK
83e9762845 add basic CLI and config file support
See `jupyterhub -h` for common shortcuts

default config file: `jupyter_hub_config.py`
generate config file with: `jupyterhub --generate-config`
non-default config file: `jupyterhub -f myconfig.py`
2014-09-16 14:47:48 -07:00
Min RK
e7f67bfc4f Merge pull request #34 from minrk/admin.html
expand admin HTML page
2014-09-15 15:37:34 -07:00
MinRK
c8832008e8 don't render delete-user button for self 2014-09-15 01:54:55 -07:00
MinRK
48eeee0946 add admin.js 2014-09-15 01:45:12 -07:00
MinRK
eef2aff22f simplify dialog HTML with template macros 2014-09-15 01:44:32 -07:00
MinRK
7f23c132f0 expand admin HTML page
can add/delete users, and start/stop user servers
2014-09-15 01:21:49 -07:00
MinRK
294fa8ceb6 add/remove users from whitelist when adding/deleting 2014-09-15 01:21:01 -07:00
Kyle Kelley
315accc4b9 Ensure python3 is aliased 2014-09-15 00:34:02 +00:00
Min RK
ac6b4788a5 Merge pull request #30 from minrk/restapi
getting started with REST API
2014-09-14 16:53:24 -07:00
MinRK
c93f17c324 add basic home, admin pages
- index no longer requires login, it's just a big fat login button
- home has stop, start, admin buttons
- admin doesn't do anything yet
- add jhapi javascript client for REST API
2014-09-14 16:47:10 -07:00
MinRK
b24e47d94a some updates to login redirects
/anything served by Hub redirects to /hub/anything

/hub/user/[user] spawns single-user server and redirects to it
2014-09-14 16:47:09 -07:00
MinRK
5cba7c50b2 update base page template
- no body params, just write jhapi globals instead
- baseUrl is static/js
2014-09-14 16:47:09 -07:00
MinRK
0a8759b0a5 flesh out REST API
can now list/view/add/create/modify users
and start/stop single-user servers
2014-09-14 16:47:09 -07:00
MinRK
a47e390aa0 add mock single-user server for testing 2014-09-14 16:47:09 -07:00
MinRK
833835b0f3 add user list handler, first of many 2014-09-14 11:54:37 -07:00
MinRK
970e4d2ce2 minor fixes to testing utils 2014-09-14 11:54:37 -07:00
MinRK
a245641886 simplify handler setup with default_handlers in modules
like IPython's, but a bit simpler since we don't have
so many services to deal with.
2014-09-14 11:54:37 -07:00
MinRK
53edc0b2f7 add a notion of admin users
and an @admin_only decorator for restricted methods
2014-09-14 11:54:05 -07:00
MinRK
6d753ec6ea use 302 not 301 on / 2014-09-14 11:53:10 -07:00
MinRK
3b6dc5a8ae install subpackages 2014-09-14 11:23:03 -07:00
Kyle Kelley
2f71b18deb [Docker] Make bower installation separate. 2014-09-14 17:09:20 +00:00
Min RK
0c7d9ad14e Merge pull request #29 from rgbkrk/py3docker
Switch to Python 3 in Dockerfile
2014-09-13 21:14:48 -07:00
Kyle Kelley
36ba03de74 Switch to Python 3, use python3 entry 2014-09-14 03:54:19 +00:00
MinRK
42f040c6a1 return orm.User from get_current_user
rather than name.

removes need for `get_user` wrapper
2014-09-13 17:19:34 -07:00
Min RK
91a412c095 Merge pull request #25 from rgbkrk/dockit
Dock it
2014-09-13 16:32:42 -07:00
Min RK
42e313836d Merge pull request #28 from minrk/mocking
add mock utils to tests
2014-09-13 16:31:49 -07:00
MinRK
5c87461605 add mock utils to tests
basic testing framework to get starting writing and testing the REST API

including tests for the authorizations API,
the only API URL defined so far.
2014-09-13 16:11:22 -07:00
MinRK
696b887b50 allow threaded access to sqlite by default 2014-09-13 16:05:43 -07:00
MinRK
e762a87241 fix IOLoop / subprocess cleanup
- use IOLoop.current
- don't stop loop in cleanup
2014-09-13 15:43:42 -07:00
MinRK
573f34a5b5 avoid KeyError in logging with IPython 2 2014-09-13 15:43:09 -07:00
MinRK
1a09bef767 relay --log-level debug to proxy 2014-09-13 15:42:31 -07:00
Min RK
8de500b452 Merge pull request #27 from minrk/auth_whitelist
add Authenticator.whitelist
2014-09-13 15:12:02 -07:00
Kyle Kelley
183e52dd01 Reorder Dockerfile, include Maintainer 2014-09-13 16:00:25 -05:00
Kyle Kelley
e5e605ca8e Take out bower and css commands 2014-09-13 15:45:30 -05:00
MinRK
5d701b7fd1 add Authenticator.whitelist
default behavior is to allow any user to attempt login
2014-09-13 13:45:05 -07:00
MinRK
0b677f8d51 fix imports in utils 2014-09-13 13:23:20 -07:00
MinRK
20faa5027c remove unintentional RedirectHandler 2014-09-13 13:21:09 -07:00
MinRK
67e12c1a5e use run_sync to run coroutines in sync contexts
allows using py.test stuff in spawner/auth tests
2014-09-12 15:58:48 -07:00
MinRK
236612a0aa use official (monochrome) jupyter logo 2014-09-12 12:09:46 -07:00
MinRK
714770d499 reorg handlers a bit
make room for API handlers
2014-09-12 12:09:26 -07:00
MinRK
3968cc0c28 clarify bower/css needed only for dev install
and after recent fixes, only needed on pull,
not on first install.
2014-09-12 11:50:16 -07:00