Skip to main content

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

Project description

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


Under heavy development, use it at your own risk.


pip install pyscheme

You may try latest features by using git to install

pip install git+

Implemented Features

  • lexical scope let
  • begin, if, lambda, define... etc.
  • REPL, with clojure like *1 *2 *3 result cache support
  • install_func to extend scheme language, you can use it to install global variables too.
  • single line comment, start with ;
  • more


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

def str_format_func(f, *args):
    return f % args
sc.install_func("format", str_format_func)


  • macros system
  • better token parsing
    • string support whitespace ( )
    • quote ' support
  • clojure pipeline operator support
  • module system
  • more

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyscheme-0.0.3-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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