Namely Python Client
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
namely-0.0.3.tar.gz
(10.7 kB
view details)
Built Distribution
File details
Details for the file namely-0.0.3.tar.gz
.
File metadata
- Download URL: namely-0.0.3.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfba570384d91ad61d0f5c1aebdcaaa98b7b665deb475a1ee704e17e42ef2f5f |
|
MD5 | e321dcda052b94faa8406af190261133 |
|
BLAKE2b-256 | 942e1a46ee7e9a3c2093852639db87c8c97a4c28fb795713f2abd5e347403559 |
File details
Details for the file namely-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: namely-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 717877347cdcfc3daae66f6b9cced879629e0d6321dca64e5afd035b6e9f285c |
|
MD5 | afac5296a3836055b4a5b2da01411da5 |
|
BLAKE2b-256 | b1c939cbae03a11460004e845cc2ea0ab884babd4747838ad6cd29a08c14a351 |