Skip to main content

An integration package to lookup Princeton campus users.

Project description

ptonppl — Princeton People

This provides a Python package and a command-line tool to lookup the campus directory of any member of the Princeton community. The package provides a unified search function that queries the following fields:

  • PUID, e.g., 902312554
  • NetID, e.g., lumbroso
  • Alias, when the user has defined one, e.g., jeremie.lumbroso
  • Email, e.g., lumbroso@princeton.edu

This information is hard to come by consistently, and this tool seeks to provide a robust interface to the information.

Installation

The package is distributed on PyPI and can be installed using the usual tools, such as pip or pipenv:

$ pip install --user ptonppl

Help message

$ ptonppl --help

Usage: ptonppl [OPTIONS] QUERY...

  Lookup the directory information (PUID, NetID, email, name) of any
  Princeton campus person, using whichever of LDAP, web directory or proxy
  server is available.

Options:
  -f, --format FORMAT  Output format (e.g.: term, json, csv, ...)
  -u, --unique         Filter out duplicate records from the output.
  --version            Show the version and exit.
  --help               Show this message and exit.

License

This project is licensed under the LGPLv3 license, with the understanding that importing a Python modular is similar in spirit to dynamically linking against it.

  • You can use the library ptonppl in any project, for any purpose, as long as you provide some acknowledgement to this original project for use of the library.

  • If you make improvements to ptonppl, you are required to make those changes publicly available.

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

ptonppl-0.0.3.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ptonppl-0.0.3-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file ptonppl-0.0.3.tar.gz.

File metadata

  • Download URL: ptonppl-0.0.3.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.5 Darwin/19.6.0

File hashes

Hashes for ptonppl-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a4844a273f3022c7a7f934a10fa2fa4cf3d5d8daa1d672cd8528460684aded3d
MD5 c988bf0af923153769b961b7134f9c45
BLAKE2b-256 80db0f89ee4bab4253eb29b807cc4ce9012d48d14d017baaef2f586a6d749939

See more details on using hashes here.

File details

Details for the file ptonppl-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ptonppl-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.5 Darwin/19.6.0

File hashes

Hashes for ptonppl-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf27029daaca293c54ed4a61af60c64ab92080d2f18fffd1ae8ad0c79e4dd5eb
MD5 bf2f14172226ef70351464eb870d5d13
BLAKE2b-256 56587d1773b4e68bf26ef359d1a82a6f5e205dc923679bc241a6e1bd521073e7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page