Skip to content

josephquang97/memrise

Repository files navigation

Memrise API

Installation

python -m pip install PyMemAPI

Major Features

  • API Memrise with some actions such as create new level, add bulk, rename level, ...
  • Automaticially generate the audio and upload to Memrise
  • Automaticially translate, get the International Phonetics Alphabet from database and sync with Memrise

Documentations

The library have 3 main classes Memrise, Course and SQLite.

Memrise

Memrise object will control your connection to Memrise. It's required your username and password to take permissions. And then it'll grant the necessary permission for the further process.

class Memrise:
    username: str = field(init=False)
    password: str = field(init=False)
    session: requests.Session = requests.Session()
	
	def login(self, username, password) -> bool: ...
	def courses(self) -> List[Course]: ...
	def get(self, path: str, params: Optional[Dict[str, Any]] = None): ...
	def post(
        self,
        path: str,
        payload: Dict[str, Any],
        headers: Dict[str, str],
        files: Optional[Dict[str, Tuple[str, bytes, str]]] = None,
    ) -> requests.Response: ...

    def select_course(self) -> Course: ...

Course

SQLite

Releases

No releases published

Packages

No packages published

Languages