namely
Non-official Python client for Namely
Learn more about Namely API here
Installation
pip install namely
Get started
# Import Namely API Client
from namely import Client
# Initialise Namely API Client
client = Client("https://<your-domain>.namely.com/api/v1/", "<your-namely-api-token>")
# Get all profiles
get_all = client.profiles.get_all(multi_threading=False)
# Get profile by Namely id
person = client.profiles.get("<person-namely-id>")
# Get my Namely profile
me = client.profiles.get_me()
# Get all profiles by filters
mikes = client.profiles.filter(first_name="Mike")
# Update profile by Namely id
profile_to_update = {"user_status": "inactive"}
updated_profile = client.profiles.update("<person-namely-id>", profile_to_update)
# Create Namely profile
new_profile = {
"first_name": "John",
"last_name": "Smith",
"user_status": "active",
"start_date": "2019-01-01",
"email": "work@email.com"
}
created_profile = client.profiles.create(new_profile)
License
Metadata
Release files for namely 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| namely-0.0.3.tar.gz | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| namely-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.9 kB
Release files / namely-0.0.3.tar.gz
| Download URL | namely-0.0.3.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfba570384d91ad61d0f5c1aebdcaaa98b7b665deb475a1ee704e17e42ef2f5f
|
|
BLAKE2b-256 checksum How to use checksums |
942e1a46ee7e9a3c2093852639db87c8c97a4c28fb795713f2abd5e347403559
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / namely-0.0.3-py3-none-any.whl
| Download URL | namely-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
717877347cdcfc3daae66f6b9cced879629e0d6321dca64e5afd035b6e9f285c
|
|
BLAKE2b-256 checksum How to use checksums |
b1c939cbae03a11460004e845cc2ea0ab884babd4747838ad6cd29a08c14a351
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|