Skip to main content

Generate perfect Vyper code headers every time.

Project description

vheader

Generate perfect Vyper code headers every time, pythonically.

[!NOTE]
There is also a version of this in rust.

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

Project details


Download files

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

Source Distribution

vheader-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

vheader-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file vheader-0.1.0.tar.gz.

File metadata

  • Download URL: vheader-0.1.0.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

Hashes for vheader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e1f7838bb8c0cc7602a493240077a5d0b04bdc7dacf0f9b71517ba6bc673cc5
MD5 5d7c0d6c5718e77af0262c61d8d61af0
BLAKE2b-256 52aa3ef91cdb499a5ea166e784729370206309b7831a2c680a1ded6c03879a7d

See more details on using hashes here.

File details

Details for the file vheader-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vheader-0.1.0-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

Hashes for vheader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b52b42f17b8b110a4f686b7af7fe6d9654368b37c039af2453ba4ed429293a25
MD5 2362d67d61a0f776bbbe1c7d518a4f50
BLAKE2b-256 59ada20714c548f53b6e9feb50cc0b30269c0d6bcb5d07daa3dd89f7ecf28b32

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