{"id":16755378,"url":"https://github.com/natir/ggraph","last_synced_at":"2025-03-16T06:23:46.510Z","repository":{"id":74195973,"uuid":"50683779","full_name":"natir/ggraph","owner":"natir","description":"Simply add graph, with just one url","archived":false,"fork":false,"pushed_at":"2016-02-02T14:33:30.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T18:51:26.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natir.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-29T18:53:06.000Z","updated_at":"2016-02-02T14:08:33.000Z","dependencies_parsed_at":"2023-03-23T02:17:25.843Z","dependency_job_id":null,"html_url":"https://github.com/natir/ggraph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natir%2Fggraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natir%2Fggraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natir%2Fggraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natir%2Fggraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natir","download_url":"https://codeload.github.com/natir/ggraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243833042,"owners_count":20355192,"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-10-13T03:07:29.315Z","updated_at":"2025-03-16T06:23:46.488Z","avatar_url":"https://github.com/natir.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GGraph\n\nweb service for generate image with graphviz dot language\n\n## Requirement\n\n* python \u003e= 3.4\n* graphviz\n\n## Instalation\n\n\tgit clone https://github.com/natir/ggraph.git\n\n\tpip install -r requirements.txt\n\nFor test instalation you can run :\n\n\tmake run PORT=[port number default 8080]\n\n\n## Usage\n\nService is provide at this adresse : [http://ggraph.pierre.marijon.fr/](http://ggraph.pierre.marijon.fr/)\n\nYou can try some exemple url :\n\n* [node a to b](http://ggraph.pierre.marijon.fr/dot/svg/digraph{a-\u003eb;})\n* [node a to b png version](http://ggraph.pierre.marijon.fr/dot/png/digraph{a-\u003eb;})\n* [complex graph](http://ggraph.pierre.marijon.fr/dot/svg/digraph{\n    fontname = \"Bitstream Vera Sans\";\n    fontsize = 8;\n    node [fontname = \"Bitstream Vera Sans\";fontsize = 8;shape = \"record\";];\n    edge [fontname = \"Bitstream Vera Sans\";fontsize = 8;];\n    Sequence [label = \"{Sequence | +data : string \\\\l +comment : string \\\\l| + gc\\(\\) : float}\"];\n    Genome [label = \"{Genome | +seqs : Sequence[] \\\\l +annotation : Annotation \\\\l}\"];\n    Sequence -\u003e Genome;\n})\n\nIn markdown you need escape \\, ( and ) charactere with \\, exemple :\n\n\t[complex graph](http://ggraph.pierre.marijon.fr/dot/svg/digraph{\n\tfontname = \"Bitstream Vera Sans\";\n\tfontsize = 8;\n\tnode [fontname = \"Bitstream Vera Sans\";fontsize = 8;shape = \"record\";];\n\tedge [fontname = \"Bitstream Vera Sans\";fontsize = 8;];\n\tSequence [label = \"{Sequence | +data : string \\\\l +comment : string \\\\l | +gc\\(\\) : float}\"];\n\tGenome [label = \"{Genome | +seqs:Sequence[] \\\\l +annotation:Annotation}\"];\n\tSequence -\u003e Genome;\n\t})\n\nThe list of avaible:\n\n* [engine](http://ggraph.pierre.marijon.fr/engine) in json format\n* [output format](http://ggraph.pierre.marijon.fr/format) in json format\n\n## Production setup\n\nFor run ggraph in production you can use this configuration file.\n\n### Systemd\n\n\t[Unit]\n\tDescription=SVG graph generator\n\tAfter=network.target\n\tRequires=network.target\n\n\t[Service]\n\tUser=youruser\n\tGroup=yourgroup\n\tWorkingDirectory=/path/to/ggraph\n\tEnvironement=\"PATH=/path/to/ggraph/env/bin\"\n\tExecStart=/path/to/ggraph/env/bin/gunicorn --workers 3 -bind unix:ggraph.sock -m 007 ggraph:app\n\tRestart=always\n\n\t[Install]\n\tWantedBy=multi-user.target\n\n### nginx\n\n\tserver\n\t{\n\t\tlisten 80;\n\n\t    server_name ggraph.hostname;\n\n\t    location /\n\t\t{\n\t\t\tproxy_set_header Host $http_host;\n\t\t\tproxy_set_header X-Real-IP $remote_addr;\n\t\t\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\t\t\tproxy_set_header X-Forwarded-Proto $scheme;\n\t\t\tproxy_pass http://unix:/path/to/ggraph/ggraph.sock;\n\t\t}\n\t}\n\n## Contribute\n\nPlease fork and propose pull requests.\n\n## Bug\n\nYou can report bug on [github](https://github.com/natir/ggraph/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatir%2Fggraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatir%2Fggraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatir%2Fggraph/lists"}