Cilantropy es una interfaz Python Package Manager creada para proporcionar una visual "fácil de usar" y también una interfaz de línea de comandos para Pythonistas. Hoy tenemos muchas utilidades de distribución agradables como PIP, distribuye, etc., pero no tenemos un buen enfoque visual para inspeccionar los paquetes instalados actuales, mostrar metadatos de proyectos, verificar las actualizaciones de PYPI, etc.
Cilantropía de demostración
Instalación con PIP:
$ pip install cilantropy
Actualización usando PIP:
$ pip install --upgrade cilantropy
Repositorio @ dockerhub
Docker componiendo extracto
# Docker Compose excerpt
services :
nginx-ui :
image : fz11/cilantropy:latest
ports :
- 8080:8080
volumes :
- nginx:/etc/nginxuwsgi --http 0.0.0.0:5000 --wsgi-file wsgi.py --callable app --processes 1 --threads 8 Si está ejecutando Linux con Systemd (antes de Editar ruta y otras configuraciones en contrib/systemd/cilantropy.service ) instalado, puede registrar cilantropía como un servicio copiando cilantropy.service (ambos en contrib/systemd ) a /etc/systemd/system .
Se aplican todos los comandos estándar de gestión de servicios Systemd (por ejemplo, systemctl enable y systemctl start ).
Manual
$ sudo start cilantropy
$ sudo stop cilantropy
$ sudo status cilantropyo
$ sudo service cilantropy start
$ sudo service cilantropy stop
$ sudo service cilantropy statusPuede usar cilantropía en su dispositivo Android con Termux:
$ pkg upgrade
$ pkg install python
$ pip install cilantropyBasicauth con nginx
En general, esta aplicación no viene con autenticación. Sin embargo, es fácil configurar Auth Basic para restringir el acceso no deseado. Así es como esto se puede hacer al usar Nginx.
apache2-utils (Debian, Ubuntu) o httpd-tools (Rhel/Centos/Oracle Linux)-c , si ha creado un usuario antes, ya que crea el archivo de usuario/passwort initalsudo htpasswd -c /etc/apache2/.htpasswd user1 Solo necesita llamar al script (la opción -W abrirá automáticamente su navegador):
$ cilantropy -w
$ plp --help
Cilantropy - Python List Packages (PLP)
Usage:
plp list [--compact] [<filter>]
plp show <project_name>
plp check <project_name>
plp scripts [<filter>]
plp paste [list your packages to pastebin service]
plp (-h | --help)
plp --version
Options:
--compact Compact list format
-h --help Show this screen.
--version Show version.
Los desarrolladores pueden configurar un entorno de desarrollo utilizando el comando "Desarrollar" de SetupTools:
$ git clone [email protected]:foozzi/cilantropy.git && cd cilantropy
$ pip install flit --user
$ flit install
$ cilantropy
Cilantropy utiliza los siguientes proyectos externos:
Matraz
Un microframe basado en Werkzeug, Jinja2 y buenas intenciones
Bootstrap 4
HTML, CSS y JS Toolkit de Bootstrap
Jinja2 (requisito de frasco)
El motor de plantilla Jinja2
Werkzeug (requisito de frasco)
Una implementación de WSGI flexible y un kit de herramientas
Docopt (utilizado por PLP)
Idioma de descripción de la interfaz de línea de comandos
Colorama (utilizado por PLP)
Texto terminal de color multiplataforma.
docutilos
Docutils es un sistema de procesamiento de texto de código abierto para procesar la documentación de texto sin formato en formatos útiles, como HTML o látex.
Flit (para el paquete de compilación e instalación)
Flit es una forma simple de poner paquetes y módulos de Python en PYPI.
La cilantropía es compatible con:
La cilantropía es compatible con:
Abra un problema en GitHub con el traza. Para obtener el rastreo, tendrá que ejecutar cilantropía en modo de depuración:
$ cilantropy -drvi
Copyright (c) 2020, Tkachenko Igor All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3) All advertising materials mentioning features or use of this software must display the following acknowledgement:
"This product includes software developed by the University of California, Berkeley and its contributors."
4) Neither the name of the foozzi nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Ver los contribuyentes.
Sitio del proyecto - Github