Project description
MyTurn SDK
A Selenium based SDK written in Python for the My Turn Lending Library Software.
Prerequisites
Google Chrome must be running on the machine this library runs on.
Installation
pip install myturn-sdk
Usage
Instantiate Library
myturnSubdomain = 'mylibrary'
myTurnUsername = 'testuser'
myturnPassword = 'Password!'
myTurnClient = MyTurnClient(
myturnSubdomain, myTurnUsername, myturnPassword)
Search for a User
request = UserSearchRequest()
request.email = 'homer@simpsons.com'
response = myTurnClient.users.searchUsers(request)
for user in response.users:
print(user.firstName+' '+user.lastName)
Other functionality follows a similar pattern:
- myTurnClient.users.getUser()
- myTurnClient.users.getUserIdForMembershipId()
- myTurnClient.users.getRequestsToJoin()
- myTurnClient.users.appendNote()
- myTurnClient.users.setNote()
- myTurnClient.users.getNote()
- myTurnClient.users.deleteUser()
See unit tests for examples.
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 myturn-sdk-0.1.1.tar.gz
.
File metadata
-
Download URL:
myturn-sdk-0.1.1.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
-
Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Hashes for myturn-sdk-0.1.1.tar.gz
Algorithm |
Hash digest |
|
SHA256 |
61e3b4fe47ca1796b671fe3eb5c05e7b5bd8a7d01b76d3055456710785205b8c |
|
MD5 |
76b0409ceb0c6df65252255fac3b06b1 |
|
BLAKE2b-256 |
aae6e958f5f5e99b66aa7e38e59223bad08eefc5a52bab3325bf569dac5d31e8 |
|
See more details on using hashes here.
File details
Details for the file myturn_sdk-0.1.1-py3-none-any.whl
.
File metadata
-
Download URL:
myturn_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
-
Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Hashes for myturn_sdk-0.1.1-py3-none-any.whl
Algorithm |
Hash digest |
|
SHA256 |
c6a0f7326ffc6e1b8da93ce0ba9ad0fee197d7907ecf737c95f64a71113f9104 |
|
MD5 |
b722c2b4441121e74afa30310ba39e6b |
|
BLAKE2b-256 |
be471ba5706a6c1e9dc446b73bdce1b0b9042656a7104791210854116ba89d14 |
|
See more details on using hashes here.