pyd generate tools
Project description
pyd_tpl
Python的C接口模板,安装后使用如下的命令进行生成:
pyd_tpl module_name=Animal --class-name=Cat
将生成Animal模块Cat类
changelog
- 2022-01-15
新增函数get_c_string
(将Python转换为char)和print
(打印PyObject*)
调用方法如下:
PyObject* a;
if (!PyArg_ParseTuple(args,"U",&a))
{
return NULL;
}
const char* s = get_c_string(a);
printf("%s\n", s);
print(a);
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyd_tpl-0.1.3.tar.gz
(4.6 kB
view details)
Built Distributions
pyd_tpl-0.1.3-py3-none-any.whl
(12.8 kB
view details)
pyd_tpl-0.1.3-py2-none-any.whl
(12.8 kB
view details)
File details
Details for the file pyd_tpl-0.1.3.tar.gz
.
File metadata
- Download URL: pyd_tpl-0.1.3.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80b3a52f4e3b94c7fc18b56d3a60f8e05b25f7ace598c9ecc4639fd06c30a99d |
|
MD5 | 2ddeb67bfe3d7b68bcf36eedebe58b96 |
|
BLAKE2b-256 | 529b1c74c87f404909ab4e38877f46da03099ac5ece09285519904acb57b6d83 |
File details
Details for the file pyd_tpl-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pyd_tpl-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 740e68052ec0a3e43579f7cf545b2b1fb1f93cf39964e58158cb01cb43e99e55 |
|
MD5 | bf01f54af8d7c79cc6b25477a71651fc |
|
BLAKE2b-256 | f579e98dcc63af081d13a7cafd1e9c7c3981356b19e0fb2f9d85e174884ea260 |
File details
Details for the file pyd_tpl-0.1.3-py2-none-any.whl
.
File metadata
- Download URL: pyd_tpl-0.1.3-py2-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3ca128906ae51263b2c7e054a6fe9f39ff37adc2f6dedab4b56aebd7995f563 |
|
MD5 | 2b123f2fe54a8f4d8b25db3a2a06200f |
|
BLAKE2b-256 | 351be10baad8a2dc8bead19fce7caf31d72b32312243dbcd7aaa64bc9519cfa1 |