# DrawGly
DrawGly is a Python library for drawing **Symbol Nomenclature for Glycans (SNFG)**, using
[GlyConnect API](https://glyconnect.expasy.org/).
## Requirements
```bash
python >= 3.9
```
## Installation
```bash
python -m pip install drawgly
```
## Usage
Using `get_cartoon()` to get the cartoon and saving the image.
More information can be found in the docstring.
Note: This function uses [GlyConnect API](https://glyconnect.expasy.org/) to get the cartoons,
please make sure you have an internet connection.
```python
from drawgly import get_cartoon
struct_format = "gws"
structure = "freeEnd--?a1D-GalNAc,p(--3b1D-Gal,p--??2D-NeuAc,p)--6b1D-GlcNAc," \
"p--??1D-Gal,p--??2D-NeuAc,p}--??1Ac$MONO,Und,0,0,freeEnd"
output_path = "output.png"
get_cartoon(struct_format, structure, output_path)
```
Example output:
![test](https://user-images.githubusercontent.com/65430559/232362952-30df9563-105e-4f6b-9740-f496cd969915.svg)
## License
This project is licensed under the MIT License. See the LICENSE file for more information.
Raw data
{
"_id": null,
"home_page": "https://github.com/fubin1999/drawgly",
"name": "drawgly",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "fubin1999",
"author_email": "65430559+fubin1999@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/a7/e1/07d3d07cebcedeb3300ad024461196408d678c9f35bb852d8127a0d9a6c7/drawgly-0.1.0.tar.gz",
"platform": null,
"description": "# DrawGly\n\nDrawGly is a Python library for drawing **Symbol Nomenclature for Glycans (SNFG)**, using \n[GlyConnect API](https://glyconnect.expasy.org/).\n\n## Requirements\n```bash\npython >= 3.9\n```\n\n## Installation\n\n```bash\npython -m pip install drawgly\n```\n\n\n## Usage\nUsing `get_cartoon()` to get the cartoon and saving the image. \nMore information can be found in the docstring.\n\nNote: This function uses [GlyConnect API](https://glyconnect.expasy.org/) to get the cartoons,\nplease make sure you have an internet connection.\n\n```python\nfrom drawgly import get_cartoon\n\nstruct_format = \"gws\"\nstructure = \"freeEnd--?a1D-GalNAc,p(--3b1D-Gal,p--??2D-NeuAc,p)--6b1D-GlcNAc,\" \\\n \"p--??1D-Gal,p--??2D-NeuAc,p}--??1Ac$MONO,Und,0,0,freeEnd\"\noutput_path = \"output.png\"\n\nget_cartoon(struct_format, structure, output_path)\n```\n\nExample output:\n![test](https://user-images.githubusercontent.com/65430559/232362952-30df9563-105e-4f6b-9740-f496cd969915.svg)\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for more information.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "",
"version": "0.1.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f4dfc1d58df942ef12c4d348d7350d1006c1aa3090b31a5dc9f3c0747409ad0d",
"md5": "64cef26929eab52be06a94e5168ec0d0",
"sha256": "0a3c11c6f4d11e87743c4da244f72c570250e811445e3e9bd4934b2417d66dc4"
},
"downloads": -1,
"filename": "drawgly-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "64cef26929eab52be06a94e5168ec0d0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 3322,
"upload_time": "2023-04-17T02:57:12",
"upload_time_iso_8601": "2023-04-17T02:57:12.594774Z",
"url": "https://files.pythonhosted.org/packages/f4/df/c1d58df942ef12c4d348d7350d1006c1aa3090b31a5dc9f3c0747409ad0d/drawgly-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a7e107d3d07cebcedeb3300ad024461196408d678c9f35bb852d8127a0d9a6c7",
"md5": "51ae845127b579107fd29c42956d193a",
"sha256": "984a389dc6f57724424f8e9bf342dd0b2f2e6084d1cd3b4a7e50de625b021795"
},
"downloads": -1,
"filename": "drawgly-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "51ae845127b579107fd29c42956d193a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 2749,
"upload_time": "2023-04-17T02:57:14",
"upload_time_iso_8601": "2023-04-17T02:57:14.152441Z",
"url": "https://files.pythonhosted.org/packages/a7/e1/07d3d07cebcedeb3300ad024461196408d678c9f35bb852d8127a0d9a6c7/drawgly-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-17 02:57:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "fubin1999",
"github_project": "drawgly",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "drawgly"
}