Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyscheme

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyscheme

Minimal r7rs scheme python library with a repl. Made by gpt, maintained by a human.

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

Minimal r7rs scheme python library with a repl. Made by gpt, maintained by human.

Install

pip install pyscheme

Using git to install latest version

pip install git+https://github.com/dbian/pyscheme.git

Implemented Features

  • Lexical scope let,let*. begin, if, lambda, define... etc.
  • Full featured Macro system, which means you can use _ and ... in pattern matching rules.
  • easy template interpolation support aka.: "`", "," and ",@"
  • Use put to extend scheme language easily with power python ecosystem.
  • Single line comment, start with ;
  • REPL, with clojure like *1 *2 *3 result cache support
  • More to discover...

Usage

import pyscheme
env = pyscheme.new_env()
assert pyscheme.run("(define bb (lambda (aa) (+ aa 2))) (bb 5)", env) == 7

def str_format_func(f, *args):
    return f % args
pyscheme.put("format", str_format_func)
pyscheme.put("variable", 123)

Future plans

  • macros system add hygienic variable support
  • more standard functions
  • call/cc
  • module system
  • more

FAQs


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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc