Skip to main content

No project description provided

Project description

esbuild-py

:warning: Work in progress

Setup

Create conda environment

conda create -n esbuild-py python=3.11

Build

conda activate esbuild-py
cd esbuild_py
go get github.com/keller-mark/esbuild-py
# go build -buildmode=c-shared -o _esbuild.so

Develop

Build python package and install in editable mode

python setup.py bdist_wheel
python setup.py sdist
pip install -e .
python
from esbuild_py import transform
jsx = """
import * as React from 'react'
import * as ReactDOM from 'react-dom'

ReactDOM.render(
    <h1>Hello, world!</h1>,
    document.getElementById('root')
);
"""
print(transform(jsx))

Resources

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

esbuild_py-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

esbuild_py-0.1.0-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.11 macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: esbuild_py-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.8

File hashes

Hashes for esbuild_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c6a7c51c3c7e64292f260681a4b2bd89d4d8f8fadd1e6001b4b0fa7b064a6d0d
MD5 b31723a2baa0a91fea343dac0bccb0ec
BLAKE2b-256 086070fa189962c75c4bf1e65464da0ce73c857628fe842a3d16f0436bc5e9d7

See more details on using hashes here.

File details

Details for the file esbuild_py-0.1.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for esbuild_py-0.1.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3d1b84e57c4c4cd65607021558720d16e95a5aac39f4f95a05f4421a303b9eb5
MD5 1a215e4e77d45bbc860cc8ce7978d507
BLAKE2b-256 50d45403925d0bdfca3bde48511914fb7ab120d015c99b353736487f39a0225d

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