Generate perfect Vyper code headers every time.
Project description
vheader
Generate perfect Vyper code headers every time, pythonically.
Getting Started
Prerequisites
You need to be able to install python packages, with either:
Or whatever you prefer to install python packages. We recommend using uv. You can head over to their docs, or try to run:
curl -LsSf https://astral.sh/uv/install.sh | sh
To install.
Installation
We prefer to install this into an insolated virtual environment with uv. You can do that as so:
uv tool install vheader
But you can also install any other way you please:
pip install vheader
pipx install vheader
Usage
vheader "external functions"
# ------------------------------------------------------------------
# EXTERNAL FUNCTIONS
# ------------------------------------------------------------------
It will also copy the header to your clipboard automatically.
With VSCode
Set your global tasks.json like so to add the command as task:
{
"version": "2.0.0",
"tasks": [
{
"label": "Generate Header",
"type": "shell",
"command": "vheader ${input:header}",
"presentation": {
"reveal": "never"
},
"problemMatcher": []
}
],
"inputs": [
{
"id": "header",
"description": "Header",
"type": "promptString"
}
]
}
To really speed-up your workflow, you can even add a keybind for the task in keybindings.json:
[
{
"key": "CMD+h",
"command": "workbench.action.tasks.runTask",
"args": "Generate Header"
}
]
This will copy the generated header to your clipboard.
Credits
- Inspired by transmissions11 headers
- Who was inspired by virtualjpeg's
blocky.
- Who was inspired by virtualjpeg's
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vheader-0.1.1.tar.gz.
File metadata
- Download URL: vheader-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfe789dc7a7f75bd7266516823cd2dbaf50e500b58baf1df55907a20459f2f47
|
|
| MD5 |
971fae67d13a4071598a7eebad229178
|
|
| BLAKE2b-256 |
cdd956617fe1486885b087d3385ac81032b766ee842a04c0266b6ad1ef550929
|
File details
Details for the file vheader-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vheader-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2022f15cc782cb634eef27dfd14a73ea777f6a68cc6c846dcdf79cebcca79005
|
|
| MD5 |
16e3a065c69e36e2a48b1e22672ec59d
|
|
| BLAKE2b-256 |
c9196e21e5bec604fc26205e26cce96722d04b8caaad515e12761838d2e70781
|