Skip to main content

Summary

PyPI package version Supported Python versions Supported Python implementations CI status of Linux/macOS/Windows Test coverage: coveralls

envinfopy is a Python Library to get execution environment information.

Installation

python3 -m pip install envinfopy

Usage

Library usage

Get execution environment information as a dictionary:

>>> import envinfopy
>>> envinfopy.get_envinfo()
{'uname': 'Linux', 'python_implementation': 'CPython', 'python_version': '3.11.4', 'platform': 'Ubuntu 22.04.2 LTS'}

Get execution environment information and specific package version information:

>>> import envinfopy
>>> envinfopy.get_envinfo(["envinfopy"])
{'uname': 'Linux', 'python_implementation': 'CPython', 'python_version': '3.11.4', 'platform': 'Ubuntu 22.04.2 LTS', 'envinfopy': '0.1.0'}

Get environment information as Markdown:

python3 -m pip install envinfopy[markdown]  # install optional dependencies
>>> import envinfopy
>>> print(envinfopy.dumps(["envinfopy"], format="markdown"))
|  Module   |      Version       |
| --------- | ------------------ |
| uname     | Linux              |
| Python    | CPython 3.11.4     |
| platform  | Ubuntu 22.04.2 LTS |
| envinfopy | 0.1.0              |

CLI usage

$ python3 -m install envinfopy[cli]  # install optional dependencies

$ python3 -m envinfopy envinfopy setuptools --format markdown
|   Module   |                 Version                 |
| ---------- | --------------------------------------- |
| uname      | Linux 5.15.90.1-microsoft-standard-WSL2 |
| Python     | CPython 3.11.4                          |
| platform   | Ubuntu 22.04.2 LTS                      |
| envinfopy  | 0.0.7                                   |
| setuptools | 67.8.0                                  |

Command help

usage: __main__.py [-h] [-V] [-v] [--format {text,markdown,md,json,itemize}] packages [packages ...]

positional arguments:
  packages              PyPI package names to extract versions

options:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -v, --verbose
  --format {text,markdown,md,json,itemize}
                        output format

Issue tracker: https://github.com/thombashi/envinfopy/issues

Dependencies

Python 3.7+

Metadata

Release files for envinfopy 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for envinfopy 0.2.0
File Size Uploaded
envinfopy-0.2.0.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for envinfopy 0.2.0
File Interpreter ABI Platform
envinfopy-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / envinfopy-0.2.0.tar.gz

Download URL envinfopy-0.2.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4b73ea5f1400cb3c3d9ed388d15cda2e8ee87d2ad6025ecceba8f54d27cfbf8c
BLAKE2b-256 checksum
How to use checksums
968d2b11b36e391923a1a16a88a0921cab7bc4f1e43cbeb07c8819fe371b7dd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / envinfopy-0.2.0-py3-none-any.whl

Download URL envinfopy-0.2.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fadd5a689da41221eca7a9b8031b92af7517f496ae6114f15e223c75cac0adac
BLAKE2b-256 checksum
How to use checksums
464a9bc95c866ec8bfe37196f334217f8f2b3f3cfbef008d8d9e67a27538daeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page