-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update README and add files for initial publish (#3)
* Update README and requirements * Update README
- Loading branch information
1 parent
7aba24a
commit 8a01b54
Showing
20 changed files
with
86 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
.idea/ | ||
.vscode/ | ||
__pycache__/ | ||
build/ | ||
dist/ | ||
*.egg-info/ | ||
test* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# PESU Academy API | ||
|
||
Python wrapper and APIs for the PESU Academy website. | ||
|
||
The wrapper requires the user's credentials to authenticate and provide **read-only** access to all the pages and | ||
information accessible on the PESU Academy website. Without the credentials, the wrapper will only be able to fetch | ||
details from the `Know Your Class and Section` page. | ||
|
||
> :warning: **Warning:** This is not an official API and is not endorsed by PESU. Use at your own risk. | ||
## Installation | ||
|
||
### Installing from `pip` | ||
|
||
```bash | ||
pip install pesuacademy | ||
``` | ||
|
||
### Installing from source | ||
|
||
```bash | ||
git clone https://github.com/HackerSpace-PESU/pesuacademy-py | ||
cd pesuacademy-py | ||
python setup.py install | ||
``` | ||
|
||
## Usage | ||
|
||
```python | ||
from pesuacademy import PESUAcademy | ||
|
||
p = PESUAcademy("PRN_or_SRN", "password") | ||
profile = p.profile() | ||
courses = p.courses(semester=2) | ||
attendance = p.attendance() | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
__version__ = "0.0.1" | ||
|
||
from .pesuacademy import PESUAcademy |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import setuptools | ||
|
||
VERSION = "0.0.1" | ||
|
||
DESCRIPTION = "Python wrapper and APIs for the PESU Academy website" | ||
|
||
try: | ||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
except FileNotFoundError: | ||
long_description = DESCRIPTION | ||
|
||
setuptools.setup( | ||
name="pesuacademy", | ||
version=VERSION, | ||
author="Aditeya Baral", | ||
author_email="[email protected]", | ||
description=DESCRIPTION, | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/HackerSpace-PESU/pesuacademy-py", | ||
packages=setuptools.find_packages(), | ||
install_requires=[ | ||
"requests", | ||
"requests-html", | ||
"beautifulsoup4", | ||
"lxml_html_clean" | ||
], | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
], | ||
python_requires='>=3.9', | ||
keywords=["pesu", "pesu academy", "api", "wrapper", "python"] | ||
) |