The quick lambda compiler takes quick lambda objects from sidekick and compiles them either to Python, C or Javascript code. The goal is to improve interoperability between Python and other languages that can be useful in some common Python applications.
C compiler
The main goal of the C compiler is to help with scientific Python where simple and small functions can be defined both in Python and C. The goal is to prototype a function in a scientific computation in Python and then later convert it to C and have huge speed gains with very little effort.
The main use case is interoperability with Numpy, but it can be used as a simple code generator for other C applications.
>>> from sidekick import _
>>> from qlcompiler import c_compiler
>>> print(c_compiler.compile(_ + 2))
void function(double _) {
return _ + 2;
}
Javascript compiler
Similarly to C compiler, the Javascript compiler converts quick lambdas to Javascript code. It may be useful in web application in order to share code between the client and the server.
>>> from qlcompiler import js_compiler
>>> print(js_compiler.compile(_ + 2))
function(_) {
return _ + 2;
}
Metadata
Release files for qlcompiler 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qlcompiler-0.1.0.tar.gz | 4.7 kB | Without provenance | Details for qlcompiler-0.1.0.tar.gz |
Release files / qlcompiler-0.1.0.tar.gz
| Download URL | qlcompiler-0.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
224efcf90f257ed43cc280f60a3e5ef5f68ff02269256532d33edcb3d9a0e5e3
|
|
BLAKE2b-256 checksum How to use checksums |
515a35eedbc08f4c4c1fb5646e79b74f144ae64a6ced9dab3bced3995b0ff2cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for qlcompiler 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.