PAWL (an acronym for `Python API Wrapper - LinkedIn`) allows for simple access to LinkedIn's API.
Project description
PAWL: Python API Wrapper for LinkedIn
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
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
pawl-0.1.1.tar.gz
(17.5 kB
view details)
Built Distribution
pawl-0.1.1-py3-none-any.whl
(22.7 kB
view details)
File details
Details for the file pawl-0.1.1.tar.gz
.
File metadata
- Download URL: pawl-0.1.1.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Darwin/20.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 855354aaa2923130bf3ba8f780898c7eea8812677f545a59872ef607831df22c |
|
MD5 | 3aa7894512da98b485adc06e0c2238ea |
|
BLAKE2b-256 | 0c666acc4a66b8000fa8187843495094035bc7c69f9bb0d5d6917f1ce47896dc |
File details
Details for the file pawl-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pawl-0.1.1-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Darwin/20.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d64c7ebb05f668ab1acf626b911f7eefe17277987378c1be730e8e520e9d76c |
|
MD5 | 19530a861596cfdad5c7e4b602c2454a |
|
BLAKE2b-256 | 59ac9dd0cb467a9cd22aca11b138c4d11f705c6b9e6bfa656282b10ba8beeee6 |