Cilantropy is a Python Package Manager interface created to provide an "easy-to-use" visual and also a command-line interface for Pythonistas.
Project description
Cilantropy
Cilantropy is a Python Package Manager interface created to provide an "easy-to-use" visual and also a command-line interface for Pythonistas. Today we have many nice distribution utilities like pip, distribute, etc, but we don't have a nice visual approach to inspect current installed packages, show projects metadata, check for PyPI updates, etc.
Demo
Screenshots
Screenshot: The home
Screenshot: Installed package information
Screenshot: Check PyPI for updates available
'plp' (Python List Packages) console utility
How to Install
Installing using pip:
$ pip install cilantropy
Upgrading using pip:
$ pip install --upgrade cilantropy
Docker
Repository @ DockerHub
Docker Compose excerpt
# Docker Compose excerpt
services:
nginx-ui:
image: fz11/cilantropy:latest
ports:
- 8080:8080
volumes:
- nginx:/etc/nginx
uWSGI
uwsgi --http 0.0.0.0:5000 --wsgi-file wsgi.py --callable app --processes 1 --threads 8
Installing as a systemd service
If you're running Linux with systemd
(before edit path and other configs in contrib/systemd/cilantropy.service
)
installed, you can register Cilantropy as a service by copying cilantropy.service
(both in contrib/systemd
) to /etc/systemd/system
.
All standard systemd service management commands (e.g. systemctl enable
and systemctl start
) apply.
uWSGI + Nginx
Service management
$ sudo start cilantropy
$ sudo stop cilantropy
$ sudo status cilantropy
or
$ sudo service cilantropy start
$ sudo service cilantropy stop
$ sudo service cilantropy status
Android (Termux)
You can use Cilantropy on your android device with Termux:
$ pkg upgrade
$ pkg install python
$ pip install cilantropy
Authentication
In general, this app does not come with authentication. However, it is easy to setup basic auth to restrict unwanted access. Here is how this can be done when using nginx.
Configure the auth file
- Verify that
apache2-utils
(Debian, Ubuntu) orhttpd-tools
(RHEL/CentOS/Oracle Linux) is installed - Run the htpasswd utility to create a new user and set a passwort.
- Make sure, that the directory exists
- Remove the
-c
flag, if you have created a user before, since it creates the inital user/passwort file sudo htpasswd -c /etc/apache2/.htpasswd user1
Using Cilantropy
You only need to call the script (the -w option will automatically open your browser):
$ cilantropy -w
Using plp
$ 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.
Setting a development environment
Developers can setup a development environment using the "develop" command from setuptools:
$ git clone git@github.com:foozzi/cilantropy.git && cd cilantropy
$ pip install flit --user
$ flit install
$ cilantropy
Requirements
Cilantropy uses the following external projects:
A microframework based on Werkzeug, Jinja2 and good intentions
HTML, CSS, and JS toolkit from Bootstrap
Jinja2 (Flask requirement)
The Jinja2 template engine
Werkzeug (Flask requirement)
A flexible WSGI implementation and toolkit
docopt (used by plp)
Command-line interface description language
colorama (used by plp)
Cross-platform colored terminal text.
Docutils is an open-source text processing system for processing plaintext documentation into useful formats, such as HTML or LaTeX.
flit (for build and install package)
Flit is a simple way to put Python packages and modules on PyPI.
Compatibility
Cilantropy is compatible with:
- Python 3
Supported browsers
Cilantropy is compatible with:
- Firefox
- Google Chrome
- Internet Explorer 9/10
- Safari
Reporting bug
Open an issue in Github with the traceback. To get the traceback, you'll have to run Cilantropy in debugging mode:
$ cilantropy -drvi
License
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.
Contributors
See the Contributors.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cilantropy-0.2.7.post1.tar.gz
.
File metadata
- Download URL: cilantropy-0.2.7.post1.tar.gz
- Upload date:
- Size: 159.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a8c06db6bddc8b64f80f996380a6052fe888eac2c5390abf9ace8de4240d16 |
|
MD5 | b3b307ee849fdf7a917627894028ba84 |
|
BLAKE2b-256 | 039def740027d88d5f8739c4791edd21010b07a7f0c9c43b8ef00fa98ba3760d |
File details
Details for the file cilantropy-0.2.7.post1-py3-none-any.whl
.
File metadata
- Download URL: cilantropy-0.2.7.post1-py3-none-any.whl
- Upload date:
- Size: 169.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f99db0d18c00586dc5846fb85d40a8e19682f47e2d43506f62cf0623a534225e |
|
MD5 | 6cc2dfe3d31a20dcc0aff4af73d6f593 |
|
BLAKE2b-256 | 879eda55967d78bb0f5ea29e6e68174d4903c7012d3dd7063134d1752d5bba50 |