No project description provided
Project description
Rython
Use text_signature to create python type
/// Formats the sum of two numbers as string.
#[pyfunction(text_signature = "(a: int, b: int) -> str")]
fn sum_as_string(a: usize, b: usize) -> PyResult<String> {
Ok((a + b).to_string())
}
Add .pyi file using mypy
Keep in mind that is only works for #[pyfunction]
. Macros like #[pyclass]
and #[pymethods]
are still unsupported.
For autocompletion .pyi in bash type:
stubgen -p rython.calc -o python
It will produce calc.pyi with:
def sum_as_string(a: int, b: int) -> str: ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rython_calc-0.4.3.tar.gz
(11.5 kB
view hashes)
Built Distributions
Close
Hashes for rython_calc-0.4.3-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0267cad6e2975b872cab41397dc0554f0aada9e124860105f1fc28782f0f34bb |
|
MD5 | 0d89cb82b04f14b60e081e830e448bed |
|
BLAKE2b-256 | 820991f13145bbe7afed4cccae9e2fb90b7d4936303ca482407eab31613180e6 |
Close
Hashes for rython_calc-0.4.3-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2477bb583462e0eb73e4a2530fd264c67d11d873b8ab3d9b5b2d954d2158d015 |
|
MD5 | aa743109a4b5efd3b2a93136f7e81368 |
|
BLAKE2b-256 | 0351668068cb534aec3f2328ab8dcbe958fe33393af0b87f0606a605af34758e |
Close
Hashes for rython_calc-0.4.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55335e09cd5e66eba591928ca2edcde8afd3aa01d529bef628d4956c140df8ef |
|
MD5 | 16097e6c48338bf15d6b6b177f45ac04 |
|
BLAKE2b-256 | af0a5e8ba11e9c7d91e796958a1e53e5fded6dc8c71936691f2f668cf0eca2b9 |
Close
Hashes for rython_calc-0.4.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46a66b07c7ec31ee44ea0b2b2960de0d01b3884250a553232b64206160adda79 |
|
MD5 | 61e0903b4fae465d5a198d5cdc6ebd64 |
|
BLAKE2b-256 | 774d3302c2c46205536399ffd4edb478c888e60b6a2908ddab9035a34f78673a |
Close
Hashes for rython_calc-0.4.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 555340c268423655b64cbc4074cae1e9a122d34390eb07ed69baed4f960d3f8f |
|
MD5 | cee33f0c9f0c31400585f727496968df |
|
BLAKE2b-256 | 39634cff903a21184a7bf69dadc0714b131db7fd9bb639caed8bd36d3af458e7 |
Close
Hashes for rython_calc-0.4.3-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d6de617d10bfb3520e7854377cb54f92ca035380057b3873e3ed6e1609e3371 |
|
MD5 | 0fc0597f5b0d4b51fb05f4fcbfe7a0aa |
|
BLAKE2b-256 | f0d863a0cdcb36449f2ec3180fa6f9eb7248fb400a9b12007bb2913a79f25ea1 |
Close
Hashes for rython_calc-0.4.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f926a85ea30d807d2d08c0a3a5c5fad233dafaf49a8b7f9d5b3164751b345c1a |
|
MD5 | 623be2879bcb8de97948d78895c8b4ba |
|
BLAKE2b-256 | 347253f9702bac1c4010bdd41f4868953cc74e937331f6dd62ebe389f5145931 |
Close
Hashes for rython_calc-0.4.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fda85d36f8d3baca392e31a9688981bb196420e82d743a2b8b043918184ee0d |
|
MD5 | d5793686da9764ce0c25a102f4a1dab9 |
|
BLAKE2b-256 | 0698789747c94384aa6de3807f03ac8b653bb571b852cd1d65d35375dd819882 |
Close
Hashes for rython_calc-0.4.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 332f10922bc649abadce9ed54af3885aa10ee52c917b56e026fc9b9f58ada739 |
|
MD5 | ad423cbc797b5cf9380a1fac6298a833 |
|
BLAKE2b-256 | d8d7fc47a9fdb7ce11c0ff54dbcea3529a10927dbb1014dadaca5ea0673977b0 |
Close
Hashes for rython_calc-0.4.3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f373b90c36e66eab28340cb1004330f08f58c65b91f25170faefc690ca8649e9 |
|
MD5 | f24654b7966ffb96a78d53eb3a3eea79 |
|
BLAKE2b-256 | 865b8458f7d0b6f1cef09251fab1d7468f7ea00e4a426faa29079bc8f665d2e8 |