PyHowDoI
A utility for quick command-line guidance from ChatGPT.
⚠️ Use at your own risk. Carefully inspect all commands before running them. ⚠️
For example:
howdoi get a list of all files modified in the last five minute
Response:
find . -type f -mmin -5
No more trips to StackOverflow or man pages for simple things!
Installation
pip install pyhowdoi
Usage
You must set the environment variable OPENAPI_API_KEY in order for this utility
to function. You will be charged for any usage of the API.
howdoi <any question here>
howdoi spin up a simple HTTP server
howdoi check how much disk space is currently being used
howdoi make a cron string that runs every wednesday at 5 am
howdoi find all lines that have TODO in them
If you wish to use special characters that might normally be interpreted by the shell, you can wrap your question in quotes:
howdoi 'replace all instance of $ with € in a file'
By default, the model gpt-3.5-turbo is used, but you can override this by
setting the OPENAI_CHAT_MODEL environment variable:
export OPENAI_CHAT_MODEL=gpt-4
howdoi check that the hash of a file is correct
See https://platform.openai.com/docs/models/overview for a full list of available models.
You can also pipe in standard input to provide additional context for the utility. For instance, you could pass in the help message or man page for a command:
curl -h 2>&1 | howdoi use curl to upload a file
Metadata
Release files for pyhowdoi 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyhowdoi-1.2.1.tar.gz | 3.0 kB | Without provenance | Details for pyhowdoi-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyhowdoi-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for pyhowdoi-1.2.1-py3-none-any.whl |
Total release size: 6.9 kB
Release files / pyhowdoi-1.2.1.tar.gz
| Download URL | pyhowdoi-1.2.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de7dbf615cd8b5cb9402004e9679e52288e93942216ecaafeb7d2b83b7a46920
|
|
BLAKE2b-256 checksum How to use checksums |
c4bb96bc22cee41c55e20055ec150611b6454580bf4316b9e15b189875c12384
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Darwin/22.5.0
|
Release files / pyhowdoi-1.2.1-py3-none-any.whl
| Download URL | pyhowdoi-1.2.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6195cf7f77c5ce325301a52bbff42581b258654d81f546f58e953f22af3d2d75
|
|
BLAKE2b-256 checksum How to use checksums |
8768573b49d5377e839af2a789c5a7a83db9f29bf88a65e29722e139f680e08b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Darwin/22.5.0
|
Security for pyhowdoi 1.2.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.