Skip to main content

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:
  -t, --type TYPE               Output type (e.g.: term, json, csv, emails).
  -u, --uniq / -nu, --not-uniq  Filter out duplicate records from the output.
  -s, --stats                   Display statistics once processing is done.
  -i, --input FILENAME          Read input from a file stream.
  -f, --fields FIELDS           Fields to keep (e.g.: 'puid,netid,email').
  --header / -nh, --no-header   Include or remove header in 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.

Metadata

Release files for ptonppl 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ptonppl 1.0.2
File Size Uploaded
ptonppl-1.0.2.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ptonppl 1.0.2
File Interpreter ABI Platform
ptonppl-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / ptonppl-1.0.2.tar.gz

Download URL ptonppl-1.0.2.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d0028da3db850770a3df545feb9b712507c8e97164c4e2027c0ad7f8ba64a421
BLAKE2b-256 checksum
How to use checksums
a47a664b081ce64b998fb8aa9f8d659d821a02793fac9b8b83d60a1ddf9bd5ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.5 Darwin/19.6.0

Release files / ptonppl-1.0.2-py3-none-any.whl

Download URL ptonppl-1.0.2-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27471f48dbe6f9b2f1aeffdcfa9bf8106516181ec83141b0018a798b00bfb0bf
BLAKE2b-256 checksum
How to use checksums
b5707d7b0cee833998ced93fc0fab1127c016ab0631fdb43b1b742f0db7cd13b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.8.5 Darwin/19.6.0

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page