https://github.com/purescript-python/purescripto
Loader and RTS for purescript-python
https://github.com/purescript-python/purescripto
compiler functional-programming purescript python
Last synced: 2 months ago
JSON representation
Loader and RTS for purescript-python
- Host: GitHub
- URL: https://github.com/purescript-python/purescripto
- Owner: purescript-python
- License: mit
- Created: 2020-02-15T13:47:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-10T11:51:00.000Z (almost 6 years ago)
- Last Synced: 2025-12-15T11:49:12.650Z (6 months ago)
- Topics: compiler, functional-programming, purescript, python
- Language: Python
- Size: 1.35 MB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# Purescripto
PureScript, Python, support since Python 3.5.
`pspy` is provided to meet the interface of `spago`.
This requires the installation of [PureScript Python](https://github.com/thautwarm/purescript-python).
## Basic Usage
```bash
sh> pspy --init # initialize PSPY configure. PLEASE do this after `spago init`.
sh> pspy # build a project
sh> pspy --run # run built python package
sh> pspy --update # build and update Python FFI dependencies
```
Default output python package is the name of your PureScript project, i.e.,
project `xxx` produces a python package `xxx` in in directory `xxx/xxx`,
and you can add a `xxx/setup.py` to package Python modules and publish it to PyPI.
## `pure-py.json`
This is the default configuration.
```python
{
"corefn-dir": "output",
"entry-module": "Main",
"index-mirror": "default",
"pspy-blueprint": "pspy-blueprint",
"spago": "spago"
}
```
It's designed for cases of making very complex extensions and very rare corner cases,
in most cases you're not expected to change it.
The details of `pure-py.json` will be added here when I have bandwidth.