跳转到主要内容

Idem二进制安装和管理工具

项目描述

Made with pop, a Python implementation of Plugin Oriented Programming Made with Python

idemenv是一个受tfenv启发的Idem二进制安装和管理工具。

关于

idemenv允许用户轻松安装多个使用tiamat构建的idem二进制文件。这对于在不同的idem版本之间切换idem配置代码库非常有用。

idemenv作为一个POP应用程序构建,这允许它利用生态系统中的其他POP插件或根据需要插入其他应用程序。

什么是POP?

该项目是用pop构建的,pop是一个基于Python的插件面向编程(POP)的实现。POP试图以新的方式将计算机历史中的概念和智慧结合起来,以解决现代计算问题。

更多信息

入门

先决条件

  • Python 3.7+

  • git (如果从源安装,或为项目做贡献)

安装

如果想要使用idemenv,您可以通过PyPI或源安装。

从PyPI安装

pip install idemenv

从源安装

# clone repo
git clone git@github.com/eitrtechnologies/idemenv.git
cd idemenv

# Setup venv
python3 -m venv .venv --prompt idemenv
source .venv/bin/activate
pip install -e .

使用方法

usage: run.py [-h] [--config CONFIG] [--config-template] [--log-datefmt LOG_DATEFMT] [--log-file LOG_FILE] [--log-fmt-console LOG_FMT_CONSOLE]
           [--log-fmt-logfile LOG_FMT_LOGFILE] [--log-handler-options [LOG_HANDLER_OPTIONS ...]] [--log-level LOG_LEVEL] [--log-plugin LOG_PLUGIN] [--repo-url REPO_URL]
           [--idemenv-dir SALTENV_DIR] [--version]
           {init,install,list,list-remote,pin,uninstall,use,version} ...

positional arguments:
  {init,install,list,list-remote,pin,uninstall,use,version}

options:
  -h, --help            show this help message and exit
  --config CONFIG, -c CONFIG
                        Load extra options from a configuration file onto hub.OPT.idemenv
  --config-template     Output a config template for this command
  --repo-url REPO_URL, -r REPO_URL
                        Idem single binary repository location. Version directories are expected here.
  --idemenv-dir IDEMENV_DIR, -d IDEMENV_DIR
                        Working directory for idemenv downloads
  --version             Display version information

Logging Options:
  --log-datefmt LOG_DATEFMT
                        The date format to display in the logs
  --log-file LOG_FILE   The location of the log file
  --log-fmt-console LOG_FMT_CONSOLE
                        The log formatting used in the console
  --log-fmt-logfile LOG_FMT_LOGFILE
                        The format to be given to log file messages
  --log-handler-options [LOG_HANDLER_OPTIONS ...]
                        kwargs that should be passed to the logging handler used by the log_plugin
  --log-level LOG_LEVEL
                        Set the log level, either quiet, info, warning, debug or error
  --log-plugin LOG_PLUGIN
                        The logging plugin to use

示例

基本的idem二进制设置

# Example CLI commands


# List remote versions

$ idemenv list-remote
3004rc1
3004
3003.3
3003


# Install latest version

$ idemenv install latest
Processing tarball...


# Use latest version

$ idemenv use latest


# List local versions

$ idemenv list
* 3004 set by /home/nmhughes/.idemenv/version
  3003.3
  3003


# Initialize the idemenv environment, which will point to the idem binaries

$ idemenv init
Add the idemenv bin directory to your PATH:

    echo 'export PATH="$HOME/.idemenv/bin:$PATH"' >> ~/.bashrc
OR:
    echo 'export PATH="$HOME/.idemenv/bin:$PATH"' >> ~/.zshrc

$ echo 'export PATH="$HOME/.idemenv/bin:$PATH"' >> ~/.zshrc
$ source ~/.zshrc


# Kick the tires!

$ idem exec test.version
local:
    3004

常见问题

  • 如果遇到此错误,您可能正在运行Arch系统,需要安装libxcrypt-compat软件包。

[230732] Error loading Python lib '/tmp/_MEIAEr7dd/libpython3.7m.so.1.0': dlopen: libcrypt.so.1: cannot open shared object file: No such file or directory

路线图

参考公开问题以获取功能建议(以及已知问题)列表。

致谢

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。

源分布

idemenv-0.2.0.tar.gz (14.2 kB 查看哈希值)

上传时间 源代码

构建分布

idemenv-0.2.0-py3-none-any.whl (12.9 kB 查看哈希值)

上传时间 Python 3

支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面