chouseisan_py package
Submodules
chouseisan_py.chouseisan module
Automates the operations of 調整さん (Chouseisan).
- class chouseisan_py.chouseisan.Auth(email: str, password: str)
Bases:
object
Credentials for chouseisan.com.
- email: str
- password: str
- class chouseisan_py.chouseisan.Chouseisan(auth: Optional[chouseisan_py.chouseisan.Auth] = None, cookies: Optional[dict] = None)
Bases:
object
Class to operate chouseisan.com.
- create_event(title: str, candidate_days: collections.abc.Iterable[datetime.datetime | str], comment: str = '') str
Create event.
- Parameters
title – Title of the event
candidate_days – Candidate days for the event
comment – Comment about the event
- Returns
Event URL
- Raises
chouseisan_py.exceptions.LoginError – The login fails
chouseisan_py.exceptions.TagNotFoundError –
The expected tag is not found in 調整さん (Chouseisan)
requests.HTTPError – An HTTP error occurred
- get_cookies() dict
Get cookies.
- Returns
Cookies
chouseisan_py.exceptions module
Errors that occurs during 調整さん (Chouseisan) operation.
- exception chouseisan_py.exceptions.LoginError
Bases:
Exception
Error that occurs when login fails.