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
Built Distribution
File details
Details for the file durham-directory-1.1.2.tar.gz
.
File metadata
- Download URL: durham-directory-1.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.7 Linux/5.14.10-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f1d435713cebde5748559fa472ad042f0ceeb6046c5ba2acd41699e2b3b9be1 |
|
MD5 | 1a8784f6151f602e079f85011b5a0bbe |
|
BLAKE2b-256 | 65e492ed1e56ba115b66df72a7362db5daa1e9ef897fa727e21db087bcf739fe |
File details
Details for the file durham_directory-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: durham_directory-1.1.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.7 Linux/5.14.10-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d79f7a89cdbe9612198c7e8f472eb2d46a3e018b9b69332e70e425905b5ad678 |
|
MD5 | fce2b36905eb6c98ede2568c9d04c82f |
|
BLAKE2b-256 | df70fb6788d939a76cbae0d8bd41abc433ce2df832bd5d828ddbdeca7722b7b7 |