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: Auth | None = None, cookies: dict | None = None)

Bases: object

Class to operate chouseisan.com.

create_event(title: str, candidate_days: Iterable[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:
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.

exception chouseisan_py.exceptions.TagNotFoundError(selector: str)

Bases: Exception

Error that occurs when the expected HTML tag does not exist on 調整さん (Chouseisan).

Module contents