Skip to main content

Create VSCode Extensions with python

Project description

vscode-ext

This package allows you to create vscode extensions with python. It does so by transpiling the python code to javascript.

Installation

Stable version:

pip install vscode-ext

Working version:

pip install git+https://github.com/CodeWithSwastik/vscode-ext

Tutorial

Comming soon!

Example Extension

import vscode

ext = vscode.Extension(name = "testpy", display_name = "Test Py", version = "0.0.1")

@ext.event
def on_activate():
    return f"The Extension '{ext.name}' has started"

@ext.command()
def hello_world():
    return vscode.window.show_info_message(f'Hello World from {ext.name}')

vscode.build(ext)

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

vscode-ext-1.0.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file vscode-ext-1.0.1.tar.gz.

File metadata

  • Download URL: vscode-ext-1.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.10.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.8.5

File hashes

Hashes for vscode-ext-1.0.1.tar.gz
Algorithm Hash digest
SHA256 af57b3dc8f9ba54a8ea9ff1cb225ffc3f2b26e1b4b56d63b29ebd2e516d2e067
MD5 123e20565095068baf33dda295975202
BLAKE2b-256 b1f367f7798f395388cb64f692a3ac5672a1429411eaf526b47a11060829cf86

See more details on using hashes here.

Supported by

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