Unofficial python wrapper for Allen's web API.
Project description
AllenPyClient is an unofficial Python wrapper to develop applications integrating Allen’s official web API.
⏩ Quick Example
In this example, we will fetch the links of the videos available to us.
main.py
from allen import AllenClient
import os
env = os.environ
user = env['user']
passwd = env['passwd']
client = AllenClient(username=user, password=passwd)
videos = client.get_recorded_videos()
for video in videos:
link = video.get_link()
# Print the video link with the subject name and recording date
print(f'{video.subject_name} ({video.get_recording_date()}) - {link}')
You can also use the library from a command line.
$ allen help $ allen videos
👩🏫 Installation
pip install allen-py-client
📈 Required Python Modules
The list of required python modules can be found in the requirements.txt file.
📜 Documentation
To view the documentation for this project, visit the documentation page.
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
allen-py-client-1.2.101.tar.gz
(23.1 kB
view details)
File details
Details for the file allen-py-client-1.2.101.tar.gz
.
File metadata
- Download URL: allen-py-client-1.2.101.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77af053f30527ad26004665af2d7a4ff4cb25aaa0455e94a5cc0f6c0a49516b6 |
|
MD5 | 28efa7315f02bcc10de5a2427b27c4e1 |
|
BLAKE2b-256 | 00fc6064ebd745873c19948079b7a98fb58676a70b61ef9e9c0b8afd7e55ba72 |