PPshare


NamePPshare JSON
Version 1.1.6 PyPI version JSON
download
home_pagehttps://github.com/zemengchuan/PPshare
SummaryPPshare is an application platform that focuses on scientific research data for a long time. The platform provides direct crawling from the Internet, community collection, and team collation of data and storage into a database. It provides users with high-quality scientific research data through strict control over data quality.
upload_time2023-04-06 06:58:22
maintainer
docs_urlNone
authorzemengchuan
requires_python>=3.7
licenseMIT
keywords macro webcrawler data
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PPshare使用指南(by@zemengchuan)

GitHub链接:http://github.com/zemengchuan/PPshare

## 用途:

PPshare是一个长期专注于科研数据的应用性平台,平台提供直接从互联网爬取、社区采取和团队整理数据并将其存入数据库,通过对数据质量进行严格控制为用户提供高质量科研数据。目前数据多而繁杂,先发出来给各位使用,日后继续完善,筛选数据,优化代码,数据的质量会越来越好,请各位多多关注,予以反馈。本包的一大创新在于设计了简化用户学习成本的函数提供使用。

## 安装方式

```python
pip install PPshare
```

## 方法库

## 快速获取目标数据的函数

<mark> **注意:本方法在PPshare中暂时被弃用,移动至PPtool工具中。PPshare将专注于数据接口集成** </mark>

方法:get_methods

描述:通过向get_methods方法传入目标数据的描述,可以快速获取你想要的函数名称,并且可以自行选择需要匹配的函数数量,以及是否需要调用

输入参数:

| 名称     | 类型 | 描述                |
| -------- | ---- | ------------------- |
| describe | str  | 目标数据的名字      |
| limit    | int  | 匹配的数量,默认为5 |


输出参数:返回你选择的数据,如果不需要调用则返回0


方法示例:

```python
import PPshare as pp

method = pp.get_methods("商品价格指数", limit=5)
print(method)
```

结果示例:

```
您希望获取的数据有可能是:(注:这里的待选项数量由limit参数控制)
0       " 企业商品价格指数",其调用方法为China_CGPI
1       "商品零售价格指数",其调用方法为China_retail_price_index
2       "大宗商品价格",其调用方法为China_commodity_price_index
3       "建材价格指数",其调用方法为China_construction_price_index
4       "工业品出厂价格指数",其调用方法为China_PPI

请选择需要调用的函数编号:(不调用则填quit)0

您选择的数据是:“ 企业商品价格指数”
[            月份  总指数-指数值  总指数-同比增长  总指数-环比增长  农产品-指数值   农产品-同比增长  农产品-环比增长  矿产品-指数值   矿产品-同比增长  矿产品-环比增长  煤油电-指数值   煤油电-同比增长  煤油电-环
比增长
0    2023年01月份    100.4 -5.639098  0.199601    107.4  15.359828  2.972196    101.9  -1.450677 -0.682261    105.8 -10.338983 -2.037037
1    2022年12月份    100.2 -6.790698  0.400802    104.3   7.971014 -0.666667    102.6  -1.535509  1.886792    108.0  -8.937605  0.185529
2    2022年11月份     99.8 -9.107468 -0.299700    105.0   6.924644 -6.166220    100.7  -6.586271  2.650357    107.8 -12.924071 -0.185185
3    2022年10月份    100.1 -9.082652 -1.573255    111.9  21.498371 -0.089286     98.1 -11.938959  2.400835    108.0 -12.691997 -3.398927
4    2022年09月份    101.7 -5.746061 -0.586510    112.0  24.721604  4.089219     95.8 -16.258741  3.232759    111.8  -4.931973 -2.272727
..         ...      ...       ...       ...      ...        ...       ...      ...        ...       ...      ...        ...       ...
195  2006年10月份    103.8  2.843555  0.193050    106.3   8.116355  0.662879    116.0   9.002067  2.112676    107.0 -11.401838 -2.550091
196  2006年09月份    103.6  2.139406  0.680272    105.6   6.850147  1.343570    113.6   4.048361  0.709220    109.8  -9.495549 -0.453309
197  2006年08月份    102.9  0.753941  0.390244    104.2   4.628979  1.165049    112.8   1.768315  0.624442    110.3 -10.492575 -0.090580
198  2006年07月份    102.5 -0.214174  0.195503    103.0   2.763644  0.292113    112.1   1.009191  1.356239    110.4 -10.657927  0.272480
199  2006年06月份    102.3 -0.689253  0.788177    102.7   2.392822  1.884921    110.6  -0.887176  1.589051    110.1 -10.356619 -0.524033

[200 rows x 13 columns]]
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zemengchuan/PPshare",
    "name": "PPshare",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "macro,webcrawler,data",
    "author": "zemengchuan",
    "author_email": "zemengchuan@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a6/fd/ac09f1685dd6f41a94f0b162ded691bceb5dcff54e8b72681e255a3ca653/PPshare-1.1.6.tar.gz",
    "platform": null,
    "description": "# PPshare\u4f7f\u7528\u6307\u5357\uff08by@zemengchuan\uff09\r\n\r\nGitHub\u94fe\u63a5\uff1ahttp://github.com/zemengchuan/PPshare\r\n\r\n## \u7528\u9014\uff1a\r\n\r\nPPshare\u662f\u4e00\u4e2a\u957f\u671f\u4e13\u6ce8\u4e8e\u79d1\u7814\u6570\u636e\u7684\u5e94\u7528\u6027\u5e73\u53f0\uff0c\u5e73\u53f0\u63d0\u4f9b\u76f4\u63a5\u4ece\u4e92\u8054\u7f51\u722c\u53d6\u3001\u793e\u533a\u91c7\u53d6\u548c\u56e2\u961f\u6574\u7406\u6570\u636e\u5e76\u5c06\u5176\u5b58\u5165\u6570\u636e\u5e93\uff0c\u901a\u8fc7\u5bf9\u6570\u636e\u8d28\u91cf\u8fdb\u884c\u4e25\u683c\u63a7\u5236\u4e3a\u7528\u6237\u63d0\u4f9b\u9ad8\u8d28\u91cf\u79d1\u7814\u6570\u636e\u3002\u76ee\u524d\u6570\u636e\u591a\u800c\u7e41\u6742\uff0c\u5148\u53d1\u51fa\u6765\u7ed9\u5404\u4f4d\u4f7f\u7528\uff0c\u65e5\u540e\u7ee7\u7eed\u5b8c\u5584\uff0c\u7b5b\u9009\u6570\u636e\uff0c\u4f18\u5316\u4ee3\u7801\uff0c\u6570\u636e\u7684\u8d28\u91cf\u4f1a\u8d8a\u6765\u8d8a\u597d\uff0c\u8bf7\u5404\u4f4d\u591a\u591a\u5173\u6ce8\uff0c\u4e88\u4ee5\u53cd\u9988\u3002\u672c\u5305\u7684\u4e00\u5927\u521b\u65b0\u5728\u4e8e\u8bbe\u8ba1\u4e86\u7b80\u5316\u7528\u6237\u5b66\u4e60\u6210\u672c\u7684\u51fd\u6570\u63d0\u4f9b\u4f7f\u7528\u3002\r\n\r\n## \u5b89\u88c5\u65b9\u5f0f\r\n\r\n```python\r\npip install PPshare\r\n```\r\n\r\n## \u65b9\u6cd5\u5e93\r\n\r\n## \u5feb\u901f\u83b7\u53d6\u76ee\u6807\u6570\u636e\u7684\u51fd\u6570\r\n\r\n<mark>\u00a0**\u6ce8\u610f\uff1a\u672c\u65b9\u6cd5\u5728PPshare\u4e2d\u6682\u65f6\u88ab\u5f03\u7528\uff0c\u79fb\u52a8\u81f3PPtool\u5de5\u5177\u4e2d\u3002PPshare\u5c06\u4e13\u6ce8\u4e8e\u6570\u636e\u63a5\u53e3\u96c6\u6210**\u00a0</mark>\r\n\r\n\u65b9\u6cd5\uff1aget_methods\r\n\r\n\u63cf\u8ff0\uff1a\u901a\u8fc7\u5411get_methods\u65b9\u6cd5\u4f20\u5165\u76ee\u6807\u6570\u636e\u7684\u63cf\u8ff0\uff0c\u53ef\u4ee5\u5feb\u901f\u83b7\u53d6\u4f60\u60f3\u8981\u7684\u51fd\u6570\u540d\u79f0\uff0c\u5e76\u4e14\u53ef\u4ee5\u81ea\u884c\u9009\u62e9\u9700\u8981\u5339\u914d\u7684\u51fd\u6570\u6570\u91cf\uff0c\u4ee5\u53ca\u662f\u5426\u9700\u8981\u8c03\u7528\r\n\r\n\u8f93\u5165\u53c2\u6570\uff1a\r\n\r\n| \u540d\u79f0     | \u7c7b\u578b | \u63cf\u8ff0                |\r\n| -------- | ---- | ------------------- |\r\n| describe | str  | \u76ee\u6807\u6570\u636e\u7684\u540d\u5b57      |\r\n| limit    | int  | \u5339\u914d\u7684\u6570\u91cf\uff0c\u9ed8\u8ba4\u4e3a5 |\r\n\r\n\r\n\u8f93\u51fa\u53c2\u6570\uff1a\u8fd4\u56de\u4f60\u9009\u62e9\u7684\u6570\u636e\uff0c\u5982\u679c\u4e0d\u9700\u8981\u8c03\u7528\u5219\u8fd4\u56de0\r\n\r\n\r\n\u65b9\u6cd5\u793a\u4f8b\uff1a\r\n\r\n```python\r\nimport PPshare as pp\r\n\r\nmethod = pp.get_methods(\"\u5546\u54c1\u4ef7\u683c\u6307\u6570\", limit=5)\r\nprint(method)\r\n```\r\n\r\n\u7ed3\u679c\u793a\u4f8b\uff1a\r\n\r\n```\r\n\u60a8\u5e0c\u671b\u83b7\u53d6\u7684\u6570\u636e\u6709\u53ef\u80fd\u662f:(\u6ce8\uff1a\u8fd9\u91cc\u7684\u5f85\u9009\u9879\u6570\u91cf\u7531limit\u53c2\u6570\u63a7\u5236)\r\n0       \" \u4f01\u4e1a\u5546\u54c1\u4ef7\u683c\u6307\u6570\"\uff0c\u5176\u8c03\u7528\u65b9\u6cd5\u4e3aChina_CGPI\r\n1       \"\u5546\u54c1\u96f6\u552e\u4ef7\u683c\u6307\u6570\"\uff0c\u5176\u8c03\u7528\u65b9\u6cd5\u4e3aChina_retail_price_index\r\n2       \"\u5927\u5b97\u5546\u54c1\u4ef7\u683c\"\uff0c\u5176\u8c03\u7528\u65b9\u6cd5\u4e3aChina_commodity_price_index\r\n3       \"\u5efa\u6750\u4ef7\u683c\u6307\u6570\"\uff0c\u5176\u8c03\u7528\u65b9\u6cd5\u4e3aChina_construction_price_index\r\n4       \"\u5de5\u4e1a\u54c1\u51fa\u5382\u4ef7\u683c\u6307\u6570\"\uff0c\u5176\u8c03\u7528\u65b9\u6cd5\u4e3aChina_PPI\r\n\r\n\u8bf7\u9009\u62e9\u9700\u8981\u8c03\u7528\u7684\u51fd\u6570\u7f16\u53f7\uff1a\uff08\u4e0d\u8c03\u7528\u5219\u586bquit\uff090\r\n\r\n\u60a8\u9009\u62e9\u7684\u6570\u636e\u662f:\u201c \u4f01\u4e1a\u5546\u54c1\u4ef7\u683c\u6307\u6570\u201d\r\n[            \u6708\u4efd  \u603b\u6307\u6570-\u6307\u6570\u503c  \u603b\u6307\u6570-\u540c\u6bd4\u589e\u957f  \u603b\u6307\u6570-\u73af\u6bd4\u589e\u957f  \u519c\u4ea7\u54c1-\u6307\u6570\u503c   \u519c\u4ea7\u54c1-\u540c\u6bd4\u589e\u957f  \u519c\u4ea7\u54c1-\u73af\u6bd4\u589e\u957f  \u77ff\u4ea7\u54c1-\u6307\u6570\u503c   \u77ff\u4ea7\u54c1-\u540c\u6bd4\u589e\u957f  \u77ff\u4ea7\u54c1-\u73af\u6bd4\u589e\u957f  \u7164\u6cb9\u7535-\u6307\u6570\u503c   \u7164\u6cb9\u7535-\u540c\u6bd4\u589e\u957f  \u7164\u6cb9\u7535-\u73af\r\n\u6bd4\u589e\u957f\r\n0    2023\u5e7401\u6708\u4efd    100.4 -5.639098  0.199601    107.4  15.359828  2.972196    101.9  -1.450677 -0.682261    105.8 -10.338983 -2.037037\r\n1    2022\u5e7412\u6708\u4efd    100.2 -6.790698  0.400802    104.3   7.971014 -0.666667    102.6  -1.535509  1.886792    108.0  -8.937605  0.185529\r\n2    2022\u5e7411\u6708\u4efd     99.8 -9.107468 -0.299700    105.0   6.924644 -6.166220    100.7  -6.586271  2.650357    107.8 -12.924071 -0.185185\r\n3    2022\u5e7410\u6708\u4efd    100.1 -9.082652 -1.573255    111.9  21.498371 -0.089286     98.1 -11.938959  2.400835    108.0 -12.691997 -3.398927\r\n4    2022\u5e7409\u6708\u4efd    101.7 -5.746061 -0.586510    112.0  24.721604  4.089219     95.8 -16.258741  3.232759    111.8  -4.931973 -2.272727\r\n..         ...      ...       ...       ...      ...        ...       ...      ...        ...       ...      ...        ...       ...\r\n195  2006\u5e7410\u6708\u4efd    103.8  2.843555  0.193050    106.3   8.116355  0.662879    116.0   9.002067  2.112676    107.0 -11.401838 -2.550091\r\n196  2006\u5e7409\u6708\u4efd    103.6  2.139406  0.680272    105.6   6.850147  1.343570    113.6   4.048361  0.709220    109.8  -9.495549 -0.453309\r\n197  2006\u5e7408\u6708\u4efd    102.9  0.753941  0.390244    104.2   4.628979  1.165049    112.8   1.768315  0.624442    110.3 -10.492575 -0.090580\r\n198  2006\u5e7407\u6708\u4efd    102.5 -0.214174  0.195503    103.0   2.763644  0.292113    112.1   1.009191  1.356239    110.4 -10.657927  0.272480\r\n199  2006\u5e7406\u6708\u4efd    102.3 -0.689253  0.788177    102.7   2.392822  1.884921    110.6  -0.887176  1.589051    110.1 -10.356619 -0.524033\r\n\r\n[200 rows x 13 columns]]\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "PPshare is an application platform that focuses on scientific research data for a long time. The platform provides direct crawling from the Internet, community collection, and team collation of data and storage into a database. It provides users with high-quality scientific research data through strict control over data quality.",
    "version": "1.1.6",
    "split_keywords": [
        "macro",
        "webcrawler",
        "data"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a7922ba9abf3d1b0a85d6ebec04d0fbec990b8b9c175e96b4769fad524902d6",
                "md5": "a9b077fb0fd74c0af8bcc7ecede7e431",
                "sha256": "729409e98e714f01b4eb36f708d496b38626b527f6c5561fb2ecddaa8b150181"
            },
            "downloads": -1,
            "filename": "PPshare-1.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a9b077fb0fd74c0af8bcc7ecede7e431",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 992802,
            "upload_time": "2023-04-06T06:58:14",
            "upload_time_iso_8601": "2023-04-06T06:58:14.287676Z",
            "url": "https://files.pythonhosted.org/packages/3a/79/22ba9abf3d1b0a85d6ebec04d0fbec990b8b9c175e96b4769fad524902d6/PPshare-1.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a6fdac09f1685dd6f41a94f0b162ded691bceb5dcff54e8b72681e255a3ca653",
                "md5": "7f69d40591107c1e0b2c4226a83c027e",
                "sha256": "44766b5c840e406a6ac0bb8d867ea1f876dff351c335ab23ceaeb303c13fe915"
            },
            "downloads": -1,
            "filename": "PPshare-1.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "7f69d40591107c1e0b2c4226a83c027e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 805444,
            "upload_time": "2023-04-06T06:58:22",
            "upload_time_iso_8601": "2023-04-06T06:58:22.618630Z",
            "url": "https://files.pythonhosted.org/packages/a6/fd/ac09f1685dd6f41a94f0b162ded691bceb5dcff54e8b72681e255a3ca653/PPshare-1.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-06 06:58:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "zemengchuan",
    "github_project": "PPshare",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ppshare"
}
        
Elapsed time: 1.36559s