Ciantropy est une interface Python Package Manager créée pour fournir un visuel "facile à utiliser" et également une interface de ligne de commande pour Pythonistas. Aujourd'hui, nous avons de nombreux services publics de distribution comme PIP, distribution, etc., mais nous n'avons pas une belle approche visuelle pour inspecter les packages installés actuels, montrer les métadonnées des projets, vérifier les mises à jour PYPI, etc.
Coriantropie de démonstration
Installation à l'aide de PIP:
$ pip install cilantropy
Mise à niveau à l'aide de PIP:
$ pip install --upgrade cilantropy
Référentiel @ dockerhub
Docker composé l'extrait
# 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 vous exécutez Linux avec SystemD (avant de modifier le chemin d'accès et d'autres configurations dans contrib/systemd/cilantropy.service ) installé, vous pouvez enregistrer la ciliantropie en tant que service en copiant cilantropy.service (les deux dans contrib/systemd ) à /etc/systemd/system .
Toutes les commandes standard de gestion des services SystemD (par exemple systemctl enable et systemctl start ) s'appliquent.
Manuel
$ sudo start cilantropy
$ sudo stop cilantropy
$ sudo status cilantropyou
$ sudo service cilantropy start
$ sudo service cilantropy stop
$ sudo service cilantropy statusVous pouvez utiliser de la coriantropie sur votre appareil Android avec Termux:
$ pkg upgrade
$ pkg install python
$ pip install cilantropyBasicAuth avec nginx
En général, cette application ne vient pas avec l'authentification. Cependant, il est facile de configurer Basic Auth pour restreindre l'accès indésirable. Voici comment cela peut être fait lors de l'utilisation de Nginx.
apache2-utils (Debian, Ubuntu) ou httpd-tools (RHEL / Centos / Oracle Linux) est installé-c , si vous avez déjà créé un utilisateur, car il crée le fichier inital utilisateur / passwortsudo htpasswd -c /etc/apache2/.htpasswd user1 Vous avez seulement besoin d'appeler le script (l'option -W ouvrira automatiquement votre navigateur):
$ 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.
Les développeurs peuvent configurer un environnement de développement en utilisant la commande "Develop" à partir de setuptools:
$ git clone [email protected]:foozzi/cilantropy.git && cd cilantropy
$ pip install flit --user
$ flit install
$ cilantropy
La coriantropie utilise les projets externes suivants:
Ballon
Un microframe basé sur Werkzug, Jinja2 et les bonnes intentions
Bootstrap 4
HTML, CSS et JS Toolkit de Bootstrap
Jinja2 (exigence de flacon)
Le moteur de modèle Jinja2
Werkzug (exigence de flacon)
Une implémentation et une boîte à outils flexibles
docopt (utilisé par PLP)
Interface de ligne de commande DESCRIPTION Langue
Colorama (utilisé par PLP)
Texte terminal coloré multiplateforme.
doculs
DOCUTILS est un système de traitement de texte open source pour le traitement de la documentation en texte en clair dans des formats utiles, tels que HTML ou LaTeX.
FLIT (pour la construction et l'installation du package)
Le flit est un moyen simple de mettre des packages et des modules Python sur PYPI.
La coriantropie est compatible avec:
La coriantropie est compatible avec:
Ouvrez un problème dans GitHub avec le Traceback. Pour obtenir le Traceback, vous devrez exécuter de la coriantropie en mode de débogage:
$ 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.
Voir les contributeurs.
Site du projet - github