Skip to main content

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

The MIT License

Project details


Download files

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

Files for namely, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size namely-0.0.3-py3-none-any.whl (9.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size namely-0.0.3.tar.gz (10.7 kB) File type Source Python version None Upload date Hashes View

Supported by

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