Skip to content

Simple and intuitive API suggest #15

Description

@ayoubelmhamdi

for me, Simple return types are intuitive than OPP abstractions.

Mathpix = MathpixClient(
    app_id="your-app-id",
    app_key="your-app-key"
)


pdf_id = Mathpix.upload_pdf(
    file_path='/path/to/pdf/sample.pdf',
    timeout=30
)

convertion_id = Mathpix.online_conversion(
    pdf_id = pdf_id,
    pages = "1,3-5",
    timeout = 30,
    wait_until_complete = False,
)

md_output_path = Mathpix.download_md_file()
Mathpix.save_md_file()
print(md_text)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions