semvec/pypi-packages huggingface dataset:
podiant-notifications 1.3.0
A set of models, views and templates for creating and managing user notifications
License: MIT
Keywords: podiant-notifications

Podiant notifications
=====================

![Build](https://git.steadman.io/podiant/notifications/badges/master/build.svg)
![Coverage](https://git.steadman.io/podiant/notifications/badges/master/coverage.svg)

A set of models, views and templates for creating and managing user notifications

## Quickstart

Install Notifications:

```sh
pip install podiant-notifications
```

Add it to your `INSTALLED_APPS`:
```python
INSTALLED_APPS = (
    ...
    'notifications',
    ...
)

```
Add Notifications' URL patterns:

```python
from notifications import urls as notifications_urls

urlpatterns = [
    ...
    url(r'^', include(notifications_urls)),
    ...
]
```

## Running tests

Does the code actually work?

```
coverage run --source notifications runtests.py
```

## Credits

Tools used in rendering this package:

- [Cookiecutter](https://github.com/audreyr/cookiecutter)
- [`cookiecutter-djangopackage`](https://github.com/pydanny/cookiecutter-djangopackage)
apistellar-cas 0.0.2
cas for apistellar
License: MIT
Keywords: cas apistellar

# CAS for apistellar

## USEAGE
```angular2
pip install apistellar-cas
```

```python
from apistellar_cas import nit

# before app init
init()
...
```

```python
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')

```

```python
# settings.py
CAS_SERVER = 'https://xxx.xxx.xxx'
CAS_LOGIN_ROUTE = '/xxxx'
CAS_AFTER_LOGIN = 'view:welcome:index'
CAS_USERNAME_SESSION_KEY = "username"
```