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.0.tar.gz
(10.8 kB
view hashes)
Built Distributions
Close
Hashes for rython_calc-0.4.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cafb786e226845f890eafb7cb2a15f2eaf34ec2702abfa58088706db1f7f1f0 |
|
MD5 | 339188913980808c994b15aa10556ac0 |
|
BLAKE2b-256 | a76ac14fad16417789019f9b6a6b3365b8635cfff6f91a682ebbca3a859d3460 |
Close
Hashes for rython_calc-0.4.0-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3e2c7d7b13dbb7966e600115ec3cac38f75afc286865eb6345774a59508654b |
|
MD5 | 8cccd70bde15aa7cb2a29fa93242f6a1 |
|
BLAKE2b-256 | 9b381f1f7e2f0791b6b9449f453cc388577b28be35f21be40298432be27c58b4 |
Close
Hashes for rython_calc-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74e12a874ecea2519a9f68de56ac62741248033b21d1d4afc7d2e147d80f8f9c |
|
MD5 | 422497c6d69c4ce23a3d710e1cf3a614 |
|
BLAKE2b-256 | 3d7ef143f1e253194576d081ff44166ce879335fa97646ac53de4ff98ef58d5c |
Close
Hashes for rython_calc-0.4.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 544b7e0209c5ae2a8faede035aee10c976594dba3f2640303d5d8bfe4d8c21a6 |
|
MD5 | cb3e17ec11fb6cf84110bac010827049 |
|
BLAKE2b-256 | 11a1b5f2bcb6fc1262fb4db474b22c8c6fdbd77799914362606f18e170fbbfa9 |
Close
Hashes for rython_calc-0.4.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa78309dd0a1345be4696b49b9e0507cfa701ea990e27fbf50bf5d6e0275943f |
|
MD5 | 51bc902be43b2af5234e80bf955b08f6 |
|
BLAKE2b-256 | 8ead0d734a87f57c3f0244b2a41b77989e7ae0aea624fcb6498dfde93f14de2a |
Close
Hashes for rython_calc-0.4.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e809d268ee05b9a4c11241a6255823fad6b699794717d36220731973e0329c |
|
MD5 | 70754d622f0d865915c855799bde1282 |
|
BLAKE2b-256 | ad807aa3e613e27237e1d3562e0b87731eb3764b7a7263fd8b7a098954f2cc23 |
Close
Hashes for rython_calc-0.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21c337d599e0954e644c66a0829d5288704da4ffc1d68bdb5824a561532ab05a |
|
MD5 | ed2d706d22b42dfe0e2267de3332de3c |
|
BLAKE2b-256 | 3006600af19c209df5d0e617789216ca9e56fd43d3027c0969ac91de6436c007 |
Close
Hashes for rython_calc-0.4.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a4b0e6e2f4be76948a05cc74d7527866bcb1c997c0dcce529ec9d91f48dadd2 |
|
MD5 | e92abffbfec75a54f94dc6777ae91eae |
|
BLAKE2b-256 | 139bce681e969b0d7ab28ad696a6ed03744afc7855af46281817d411a01ef254 |
Close
Hashes for rython_calc-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8fbad1e6db07a5fa0b3051b5f0e5b911030cdf9b1597b392ccf26fc5faafe9b |
|
MD5 | fc56f82386ceb1545068053310287319 |
|
BLAKE2b-256 | 82d45ad6734bbb9ac7c7ea8cbfce1aa73dc1a076e197bbc7e82143db6566622a |
Close
Hashes for rython_calc-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1514e6acbe2f4438997cbaef0a9e7f16c5f6b1cd9b221503277f6f83dfe86899 |
|
MD5 | fe85fc61c07d41d89afa675685aa1e55 |
|
BLAKE2b-256 | 230e325b2fce3c6ff887b100751521e879ec3c5a16bf3a31cd82dd57d5fe5c70 |