Skip to main content

A python package to wrap the islapi.

Project description

Python ISL

A python package to communicate with ISL's api and authenticate ISL employees in Django.



    pip install python-isl


    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():
    for team in isl.teams():
    for dog in isl.dogs():

    print(isl.teams().get('antimatter'))  # this line is the
    print(isl.teams('antimatter').get())  # same as this line



    pip install python-isl





    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"


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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-isl-1.5.tar.gz (3.9 kB view hashes)

Uploaded source

Built Distribution

python_isl-1.5-py3-none-any.whl (5.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page