{"id":37073199,"url":"https://github.com/bingqiao/greek_meander","last_synced_at":"2026-01-14T08:35:34.007Z","repository":{"id":313090312,"uuid":"1049995725","full_name":"bingqiao/greek_meander","owner":"bingqiao","description":"A Python script to generate a meander (Greek fret or Greek key design), a decorative border constructed from a continuous line, shaped into a repeated motif.","archived":false,"fork":false,"pushed_at":"2025-09-06T09:21:33.000Z","size":334,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-28T03:28:14.857Z","etag":null,"topics":["circle","generator","greek-fret","greek-key","greek-meander","image-generation","meander","png","python","rectangle","svg"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bingqiao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-03T19:47:58.000Z","updated_at":"2025-09-14T09:18:11.000Z","dependencies_parsed_at":"2025-09-03T22:04:11.654Z","dependency_job_id":"0335ca11-1200-441e-89c7-7c03c1c6bdde","html_url":"https://github.com/bingqiao/greek_meander","commit_stats":null,"previous_names":["bingqiao/greek_meander"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bingqiao/greek_meander","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingqiao%2Fgreek_meander","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingqiao%2Fgreek_meander/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingqiao%2Fgreek_meander/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingqiao%2Fgreek_meander/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bingqiao","download_url":"https://codeload.github.com/bingqiao/greek_meander/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bingqiao%2Fgreek_meander/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:31:27.429Z","status":"ssl_error","status_checked_at":"2026-01-14T08:31:19.098Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["circle","generator","greek-fret","greek-key","greek-meander","image-generation","meander","png","python","rectangle","svg"],"created_at":"2026-01-14T08:35:31.481Z","updated_at":"2026-01-14T08:35:33.995Z","avatar_url":"https://github.com/bingqiao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Greek Key Meander Generator\n\n[![PyPI version](https://badge.fury.io/py/greek-meander.svg)](https://badge.fury.io/py/greek-meander)\n\nThis Python script generates Greek key meander patterns as SVG and PNG images.\n\n## Examples\n\n### Rectangle\n\n![Meander Rectangle](https://raw.githubusercontent.com/bingqiao/greek_meander/refs/heads/master/images/meander_rectangle.png)\n\n### Circle\n\n![Meander Circle](https://raw.githubusercontent.com/bingqiao/greek_meander/refs/heads/master/images/meander_circle.png)\n\n## Description\n\nThe script uses the `drawsvg` library to create the pattern and `cairosvg` to convert it to a PNG image. The pattern's dimensions, colors, and other properties can be customized through command-line arguments.\n\n## Installation\n\nYou can install the package from PyPI:\n\n```bash\npip install greek_meander\n```\n\nThis will also install the required dependencies: `drawsvg` and `cairosvg`.\n\nOr you can install via `pip` the two packages above then run the script `meander.py` directly.\n\n## Usage\n\nThe script can be run from the command line with different subcommands to generate various types of meander patterns.\n\n### General Options\n\nThese options apply to all pattern types:\n\n| Argument | Type | Default | Description |\n|---|---|---|---|\n| `--stroke-width` | float | 2.0 | Line thickness in pixels. |\n| `--stroke-color` | str | '#AB8E0E' | Line color (name, hex, or RGB). |\n| `--stroke-opacity`| float | 0.7 | Line transparency (0.0 to 1.0). |\n| `--border-margin` | int | 1 | The margin of borders. |\n| `--file` | str | 'meander' | Output filename for SVG and PNG. |\n\nN.B. you need to have general options before `rect` or `circle` subcommand, followed by subcommand specific options.\n\n### Rectangle Pattern\n\nTo generate a rectangular meander pattern, use the `rect` subcommand.\n\n```bash\nmeander rect [options]\n```\n\n#### Rectangle Options\n\n| Argument | Type | Default | Description |\n|---|---|---|---|\n| `--size` | int | 10 | Size of the pattern unit. |\n| `--width` | int | 16 | Number of patterns horizontally. |\n| `--height` | int | 9 | Number of patterns vertically. |\n\n#### Rectangle Example\n\nTo run the python script directly\n\n```bash\npython meander.py --stroke-color \"#AB8E0E\" --stroke-opacity 0.7 rect --width 24 --height 13 --size 10\n```\n\nOr if you installed `greak_meander`\n\n```bash\nmeander --stroke-color \"#AB8E0E\" --stroke-opacity 0.7 rect --width 24 --height 13 --size 10\n```\n\n### Circle Pattern\n\nTo generate a circular meander pattern, use the `circle` subcommand.\n\n```bash\nmeander circle [options]\n```\n\n#### Circle Options\n\n| Argument | Type | Default | Description |\n|---|---|---|---|\n| `--pattern-count` | int | 30 | Number of patterns in the circle. |\n| `--radius` | int | 300 | The radius of the circle. |\n\n#### Circle Example\nTo run the python script directly\n\n```bash\npython meander.py --stroke-color green --file images/meander_circle circle\n```\n\nOr if you installed `greak_meander`\n\n```bash\nmeander --stroke-color green --file images/meander_circle circle\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbingqiao%2Fgreek_meander","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbingqiao%2Fgreek_meander","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbingqiao%2Fgreek_meander/lists"}