CAS for apistellar
USEAGE
pip install apistellar-cas
from apistellar_cas import nit
# before app init
init()
...
from apistar import App
from apistellar import Controller, route, get
from apistellar_cas import login_required
@route("/", name="welcome")
class WelcomeController(Controller):
@get("/")
@login_required() # add this
def index(self, app: App) -> str:
return app.render_template('index.html')
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
apistellar-cas-0.0.1.tar.gz
(4.4 kB
view details)
File details
Details for the file apistellar-cas-0.0.1.tar.gz.
File metadata
- Download URL: apistellar-cas-0.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
365f77b7feb8d1cf98a5147f68cf92bf754dcee7796fc6e09aacebc6693e1262
|
|
| MD5 |
668008dacf16e34f37145a78e19dc66f
|
|
| BLAKE2b-256 |
04006243fe1aad6fd4aedc15befa90fea0f56f6dc2456465c0a52817789455b0
|