{"id":20253112,"url":"https://github.com/zostera/python-makiwich","last_synced_at":"2025-03-03T16:44:35.413Z","repository":{"id":57457205,"uuid":"149757878","full_name":"zostera/python-makiwich","owner":"zostera","description":"python port of mapbox/makiwich","archived":false,"fork":false,"pushed_at":"2018-10-08T14:02:38.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-02T04:09:32.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zostera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-21T12:05:58.000Z","updated_at":"2018-10-08T14:02:36.000Z","dependencies_parsed_at":"2022-09-05T18:11:55.569Z","dependency_job_id":null,"html_url":"https://github.com/zostera/python-makiwich","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostera%2Fpython-makiwich","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostera%2Fpython-makiwich/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostera%2Fpython-makiwich/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostera%2Fpython-makiwich/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zostera","download_url":"https://codeload.github.com/zostera/python-makiwich/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241704368,"owners_count":20006365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T10:21:28.522Z","updated_at":"2025-03-03T16:44:35.390Z","avatar_url":"https://github.com/zostera.png","language":"Python","readme":"# python-makiwich\n\n- python port of https://github.com/mapbox/makiwich\n- Uses CC0 [Maki icons](https://github.com/mapbox/maki/)\n- Dependencies: [xmltodict](https://pypi.org/project/xmltodict/), for PNG export: [cairosvg](https://pypi.org/project/CairoSVG/)\n- Contains Django view to serve icons in `maki.contrib.django.maki_icon`\n\nThe icons are not included in this repository, so building the package requires downloading the [Maki icons](https://www.mapbox.com/maki-icons/):\n\n```\ncurl -L https://github.com/mapbox/maki/archive/master.zip -o maki-master.zip\nunzip -qj maki-master.zip 'maki-master/icons/*' -d maki/img/icons/\n```\n\n# usage\n\n```python\n\u003e\u003e\u003e from maki import MakiMarker\n\u003e\u003e\u003e marker = MakiMarker(symbol=\"park\", tint=\"#3388ff\")\n\u003e\u003e\u003e marker.svg()\n'\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\\n\u003csvg width=\"27px\" height=\"41px\" viewBox=\"0 0 27 41\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"\u003e\u003cdesc\u003eCreated with Sketch.\u003c/desc\u003e\u003cdefs\u003e\u003c/defs\u003e\u003cg id=\"marker-large\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"\u003e\u003cg id=\"Page-1\" fill-rule=\"nonzero\"\u003e\u003cg id=\"shadow\" transform=\"translate(3.000000, 29.000000)\" fill=\"#000000\"\u003e\u003cellipse id=\"ellipse9048\" opacity=\"0.04\" cx=\"10.5\" cy=\"5.80029008\" rx=\"10.5\" ry=\"5.25002273\"\u003e\u003c/ellipse\u003e\u003cellipse id=\"ellipse8490\" opacity=\"0.04\" cx=\"10.5\" cy=\"5.80029008\" rx=\"10.5\" ry=\"5.25002273\"\u003e\u003c/ellipse\u003e\u003cellipse id=\"ellipse8492\" opacity=\"0.04\" cx=\"10.5\" cy=\"5.80029008\" rx=\"9.5\" ry=\"4.77275007\"\u003e\u003c/ellipse\u003e\u003cellipse id=\"ellipse8494\" opacity=\"0.04\" cx=\"10.5\" cy=\"5.80029008\" rx=\"8.5\" ry=\"4.29549936\"\u003e\u003c/ellipse\u003e\u003cellipse id=\"ellipse8496\" opacity=\"0.04\" cx=\"10.5\" cy=\"5.80029008\" rx=\"7.5\" ry=\"3.81822308\"\u003e\u003c/ellipse\u003e\u003cellipse id=\"ellipse8498\" opacity=\"0.04\" cx=\"10.5\" cy=\"5.80029008\" rx=\"6.5\" ry=\"3.34094679\"\u003e\u003c/ellipse\u003e\u003cellipse id=\"ellipse8500\" opacity=\"0.04\" cx=\"10.5\" cy=\"5.80029008\" rx=\"5.5\" ry=\"2.86367051\"\u003e\u003c/ellipse\u003e\u003cellipse id=\"ellipse8502\" opacity=\"0.04\" cx=\"10.5\" cy=\"5.80029008\" rx=\"4.5\" ry=\"2.38636864\"\u003e\u003c/ellipse\u003e\u003c/g\u003e\u003cg id=\"background\" fill=\"#3388FF\"\u003e\u003cpath d=\"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z\" id=\"path12645\"\u003e\u003c/path\u003e\u003c/g\u003e\u003cg id=\"border\" opacity=\"0.25\" fill=\"#000000\"\u003e\u003cpath d=\"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z\" id=\"path12645-9\"\u003e\u003c/path\u003e\u003c/g\u003e\u003cg id=\"maki\" transform=\"translate(6.000000, 7.000000)\" fill=\"#FFFFFF\"\u003e\u003cpath id=\"icon\" d=\"M14,5.75c0.0113-0.6863-0.3798-1.3159-1-1.61C12.9475,3.4906,12.4014,2.9926,11.75,3  c-0.0988,0.0079-0.1962,0.0281-0.29,0.06c-0.0607-0.66-0.6449-1.1458-1.3048-1.0851C9.8965,1.9987,9.6526,2.1058,9.46,2.28l0,0  c0-0.6904-0.5596-1.25-1.25-1.25S6.96,1.5896,6.96,2.28C6.96,2.28,7,2.3,7,2.33C6.4886,1.8913,5.7184,1.9503,5.2797,2.4618  C5.1316,2.6345,5.0347,2.8451,5,3.07C4.8417,3.0195,4.6761,2.9959,4.51,3C3.6816,2.9931,3.0044,3.659,2.9975,4.4874  C2.9958,4.6872,3.0341,4.8852,3.11,5.07C2.3175,5.2915,1.8546,6.1136,2.0761,6.9061C2.2163,7.4078,2.6083,7.7998,3.11,7.94  c0.2533,0.7829,1.0934,1.2123,1.8763,0.959C5.5216,8.7258,5.9137,8.2659,6,7.71C6.183,7.8691,6.4093,7.9701,6.65,8v5L5,14h5l-1.6-1  v-2c0.7381-0.8915,1.6915-1.5799,2.77-2c0.8012,0.1879,1.603-0.3092,1.7909-1.1103C12.9893,7.7686,13.0025,7.6444,13,7.52  c0.0029-0.0533,0.0029-0.1067,0-0.16C13.6202,7.0659,14.0113,6.4363,14,5.75z M8.4,10.26V6.82C8.6703,7.3007,9.1785,7.5987,9.73,7.6  h0.28c0.0156,0.4391,0.2242,0.849,0.57,1.12C9.7643,9.094,9.0251,9.6162,8.4,10.26z\" style=\"fill:#fff\"\u003e\u003c/path\u003e\u003c/g\u003e\u003c/g\u003e\u003c/g\u003e\u003c/svg\u003e'\n```\n\n# Known issues / TODO\n\n- Letters / numbers not supported yet.\n- Decide how to keep the icon files (currently not in the repo.)\n- Error messages for missing icons need improvement\n- check/extend/test `Color.most_readable` implementation\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzostera%2Fpython-makiwich","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzostera%2Fpython-makiwich","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzostera%2Fpython-makiwich/lists"}