Python ISL
A python package to communicate with ISL's api and authenticate ISL employees in Django.
API
Installation
pip install python-isl
Usage
from pythonisl import ISLClient
access_token = os.environ.get('ISL_ACCESS_TOKEN')
isl_endpoint = os.environ.get('ISL_API_ENDPOINT')
isl = ISLClient(access_token, isl_endpoint)
for employee in isl.employees():
print(employee)
for team in isl.teams():
print(team)
for dog in isl.dogs():
print(dog)
print(isl.teams().get('antimatter')) # this line is the
print(isl.teams('antimatter').get()) # same as this line
AUTH
Installation
pip install python-isl
Configuration
in settings.py
AUTHENTICATION_BACKENDS = (
'pythonisl.backends.ISLAuthBackend',
'django.contrib.auth.backends.ModelBackend',
)
in urls.py
urlpatters += [url('', include('pythonisl.urls')),]
this adds the urls: login/, auth/callback/, and logout/
you can include the individual views if you would like instead
from pythonisl.views import login, callback, logout
the callback url must be named "islauth_callback"
Usage
Just point a user to /login/?next=/my-next-url/ The ISLAuthBackend will take care of logging the user in by email address or creating a new user by email address and the user portion of the email being the username.
The user will stay logged in as long as the session is still valid, and you can request that they login by directing them to the /login/ url whenever you want.
Metadata
Release files for python-isl 1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-isl-1.5.tar.gz | 3.9 kB | Without provenance | Details for python-isl-1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_isl-1.5-py3-none-any.whl | Python 3 | none | any | Details for python_isl-1.5-py3-none-any.whl |
Total release size: 9.7 kB
Release files / python-isl-1.5.tar.gz
| Download URL | python-isl-1.5.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fad2dc78ffe65f7381849be7cd2f51b8715bf3b02cac6f1052316365ce2d08dc
|
|
BLAKE2b-256 checksum How to use checksums |
ef715e4c8147f642eb65d231d783274478fb8968dbf70fbf6e2cfb04b3d54d0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
|
Release files / python_isl-1.5-py3-none-any.whl
| Download URL | python_isl-1.5-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05132d1bd4a6b6aa89ceedd15027e240d9bfe5110a9e54f3f32200f2e57150c0
|
|
BLAKE2b-256 checksum How to use checksums |
31589c657e07dc47ad2d9295326b695aa18720075c58777353c62f8351b92b63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
|
Security for python-isl 1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.