Yes, this is something that I think autowrap should be able to do. If
I'm not mistaken the main thing that is missing is the ability to name
the module what you want. Or is there more that cannot be done from
autowrap itself?

You can already do it if you subclass the code wrapper class manually
and set the proper attributes, but it's not straightforward.

Aaron Meurer

On Fri, Jul 6, 2018 at 3:39 PM, Guru Subramani
<[email protected]> wrote:
> Hi Sympy!
> I made an easy to use python module wrapper for auto-code generation similar
> to sympy's autowrap except the created module can be used later.
>
> You can find it here:
> https://github.com/gsubramani/symcymod
>
>
> The module allows adding multiple compiled expressions to a single cython
> module. This cython module can be imported at a later time and used like a
> normal module. The entire process is automated.
>
> All the user needs to do is call a function called create_module() and pass
> a tuple list of the expression names, sympy expressions and argument lists.
> A module is created in a user specified directory. In a different python
> program, the user can import the created module and have access to the fast
> compiled version of the expressions.
>
> It makes speeding up python code super easy and portable, the user doesn't
> have to involve them self with codegen etc.. It is similar to autowrap
> except the created module can be used at a later time.
>
> Please look at the end of symcymod.py file for an example.
>
> I think this is something a lot of people would like using but I don't know
> how to share the code. Maybe this could be integrated into the autowrap
> module. Please let me know what you think.
>
>
> Thanks!
> Guru
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/0d2588d4-e06c-461f-be3c-ffad49c85000%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6L%3D_SftR3MdHZNYJ7qjSLHDtCPZk8YEFri-9xxTSxGLcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to