envinfopy is a Python Library to get execution environment information.
Project description
Summary
envinfopy is a Python Library to get execution environment information.
Installation
pip3 install envinfopy
Usage
Library usage
>>> import envinfopy
>>> envinfopy.get_envinfo(["envinfopy"])
{'uname': 'Linux', 'python_implementation': 'CPython', 'python_version': '3.8.5', 'platform': 'Ubuntu 18.04', 'envinfopy': '0.0.4'}
Get environment information as Markdown:
pip3 install envinfopy[all] # install optional dependencies
>>> import envinfopy
>>> print(envinfopy.dumps(["envinfopy"], format="markdown"))
| Module | Version |
| --------- | ------------- |
| uname | Linux |
| Python | CPython 3.8.5 |
| platform | Ubuntu 18.04 |
| envinfopy | 0.0.4 |
CLI usage
$ pip3 install envinfopy[all] # install optional dependencies $ python3 -m envinfopy envinfopy setuptools --format markdown | Module | Version | | ---------- | --------------------------------- | | uname | Linux 4.19.104-microsoft-standard | | Python | CPython 3.8.5 | | platform | Ubuntu 18.04 | | envinfopy | 0.0.4 | | setuptools | 57.0.0 |
Command help
usage: __main__.py [-h] [-V] [-v] [--format {text,markdown,json,itemize}] packages [packages ...] positional arguments: packages package names to extract versions optional arguments: -h, --help show this help message and exit -V, --version show program's version number and exit -v, --verbose --format {text,markdown,json,itemize} output format Issue tracker: https://github.com/thombashi/envinfopy/issues
Dependencies
Python 3.6+
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
envinfopy-0.0.7.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for envinfopy-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f541162971183c103ea09992d899ce1793af207577940b91bab8e0dcd5affd96 |
|
MD5 | 4fa292aa17e01f2a44f4467d9893d4ab |
|
BLAKE2b-256 | de53c281c75b38ed1ef16bf9d59f323ad6c8449f6966f7a00c828e166f081104 |