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.1.tar.gz
(11.1 kB
view hashes)
Built Distributions
Close
Hashes for rython_calc-0.4.1-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b641ab2ffe32e129eff8c2b07467b6a5f2d2230d8e1ea60dfd2de8dd59fe839 |
|
MD5 | 579a06cc66f040d0dd25864822e3e7f9 |
|
BLAKE2b-256 | a9230dccf23def7b21283208fa6adf48b12f509bf18c3a2db1140bbf61fa3f8e |
Close
Hashes for rython_calc-0.4.1-cp312-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a54cf2f07b26e329e208df9507894675c24203005b0a1e328fffc7481ea1a5d3 |
|
MD5 | e83ad363b25a5f6549672c0eb2da8d58 |
|
BLAKE2b-256 | 53c64f0a0b836624e376846d1dbb9fb3bf88c497cd90b525f7926384ed06077c |
Close
Hashes for rython_calc-0.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 282d9801c23ac487a25049972068307a5c23f82656bad4deb2b30c1f74a25e28 |
|
MD5 | a33e3abd499a3c761f56801b9b420a50 |
|
BLAKE2b-256 | 2c9d8fc8aeeb2c7446f07ad9f241493d8a506156471b01190f3bd13ad370432a |
Close
Hashes for rython_calc-0.4.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b68e060aa802be084ef610a3928a4a8cff6d0a0a76ebe26914c53b5fe873e5a1 |
|
MD5 | 1750603fbb2f16ab11395e8e8047ee32 |
|
BLAKE2b-256 | e09d4e6d04cd6711e2852e76b79ad1ad66381e2d0c26296ad924c52c43877112 |
Close
Hashes for rython_calc-0.4.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb07ed0d30c43a018e0e048d9d315028a5f175eff8a153c3fa109ff679bfd408 |
|
MD5 | 5db613613286b3c325de0c978fd3bf7b |
|
BLAKE2b-256 | 73a7198ba5e886b6acf1a711b3a4a5407fc79573d9588e3280bce33a00ecbcd4 |
Close
Hashes for rython_calc-0.4.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95aaa7e739a0ce6c0940e10fd39d8acf8745cd44bdb3ad0c3169e202a3cef30a |
|
MD5 | 5da05ebae66967fceebb27b43298509c |
|
BLAKE2b-256 | d5f35ca8862173165a9cc82eb9f6bbe1cbec665fc0c9f9bcf22e2d8f962f007b |
Close
Hashes for rython_calc-0.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6b20239b23d2efba38ddfc39eab73e1209215e786393395de5a451ab135b12 |
|
MD5 | 936b9a5c594b0137b1a5c7f232ac7211 |
|
BLAKE2b-256 | eea8f8172d770389d67af3124ce39f7a822b16255a4201ed0842b4bab83ce515 |
Close
Hashes for rython_calc-0.4.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 691cbdb8235a00d737f075290355277eb68296d4a2fa04ce16e375217aa39c90 |
|
MD5 | d31a4698c15be8562b47455e97c966ad |
|
BLAKE2b-256 | 545f7b75abdbb1e502a3f54def3472daa3dad9dc34402498c37d9b5bb983cd14 |
Close
Hashes for rython_calc-0.4.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae525a256be7653e09b7cafb21f2769270751196ed51defa7f46c1cf3748dfc |
|
MD5 | e7e06662455f94a049c5f2b3a65ca04b |
|
BLAKE2b-256 | 4a2c944240335e6ddfa3367e2434dfb94dbb8f5fe84c43876e72e86d61fafae3 |
Close
Hashes for rython_calc-0.4.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 391a5f45bd67d052ce7e91a0361675d393d6d9a89f8a729ba4667cdfc060c814 |
|
MD5 | 21318f8956959d6e221cc856ed6dc62f |
|
BLAKE2b-256 | 3236cbd899b92f10c1aed99259b4b3f8a7d7ddf9017768cacc8e427fc33de90f |