Title: How to make 3rd party rust types available to the VM · Issue #5459 · RustPython/RustPython · GitHub
Open Graph Title: How to make 3rd party rust types available to the VM · Issue #5459 · RustPython/RustPython
X Title: How to make 3rd party rust types available to the VM · Issue #5459 · RustPython/RustPython
Description: Summary I'm building a little data processing application, in which I'd like be able to add data transformations that are written in python but will be executed by rust under the hood. Eventually I want provide a polars dataframe, and mo...
Open Graph Description: Summary I'm building a little data processing application, in which I'd like be able to add data transformations that are written in python but will be executed by rust under the hood. Eventually I...
X Description: Summary I'm building a little data processing application, in which I'd like be able to add data transformations that are written in python but will be executed by rust under the hood. Even...
Opengraph URL: https://github.com/RustPython/RustPython/issues/5459
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to make 3rd party rust types available to the VM","articleBody":"## Summary\r\n\r\nI'm building a little data processing application, in which I'd like be able to add data transformations that are written in python but will be executed by rust under the hood. Eventually I want provide a polars dataframe, and modify it via python.\r\n\r\nSomething like this:\r\n\r\n```\r\ndef transform(df):\r\n df = df.with_columns(\r\n (pl.col(\"x\") * 2).alias(\"twice\")\r\n ).collect()\r\n \r\n return df\r\n```\r\n\r\nI'm already hitting a road block getting the dataframe in and out of the VM. I tried to build on top of the `call_between_rust_and_python` example, but it only works with types that are already supported by rustpython or on simple types that are composed of supported types.\r\n\r\nI'd be very happy if you'd nugde me into the right direction, given if it's actually possible what I'm trying to achieve.\r\n","author":{"url":"https://github.com/directindex","@type":"Person","name":"directindex"},"datePublished":"2024-12-17T16:39:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/5459/RustPython/issues/5459"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1f64c2f0-2d59-5257-e596-ebd2cd1d64c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CA2:114C7E:605B1C:88C571:696F8691 |
| html-safe-nonce | 6e2d17bd24ae9e5ad185379c239a638df4eb63384522bece9ff9607a9402b5b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0EyOjExNEM3RTo2MDVCMUM6ODhDNTcxOjY5NkY4NjkxIiwidmlzaXRvcl9pZCI6IjgxNjEyMTIwMTQ4NDQxNTE0NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 78566e6f70a8f7fcb83bcb74c678fab3833eedc25fcf0098e9700b5c89ab0345 |
| hovercard-subject-tag | issue:2745444053 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RustPython/RustPython/5459/issue_layout |
| twitter:image | https://opengraph.githubassets.com/35724ede8d6678129fab54bbaea3b68aa9c9694304421fe9db1e4265a1dbacd3/RustPython/RustPython/issues/5459 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/35724ede8d6678129fab54bbaea3b68aa9c9694304421fe9db1e4265a1dbacd3/RustPython/RustPython/issues/5459 |
| og:image:alt | Summary I'm building a little data processing application, in which I'd like be able to add data transformations that are written in python but will be executed by rust under the hood. Eventually I... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | directindex |
| hostname | github.com |
| expected-hostname | github.com |
| None | c1b02b4e3a8edff2fe0bd71b0551654be66034591c7ab65aaaaf61a6096862d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a1073fcc34432ac33cec03885ff2d96920686de |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width