Skip to main content

PAWL: Python API Wrapper for LinkedIn


PyPI - Version PyPI - Python Version PyPI - Monthly Downloads

PAWL (an acronym for Python API Wrapper - LinkedIn) allows for simple access to LinkedIn's API with only a single dependency.

Installation

PAWL is supported on Python 3.9+. The recommended way to install PAWL is with pip.

pip install pawl

Examples

Examples are provided in docs/examples.

Quickstart

# Demo in python/ipython shell
# Don't forget to install pawl first

>>> import pawl

>>> linkedin = pawl.Linkedin(
    client_id="CLIENT_ID_VALUE",
    client_secret="CLIENT_SECRET_VALUE",
    redirect_uri="http://localhost:8000",
)

>>> linkedin
<pawl.linkedin.Linkedin at 0x10ea46af0>

GET PROFILE:

# Demo in python/ipython shell

>>> linkedin
<pawl.linkedin.Linkedin at 0x10ea46af0>

>>> response = linkedin.current_user.basic_profile()

>>> response
{
    'localizedLastName': 'LAST_NAME',
    'profilePicture': {
        'displayImage': 'PHOTO_ID'
    },
    'firstName': {
        'localized': {
            'LANG_CODE_COUNTRY_CODE': 'FIRST_NAME'
        },
        'preferredLocale': {
            'country': 'COUNTRY_CODE_VALUE',
            'language': 'LANGUAGE_CODE'
        }
    },
    'lastName': {
        'localized': {
            'LANG_CODE_COUNTRY_CODE':
            'LAST_NAME'
        },
        'preferredLocale': {
            'country': 'COUNTRY_CODE',
            'language': 'LANGUAGE_CODE'
        }
    },
    'id': 'USER_ID',
    'localizedFirstName': 'LOCALIZED_FIRST_NAME'
}

Sources

The work that went into PAWL is not entirely my own. I learned a lot from open-sourced code written by many incredible developers.

License

PAWL's source is provided under the MIT License.

  • Copyright © 2021 Kyle J. Burda

Metadata

Release files for pawl 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pawl 0.1.1
File Size Uploaded
pawl-0.1.1.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pawl 0.1.1
File Interpreter ABI Platform
pawl-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 40.2 kB

Release files / pawl-0.1.1.tar.gz

Download URL pawl-0.1.1.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
855354aaa2923130bf3ba8f780898c7eea8812677f545a59872ef607831df22c
BLAKE2b-256 checksum
How to use checksums
0c666acc4a66b8000fa8187843495094035bc7c69f9bb0d5d6917f1ce47896dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Darwin/20.5.0

Release files / pawl-0.1.1-py3-none-any.whl

Download URL pawl-0.1.1-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d64c7ebb05f668ab1acf626b911f7eefe17277987378c1be730e8e520e9d76c
BLAKE2b-256 checksum
How to use checksums
59ac9dd0cb467a9cd22aca11b138c4d11f705c6b9e6bfa656282b10ba8beeee6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Darwin/20.5.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

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