{"id":21827915,"url":"https://github.com/dev0x13/fgridview","last_synced_at":"2026-04-09T16:05:59.621Z","repository":{"id":18688934,"uuid":"21898601","full_name":"dev0x13/fgridview","owner":"dev0x13","description":"Python GridView generator","archived":false,"fork":false,"pushed_at":"2014-08-11T09:37:12.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T12:26:54.782Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev0x13.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":"2014-07-16T11:47:56.000Z","updated_at":"2014-07-16T12:01:39.000Z","dependencies_parsed_at":"2022-09-24T02:01:15.152Z","dependency_job_id":null,"html_url":"https://github.com/dev0x13/fgridview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev0x13/fgridview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev0x13%2Ffgridview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev0x13%2Ffgridview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev0x13%2Ffgridview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev0x13%2Ffgridview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev0x13","download_url":"https://codeload.github.com/dev0x13/fgridview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev0x13%2Ffgridview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270982194,"owners_count":24679447,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-27T18:14:38.196Z","updated_at":"2026-04-09T16:05:59.595Z","avatar_url":"https://github.com/dev0x13.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"FGridView\n=========\n\nFGridView generates YII-style GridView for Python web frameworks like Flask. CSS was partially taken from YII framework, but styles are replaceable.\nUsage example:\n\n    data = [{\"uid\": 1, \"name\": \"Porto\", \"comments\": \"The woman\"},\n            {\"uid\": 2, \"name\": \"Ghast\", \"comments\": \"The daemon\"},\n            {\"uid\": 3, \"name\": \"\u003ca href='mypage.net'\u003eMy page\u003c/a\u003e\", \n                       \"comments\": \"My personal homepage\"}]\n\n    columns = OrderedDict() # Important!\n    columns[\"name\"] = {\"label\": \"Name\", \"type\": \"html\"}\n    columns[\"comments\"] = \"Misc\"\n\n    actions = [{\"link\": \"/entities/update/\", \"title\": \"Update\",\n                \"image\": \"/static/img/update.png\", \"id\":  \"uid\"},\n               {\"link\": \"/entities/delete/\", \"title\": \"Delete\",\n                \"image\": \"/static/img/delete.png\", \"id\": \"uid\"}]\n\n    def css_expression_func(row_number, row):\n        if row[\"is_error\"] == 1:\n            return \"err\"\n        if row_number % 2 == 0:\n            return \"odd\"\n        else:\n            return \"even\"\n\n    # Example sorting handling\n    sorting_params = {}\n    sorting = \"/users?sort=1\u0026field=\"\n    if request.method == \"GET\":\n        if request.args.get(\"sort\") and request.args.get(\"order\") and request.args.get(\"field\"):\n            sorting_params = {\"field\": request.args.get(\"field\"), \"order\": request.args.get(\"order\")}\n            # Your code with selecting data from source in due order\n\n    grid = FGridView.render_grid(data, columns, actions, sorting, css_expression_func, sorting_params)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev0x13%2Ffgridview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev0x13%2Ffgridview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev0x13%2Ffgridview/lists"}