{"id":19458533,"url":"https://github.com/infernalazazel/pyamis","last_synced_at":"2025-02-25T11:42:43.310Z","repository":{"id":254775072,"uuid":"845338487","full_name":"InfernalAzazel/pyamis","owner":"InfernalAzazel","description":"pyamis is based on Baidu's open-source amis for Python encapsulation","archived":false,"fork":false,"pushed_at":"2024-09-14T07:12:41.000Z","size":238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T01:54:33.216Z","etag":null,"topics":["amis","fastapi","jinja2","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InfernalAzazel.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}},"created_at":"2024-08-21T03:59:23.000Z","updated_at":"2024-09-14T07:12:44.000Z","dependencies_parsed_at":"2024-08-26T03:02:58.392Z","dependency_job_id":"5eb8eaed-5044-4282-afed-cbbcdccd6cb0","html_url":"https://github.com/InfernalAzazel/pyamis","commit_stats":null,"previous_names":["infernalazazel/pyamis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfernalAzazel%2Fpyamis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfernalAzazel%2Fpyamis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfernalAzazel%2Fpyamis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfernalAzazel%2Fpyamis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfernalAzazel","download_url":"https://codeload.github.com/InfernalAzazel/pyamis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240662855,"owners_count":19837369,"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":["amis","fastapi","jinja2","python3"],"created_at":"2024-11-10T17:27:28.740Z","updated_at":"2025-02-25T11:42:43.273Z","avatar_url":"https://github.com/InfernalAzazel.png","language":"Python","readme":"\n[English](./README.md) | [简体中文](./README_zh-CN.md)\n\n\n## introduction\n\n\u003ch2 align=\"center\"\u003e pyamis \u003c/h2\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003eamis is a low-code front-end framework that uses JSON configuration to generate pages, which can reduce the workload of page development and greatly improve efficiency\u003c/em\u003e\u003cbr/\u003e\n    \u003cem\u003epyamis is based on Baidu's open-source amis for Python encapsulation\u003c/em\u003e\n\u003c/p\u003e\n\n------\n\u003e Do not use in a production environment at this time during the testing phase\n\n`pyamis` is a high-performance, efficient framework based on `jinja2`, `amis`, and `Python 3.7+`, and leverages standard Python type hints.\nIt was originally developed to improve the application ecosystem and quickly generate visual kanban boards for web applications. It follows the `Apache 2.0` license, is free and open source. I would very much like to have your sponsorship and support in order to better operate and maintain this project in the long term.\n\n## works with fastapi\n- code\n```python\nfrom fastapi import FastAPI\nfrom fastapi.responses import HTMLResponse\n\nfrom amis.function import App\n\napp = FastAPI()\n\n\n@app.get(\"/\", response_class=HTMLResponse)\nasync def read_root():\n    amis_app = App()\n    amis_app.type = 'page'\n    amis_app.body = {\n        'type': 'form',\n        'mode': 'horizontal',\n        'api': '/saveForm',\n        'body': [\n            {\n                'label': 'Name',\n                'type': 'input-text',\n                'name': 'name'\n            },\n            {\n                'label': 'Email',\n                'type': 'input-email',\n                'name': 'email'\n            }\n        ]\n    }\n\n    return HTMLResponse(content=amis_app.render())\n```\n- run\n\n```python\nuvicorn examples.fastapi:app --reload --port 3000\n```\n\n## license\n\n- According to the `Apache 2.0` license, `pyamis` is free and open source and can be used commercially. Please clearly display the copyright information of `pyamis` on the interface.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfernalazazel%2Fpyamis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfernalazazel%2Fpyamis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfernalazazel%2Fpyamis/lists"}