This release is a pre-release and may not be stable for production use.
SBGNRender Python library
This library is using Selenium to control ChromeDriver, to run a JS website rendering SBGN (based on Newt)
To install it, the simplest way is via PyPI :
sudo pip3 install sbgnrender
After installing the library, usage is the following :
from sbgnrender import renderSBGN
renderSBGN(
input_file, // Path as a string
output_file, // Path as a string
format, // Format as a string : svg, png, jpg
scale, // Scale of the network (default 1 for svg, 3 for jpg/png)
bg, // Background color as HTML String (ex #fff for white), None for transparent (available for png/svg),
max_width, // Maximum width in pixels
min_width, // Minimum width in pixels
quality, // Quality (available for jpg),
layout, // Perform automatic layout
verbose // True | False
)
This library depends on ChromeDriver, which can be installed on ubuntu/debian systems with
sudo apt install chromium-chromedriver
On Ubuntu 19.x and later, chromium installation is using snap package manager, which causes a problem while writing and accessing temporary files. The current workaround is to change chromium temporary directory permissions with :
sudo chmod 711 /tmp/snap.chromium
This is just a temporary which you will have to do at startup (after having run chrome at least once) everytime. If somebody knows a trick, contributions are welcome
Metadata
Release files for sbgnrender 1.0.0a9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sbgnrender-1.0.0a9.tar.gz | 6.8 kB | Without provenance | Details for sbgnrender-1.0.0a9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sbgnrender-1.0.0a9-py3-none-any.whl | Python 3 | none | any | Details for sbgnrender-1.0.0a9-py3-none-any.whl |
Total release size: 3.9 MB
Release files / sbgnrender-1.0.0a9.tar.gz
| Download URL | sbgnrender-1.0.0a9.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09c684e3f33791c0ed59006f9325036cd27e51d7ea10a93396aa0e92d9b9969f
|
|
BLAKE2b-256 checksum How to use checksums |
b9951adb24a7dc1bf4c0e32aba018aeaa271b7a011cadcbcb3b414f0f2a2f088
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
|
Release files / sbgnrender-1.0.0a9-py3-none-any.whl
| Download URL | sbgnrender-1.0.0a9-py3-none-any.whl |
|---|---|
| Size | 3.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f59284e4582b8e72a6f1bb116a99216704b92782b8f72b23e56e8dfc3079fc32
|
|
BLAKE2b-256 checksum How to use checksums |
ef8080f83dc5d83c49dd981d77c91b19ee6b730a6365917de5f79814f3545577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
|
Security for sbgnrender 1.0.0a9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.