New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amis-python

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amis-python

基于百度amis前端框架的python pydantic模型封装。

  • 1.0.8.post2
  • PyPI
  • Socket score

Maintainers
1

amis-python

license python version

基于 百度amis 前端框架的python pydantic模型封装。

由于原版本缺少大量amis新版本的组件或配置,因此本项目在其版本的基础上进行了扩充。

相比fastapi-amis-admin的版本:

  • 涵盖amis截至3.1.0版本的所有组件
  • 使用jinja2模板
  • 支持修改主题

安装

pip install amis-python

简单使用

from amis.components import Page

page = Page(title='新页面', body='Hello World')
# 输出为python字典
print(page.to_dict())
# 输出为json
print(page.to_json())
# 输出为str
print(page.render())
# 保存为html文件
with open('HelloWorld.html', 'w', encoding='utf-8') as f:
    f.write(page.render())

详细使用

详见amis官方文档

感谢

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc