Skip to main content

Print environment variables and recursively list files on install.

Project description

env-printer

A tiny Python package that prints all environment variables and recursively lists all files starting at a specified root (default: /). It attempts to do this automatically right after installation and also provides a CLI to trigger it manually.

Important notes about post-install behavior

  • Modern Python packaging installs pre-built wheels, which typically do not execute arbitrary code at install time. This package wires a custom install command that runs after a legacy setup.py install. Depending on how the installer resolves your environment, the post-install may run during the build step rather than the final install step, or it may be skipped entirely when installing a wheel.
  • To force running the legacy installation flow locally, you can install from source with:
pip install --no-binary :all: --no-use-pep517 env-printer

Even if the post-install hook does not execute, you can still run the same behavior manually via the CLI (below).

CLI usage

After installing, you can run:

env-printer-run

Options:

  • --root <path>: change the starting directory for file listing (default: /).

What it does

  1. Prints all environment variables as KEY=VALUE.
  2. Recursively lists all files under the chosen root (default: /), skipping unreadable paths and not following symlinks.

Install locally from this repository

python setup.py sdist bdist_wheel
pip install dist/env-printer-*.whl

To exercise the legacy flow and run the post-install hook:

pip install --no-binary :all: --no-use-pep517 .

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

env_printer-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file env_printer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: env_printer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for env_printer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9b43dbc2b4a6c12ef46aaeb1c211c348f24f72a36dc53546a3fc4fe26d5fc6a
MD5 3c70e916a28de78f49b0dcb5d6ea7bbd
BLAKE2b-256 6bae124e800e51bce15bc9e4f866339d0e1fa50843cd1855cecca93ebfec794f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page