Skip to main content

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)

Uploaded Source

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

Hashes for apistellar-cas-0.0.1.tar.gz
Algorithm Hash digest
SHA256 365f77b7feb8d1cf98a5147f68cf92bf754dcee7796fc6e09aacebc6693e1262
MD5 668008dacf16e34f37145a78e19dc66f
BLAKE2b-256 04006243fe1aad6fd4aedc15befa90fea0f56f6dc2456465c0a52817789455b0

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.2

1 file

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page