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:
  -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.

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-1.0.2.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

ptonppl-1.0.2-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ptonppl-1.0.2.tar.gz
  • Upload date:
  • Size: 15.0 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-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d0028da3db850770a3df545feb9b712507c8e97164c4e2027c0ad7f8ba64a421
MD5 bcefae3514d6aafaa98fed6c91e152b1
BLAKE2b-256 a47a664b081ce64b998fb8aa9f8d659d821a02793fac9b8b83d60a1ddf9bd5ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ptonppl-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.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-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27471f48dbe6f9b2f1aeffdcfa9bf8106516181ec83141b0018a798b00bfb0bf
MD5 08767efdb27f0bc6636baf7898dd7da5
BLAKE2b-256 b5707d7b0cee833998ced93fc0fab1127c016ab0631fdb43b1b742f0db7cd13b

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