New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-python

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-python

A wrapper for pythonxyc, a compiler that translates Python(-like) code into React JSX

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
8
700%
Maintainers
1
Weekly downloads
 
Created
Source

react-python

An npm wrapper for pythonxyc, a compiler that translates Python(-like) code into React JSX.

Compiler

pythonxyc (compiler) source code can be found at: https://github.com/ngwattcos/pythonxyc

Installation

npm install --save-dev react-python

Usage

Setup

Run the startup tool, which sets up references to input and output source directories: pyxyc-setupor react-python-setup

Transpiling

Compile all files in the input source directory: pyxycor react-python-compile

Alternatively, open a running instance of a file watcher on the input directory: pyxyc-watch-and-compile or react-python-watch-and-compile

Usage ideas!

  • Integrate react-python's command-line callspyxyc-setup and pyxyc into your app's workflow by referencing them in your package's scripts.
  • While your app is running (and gets dynamically hot-reloaded; i.e., running through yarn startor npm start), you can run pyxyc-watch-and-compileor react-python-watch-and-compile, where changes to the JavaScript source directories will trigger a reload

Keywords

python

FAQs

Package last updated on 16 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts