Crates.io | pylib |
lib.rs | pylib |
version | 0.3.0 |
source | src |
created_at | 2021-05-29 01:17:43.120736 |
updated_at | 2021-06-18 20:04:04.552714 |
description | A library for python compatible APIs |
homepage | https://github.com/adsharma/py2many |
repository | https://github.com/adsharma/pylib-rs |
max_upload_size | |
id | 403351 |
size | 7,920 |
This is a companion library for py2many
There are several differences in the design of python stdlib and rust stdlib. Transpiling requires that we translate language constructs as well as APIs.
Sometimes the APIs don't translate well. Having these traits helps bridge the two. For example open("filename").read() on python returns a string. There is no equivalent function on rust. Generating idiomatic rust code adds complexity to the transpiler. pylib hopefully makes it possible with less complexity.