Skip to content
Inline::Python for Perl 6
Perl 6 C Other
Branch: master
Clone or download
niner Merge pull request #35 from KPCCoiL/convert_module_name
Convert Perl6 module name to Python name
Latest commit 7ceee0b Nov 15, 2018



Build Status


    use Inline::Python;
    my $py =;
    $'print "hello world"');

    # Or
    say EVAL('1+3', :lang<Python>);

    use string:from<Python>;
    say string::capwords('foo bar'); # prints "Foo Bar"


Module for executing Python code and accessing Python libraries from Perl 6.


You will need a Python built with the -fPIC option (position independent code). Most distributions build their Python that way. To do this with pyenv, use something like:

    PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 2.7.12
    pyenv global 2.7.12
    pyenv rehash

With a python in your path, then build:

    perl6 configure.pl6
    make test
    make install


Stefan Seifert

You can’t perform that action at this time.