Python Bindings for the Durham University (UK) Directory
Project description
Python bindings for the Durham University (UK) Directory
This package provides basic python bindings for the Durham University Directory, where Durham University students and staff can look up fellow students and staff.
It is nothing more than a wrapper around requests
and bs4
, and absolutely
nothing clever is being done (although I do think the code is pleasantly
simple).
Installation
python -m pip install durham-directory
CLI Usage
durham-directory --help
durham-directory --oname John --surname Morris
API Usage
from durham_directory import Query
query = Query(username="me") # will prompt for password when evaluated
query(oname="John", surname="Morris", type_="any")
Or if you want to choose one result:
from durham_directory import QueryOne
query = QueryOne()
query(oname="John", surname="Morris", type_="any")
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
durham-directory-1.1.3.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for durham_directory-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63a9fbcddbd200d524ebd80bf62de44c7ae3e4d65773484706e4cbd6e8bc0f1f |
|
MD5 | 7e09271a1d10f230ffabb7c303c27eb5 |
|
BLAKE2b-256 | 6795ba960087783cbcafd4ccc42b2481d01014a5e3d7e7d3c31f833422a5d5f1 |