%global _empty_manifest_terminate_build 0 Name: python-piccolo-admin Version: 0.48.0 Release: 1 Summary: A powerful and modern admin interface / CMS, powered by Piccolo and ASGI. License: MIT URL: https://github.com/piccolo-orm/piccolo_admin Source0: https://mirrors.nju.edu.cn/pypi/web/packages/db/ca/bc9a9469620bd426ad963e8abb41dc2f60837e775a5892f60bd132f51929/piccolo_admin-0.48.0.tar.gz BuildArch: noarch Requires: python3-piccolo Requires: python3-piccolo-api Requires: python3-uvicorn Requires: python3-aiofiles Requires: python3-Hypercorn Requires: python3-targ Requires: python3-fastapi Requires: python3-faker Requires: python3-piccolo-api[s3] Requires: python3-faker Requires: python3-piccolo-api[s3] %description ![Logo](https://raw.githubusercontent.com/piccolo-orm/piccolo_admin/master/docs/logo_hero.png "Piccolo Admin Logo") # Piccolo Admin [![Documentation Status](https://readthedocs.org/projects/piccolo-admin/badge/?version=latest)](https://piccolo-admin.readthedocs.io/en/latest/?badge=latest) Piccolo Admin is a powerful admin interface / content management system for Python, built on top of Piccolo. ![Screenshot](https://raw.githubusercontent.com/piccolo-orm/piccolo_admin/master/docs/images/screenshot.png "Screenshot") It was created at a design agency to serve the needs of customers who demand a high quality, beautiful admin interface for their websites. It's a modern alternative to tools like Wordpress and Django Admin. It's built using the latest technologies, with Vue.js on the front end, and a powerful REST backend. Some of it's standout features: * Powerful data filtering * Builtin security * Media support, both locally and in S3 compatible services * Dark mode support * CSV exports * Easily create custom forms * Works on mobile and desktop * Use standalone, or integrate it easily with ASGI apps like FastAPI, and Starlette * Multilingual out of box * Bulk actions, like updating and deleting data * Flexible UI - only show the columns you want your users to see ## Try it [Try it online](https://demo1.piccolo-orm.com/) (username: piccolo, password: piccolo123). ## Local Demo To run a demo locally, using Python 3.7 or above: ```bash pip install piccolo_admin admin_demo ``` And then just launch `localhost:8000` in your browser. To see what happens behind the scenes, see `piccolo_admin/example.py`. In a few lines of code we are able to: - Define our models - Setup a database - Create a REST API - Setup a web server and admin interface ## ASGI Since the admin is an ASGI app, you can either run it standalone like in the demo, or integrate it with a larger ASGI app such as FastAPI and Starlette. For example, using Starlette routes: ```python from piccolo_admin.endpoints import create_admin from starlette.routing import Router, Route import uvicorn from my_project.tables import Director, Movie # The `allowed_hosts` argument is required when running under HTTPS. It's used # for additional CSRF defence. admin = create_admin([Director, Movie], allowed_hosts=['my_site.com']) router = Router([ Route(path="/", endpoint=Hello), Mount(path="/admin/", app=admin), ]) if __name__ == '__main__': uvicorn.run(router) ``` ## Full docs Full documentation is available on [Read the docs](https://piccolo-admin.readthedocs.io/en/latest/). %package -n python3-piccolo-admin Summary: A powerful and modern admin interface / CMS, powered by Piccolo and ASGI. Provides: python-piccolo-admin BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-piccolo-admin ![Logo](https://raw.githubusercontent.com/piccolo-orm/piccolo_admin/master/docs/logo_hero.png "Piccolo Admin Logo") # Piccolo Admin [![Documentation Status](https://readthedocs.org/projects/piccolo-admin/badge/?version=latest)](https://piccolo-admin.readthedocs.io/en/latest/?badge=latest) Piccolo Admin is a powerful admin interface / content management system for Python, built on top of Piccolo. ![Screenshot](https://raw.githubusercontent.com/piccolo-orm/piccolo_admin/master/docs/images/screenshot.png "Screenshot") It was created at a design agency to serve the needs of customers who demand a high quality, beautiful admin interface for their websites. It's a modern alternative to tools like Wordpress and Django Admin. It's built using the latest technologies, with Vue.js on the front end, and a powerful REST backend. Some of it's standout features: * Powerful data filtering * Builtin security * Media support, both locally and in S3 compatible services * Dark mode support * CSV exports * Easily create custom forms * Works on mobile and desktop * Use standalone, or integrate it easily with ASGI apps like FastAPI, and Starlette * Multilingual out of box * Bulk actions, like updating and deleting data * Flexible UI - only show the columns you want your users to see ## Try it [Try it online](https://demo1.piccolo-orm.com/) (username: piccolo, password: piccolo123). ## Local Demo To run a demo locally, using Python 3.7 or above: ```bash pip install piccolo_admin admin_demo ``` And then just launch `localhost:8000` in your browser. To see what happens behind the scenes, see `piccolo_admin/example.py`. In a few lines of code we are able to: - Define our models - Setup a database - Create a REST API - Setup a web server and admin interface ## ASGI Since the admin is an ASGI app, you can either run it standalone like in the demo, or integrate it with a larger ASGI app such as FastAPI and Starlette. For example, using Starlette routes: ```python from piccolo_admin.endpoints import create_admin from starlette.routing import Router, Route import uvicorn from my_project.tables import Director, Movie # The `allowed_hosts` argument is required when running under HTTPS. It's used # for additional CSRF defence. admin = create_admin([Director, Movie], allowed_hosts=['my_site.com']) router = Router([ Route(path="/", endpoint=Hello), Mount(path="/admin/", app=admin), ]) if __name__ == '__main__': uvicorn.run(router) ``` ## Full docs Full documentation is available on [Read the docs](https://piccolo-admin.readthedocs.io/en/latest/). %package help Summary: Development documents and examples for piccolo-admin Provides: python3-piccolo-admin-doc %description help ![Logo](https://raw.githubusercontent.com/piccolo-orm/piccolo_admin/master/docs/logo_hero.png "Piccolo Admin Logo") # Piccolo Admin [![Documentation Status](https://readthedocs.org/projects/piccolo-admin/badge/?version=latest)](https://piccolo-admin.readthedocs.io/en/latest/?badge=latest) Piccolo Admin is a powerful admin interface / content management system for Python, built on top of Piccolo. ![Screenshot](https://raw.githubusercontent.com/piccolo-orm/piccolo_admin/master/docs/images/screenshot.png "Screenshot") It was created at a design agency to serve the needs of customers who demand a high quality, beautiful admin interface for their websites. It's a modern alternative to tools like Wordpress and Django Admin. It's built using the latest technologies, with Vue.js on the front end, and a powerful REST backend. Some of it's standout features: * Powerful data filtering * Builtin security * Media support, both locally and in S3 compatible services * Dark mode support * CSV exports * Easily create custom forms * Works on mobile and desktop * Use standalone, or integrate it easily with ASGI apps like FastAPI, and Starlette * Multilingual out of box * Bulk actions, like updating and deleting data * Flexible UI - only show the columns you want your users to see ## Try it [Try it online](https://demo1.piccolo-orm.com/) (username: piccolo, password: piccolo123). ## Local Demo To run a demo locally, using Python 3.7 or above: ```bash pip install piccolo_admin admin_demo ``` And then just launch `localhost:8000` in your browser. To see what happens behind the scenes, see `piccolo_admin/example.py`. In a few lines of code we are able to: - Define our models - Setup a database - Create a REST API - Setup a web server and admin interface ## ASGI Since the admin is an ASGI app, you can either run it standalone like in the demo, or integrate it with a larger ASGI app such as FastAPI and Starlette. For example, using Starlette routes: ```python from piccolo_admin.endpoints import create_admin from starlette.routing import Router, Route import uvicorn from my_project.tables import Director, Movie # The `allowed_hosts` argument is required when running under HTTPS. It's used # for additional CSRF defence. admin = create_admin([Director, Movie], allowed_hosts=['my_site.com']) router = Router([ Route(path="/", endpoint=Hello), Mount(path="/admin/", app=admin), ]) if __name__ == '__main__': uvicorn.run(router) ``` ## Full docs Full documentation is available on [Read the docs](https://piccolo-admin.readthedocs.io/en/latest/). %prep %autosetup -n piccolo-admin-0.48.0 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-piccolo-admin -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Wed May 10 2023 Python_Bot - 0.48.0-1 - Package Spec generated