Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more example and pip install commands to README.md #392

Closed
wants to merge 2 commits into from
Closed

Add more example and pip install commands to README.md #392

wants to merge 2 commits into from

Conversation

dinhanhx
Copy link

@dinhanhx dinhanhx commented Dec 3, 2023

@@ -175,7 +191,7 @@ With the ``pip`` command on your system and a working internet
connection you can install the newest version of ``svglib`` with only
one command in a terminal::

$ pip install svglib
$ pip install svglib rlPyCairo reportlab
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reportlab is listed as a dependency in requirements.txt so it should not be needed here.


.. code:: python

from svglib.svglib import svg2rlg
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpicking, but this order would be a more recommended one: stdlib, external, and local packages, not split with empty lines here for brevity:

import io
from PIL import Image
from reportlab.graphics import renderPM
from svglib.svglib import svg2rlg

@dinhanhx dinhanhx closed this by deleting the head repository Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants