Skip to main content

Testing Linting Read the Docs Codecov PyPi Package MIT License

https://app.codecov.io/gh/libranet/autoset-pwd

autoset-pwd

Automatically add the $PWD-directory to the PWD_DIR-environment variable via sitecustomize-entrypoint.

How does it work?

We register the autoset_pdw.entrypoint()-function to the sitecustomize-module that is installed by the sitecustomize-entrypoints-package.

The registered function will look up os.getcwd() in your current working directory and set it as PWD_DIR-environment variable.

Installation

Install via pip:

> bin/pip install autoset-pwd

Or add to your poetry-based project:

> poetry add autoset-pwd

Validate & Usage

After installing this package there is nothing left to do explicitly. We can validate that the plugin work correctly by starting a python-session and checking the PWD_DIR-environment-variable:

> bin/python
>>> import os
>>> print(os.getcwd())
    "<path-to-your-current-dir>"

print(os.getenv("PwD_DIR")) ""

Registered sitecustomize-entrypoint

The autoset_pwd-function is registered as a sitecustomize-entrypoint in our pyproject.toml_:

    [tool.poetry.plugins]
    [tool.poetry.plugins."sitecustomize"]
    autoset_pwd = "autoset_pwd:entrypoint"

Sitecustomize and all its registered entrypoints will be executed at the start of every python-process. For more information, please see sitecustomize-entrypoints

Compatibility

Python Version PyPI - Implementation

autoset-pwd works on Python 3.8+, including PyPy3. Tested until Python 3.11,

Notable dependencies

Metadata

Release files for autoset-pwd 0.1

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

Source distribution (sdist)

Source distribution for autoset-pwd 0.1
File Size Uploaded Provenance Actions
autoset_pwd-0.1.tar.gz 5.1 kB Without provenance Details for autoset_pwd-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autoset-pwd 0.1
File Interpreter ABI Platform Actions
autoset_pwd-0.1-py3-none-any.whl Python 3 none any Details for autoset_pwd-0.1-py3-none-any.whl

Total release size: 8.6 kB

Release files / autoset_pwd-0.1.tar.gz

Download URL autoset_pwd-0.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1030d2596057326a6b7d5ce9491516c6b9196a01035aa30808b3af50a56174b7
BLAKE2b-256 checksum
How to use checksums
4438c77f7acce819d24e92892e1cb86f80beb541eaaa50ea13a874a1186d368d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / autoset_pwd-0.1-py3-none-any.whl

Download URL autoset_pwd-0.1-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a5a4ff4c40adfbd6781b96b760341998fd497c403c2006e4bb60422fdd70f68
BLAKE2b-256 checksum
How to use checksums
384dafbdf1727baad73e5b7f2860994555fe74b3eefaaa6a2557367f38c9a4d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for autoset-pwd 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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