{ "info": { "author": "playSCforever", "author_email": "playSCforever@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "## Usage\n\npip3 install chinatime\n\nor\n\npip3 install chinatime -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com\n\n## \u529f\u80fd\u8bf4\u660e\n\u7528\u4e8e\u53e5\u5b50\u4e2d\u65f6\u95f4\u8bcd\u7684\u62bd\u53d6\u548c\u8f6c\u6362 \n\u8be6\u60c5\u8bf7\u89c1test.py\n\n res = tn.parse(target=u'\u8fc7\u5341\u5206\u949f') # target\u4e3a\u5f85\u5206\u6790\u8bed\u53e5\uff0ctimeBase\u4e3a\u57fa\u51c6\u65f6\u95f4\u9ed8\u8ba4\u662f\u5f53\u524d\u65f6\u95f4\n print(res)\n res = tn.parse(target=u'2013\u5e74\u4e8c\u6708\u4e8c\u5341\u516b\u65e5\u4e0b\u5348\u56db\u70b9\u4e09\u5341\u5206\u4e8c\u5341\u4e5d\u79d2', timeBase='2013-02-28 16:30:29') # target\u4e3a\u5f85\u5206\u6790\u8bed\u53e5\uff0ctimeBase\u4e3a\u57fa\u51c6\u65f6\u95f4\u9ed8\u8ba4\u662f\u5f53\u524d\u65f6\u95f4\n print(res)\n res = tn.parse(target=u'\u6211\u9700\u8981\u5927\u698233\u59292\u5206\u949f\u56db\u79d2', timeBase='2013-02-28 16:30:29') # target\u4e3a\u5f85\u5206\u6790\u8bed\u53e5\uff0ctimeBase\u4e3a\u57fa\u51c6\u65f6\u95f4\u9ed8\u8ba4\u662f\u5f53\u524d\u65f6\u95f4\n print(res)\n res = tn.parse(target=u'\u4eca\u5e74\u513f\u7ae5\u8282\u665a\u4e0a\u4e5d\u70b9\u4e00\u523b') # target\u4e3a\u5f85\u5206\u6790\u8bed\u53e5\uff0ctimeBase\u4e3a\u57fa\u51c6\u65f6\u95f4\u9ed8\u8ba4\u662f\u5f53\u524d\u65f6\u95f4\n print(res)\n res = tn.parse(target=u'2\u4e2a\u5c0f\u65f6\u4ee5\u524d') # target\u4e3a\u5f85\u5206\u6790\u8bed\u53e5\uff0ctimeBase\u4e3a\u57fa\u51c6\u65f6\u95f4\u9ed8\u8ba4\u662f\u5f53\u524d\u65f6\u95f4\n print(res)\n res = tn.parse(target=u'\u665a\u4e0a8\u70b9\u5230\u4e0a\u534810\u70b9\u4e4b\u95f4') # target\u4e3a\u5f85\u5206\u6790\u8bed\u53e5\uff0ctimeBase\u4e3a\u57fa\u51c6\u65f6\u95f4\u9ed8\u8ba4\u662f\u5f53\u524d\u65f6\u95f4\n print(res)\n\u8fd4\u56de\u7ed3\u679c\uff1a\n\n {\"timedelta\": \"0 days, 0:10:00\", \"type\": \"timedelta\"}\n {\"timestamp\": \"2013-02-28 16:30:29\", \"type\": \"timestamp\"}\n {\"type\": \"timedelta\", \"timedelta\": {\"year\": 0, \"month\": 1, \"day\": 3, \"hour\": 0, \"minute\": 2, \"second\": 4}}\n {\"timestamp\": \"2018-06-01 21:15:00\", \"type\": \"timestamp\"}\n {\"error\": \"no time pattern could be extracted.\"}\n {\"type\": \"timespan\", \"timespan\": [\"2018-03-16 20:00:00\", \"2018-03-16 10:00:00\"]}\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/playscforever/Time_NLP", "keywords": "time,nlp,china", "license": "MIT Licence", "maintainer": "", "maintainer_email": "", "name": "chinatime", "package_url": "https://pypi.org/project/chinatime/", "platform": "any", "project_url": "https://pypi.org/project/chinatime/", "project_urls": { "Homepage": "https://github.com/playscforever/Time_NLP" }, "release_url": "https://pypi.org/project/chinatime/1.0.6/", "requires_dist": [ "regex (>=2017)", "arrow (>=0.10)" ], "requires_python": "", "summary": "Analysis China time in sentence", "version": "1.0.6" }, "last_serial": 4471666, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "00a76a318a6257a523a74ebfc76bdcf3", "sha256": "5e33061200c0929367ee288397fe428a883ceb70a9a96dd6e4c256444eae71eb" }, "downloads": -1, "filename": "chinatime-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "00a76a318a6257a523a74ebfc76bdcf3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17667, "upload_time": "2018-11-09T04:56:46", "url": "https://files.pythonhosted.org/packages/9d/94/23b7bedbf3d4dc4e00d625e47b03e50f8028ded20649cf82c4b37ba64b1d/chinatime-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ae80c3e02f1d91bba4a821da2ecf25e6", "sha256": "deb993a38a29d524ecc796d70d5f0021641945feea467310011ee0fc3f1c94f4" }, "downloads": -1, "filename": "chinatime-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ae80c3e02f1d91bba4a821da2ecf25e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15608, "upload_time": "2018-11-09T04:56:48", "url": "https://files.pythonhosted.org/packages/84/9d/21129d38d589c3865a0a1d3d4e0989b503b5b76fe887255047c73a8a2560/chinatime-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "4d8536648bda9434e7b08eba875bcf78", "sha256": "8c453d9855a192668676f219685d81b1fc5760c30250b299231b2a6653e0ea9a" }, "downloads": -1, "filename": "chinatime-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4d8536648bda9434e7b08eba875bcf78", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17668, "upload_time": "2018-11-09T05:04:56", "url": "https://files.pythonhosted.org/packages/66/96/2e49449f1caf2e37ead6effabaa824b8cbb012a98be6057a38a1d681b823/chinatime-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c29870eaddd4781497c66e5d2946fdb", "sha256": "c7e4f6443569da1f4b7a1373adc2d11d12f550020e8716da71eee73295d9f6b5" }, "downloads": -1, "filename": "chinatime-1.0.1.tar.gz", "has_sig": false, "md5_digest": "9c29870eaddd4781497c66e5d2946fdb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15615, "upload_time": "2018-11-09T05:04:58", "url": "https://files.pythonhosted.org/packages/65/51/27abb71535160b6123fcd178422dd20afd151c86d68a6f3345732ddd23d4/chinatime-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "e31b7c7ca41181c3526c0401e69357e8", "sha256": "2eb2e697c676705e27195038aa4b7375214eb39f6640418705b7d9e06cd0829a" }, "downloads": -1, "filename": "chinatime-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e31b7c7ca41181c3526c0401e69357e8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 38283, "upload_time": "2018-11-09T05:15:52", "url": "https://files.pythonhosted.org/packages/f8/fa/be5330cd0f07212c62c700d79ce1144df4dfafa5e6f1cee3b03cfac0a1d7/chinatime-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7264b810db1acfe62ce9db3d8043a38", "sha256": "ed2e46c450521c6d89a613a73dbe82f135a278a1c220a4f4e22653c6c40abd50" }, "downloads": -1, "filename": "chinatime-1.0.2.tar.gz", "has_sig": false, "md5_digest": "c7264b810db1acfe62ce9db3d8043a38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16225, "upload_time": "2018-11-09T05:15:54", "url": "https://files.pythonhosted.org/packages/60/52/4337da714c97cd0180b143f26fc7485b98d1d3db0257e5508a2654a54156/chinatime-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "9da3927ff655e7dd685c6a6668e40897", "sha256": "a8769acf65940ddc6fd81b27fb6d7b5cfc756bafa25621eac2aad6ae7586071b" }, "downloads": -1, "filename": "chinatime-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "9da3927ff655e7dd685c6a6668e40897", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 38315, "upload_time": "2018-11-09T05:18:14", "url": "https://files.pythonhosted.org/packages/eb/59/00387dfd905c56ed7b7b8e2aa974c97d9de4732def13c549c04a8577b3a6/chinatime-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "099fd52a840440930a35b0dd50d174d4", "sha256": "a656d71b432504d054db9d4acb95d47c5135272267e083a003c8e5e01c98239b" }, "downloads": -1, "filename": "chinatime-1.0.3.tar.gz", "has_sig": false, "md5_digest": "099fd52a840440930a35b0dd50d174d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16300, "upload_time": "2018-11-09T05:18:15", "url": "https://files.pythonhosted.org/packages/93/ef/e504c68660e5da5df2a8d40b730678cc8c7759df55b2318a6a696bb64dc8/chinatime-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "b59e6c2cb8f3c0dfffca71c0b966ea15", "sha256": "49faed4a8b882de09a6f1426a7ae0d4faccf99686e80d5a0b787bd055ed72716" }, "downloads": -1, "filename": "chinatime-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "b59e6c2cb8f3c0dfffca71c0b966ea15", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 38292, "upload_time": "2018-11-09T05:39:31", "url": "https://files.pythonhosted.org/packages/33/7a/d2e32d55e589d8d293bdc49da40f49c14a2dbe98630741a7a584e8292f8c/chinatime-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d88e6b260b71e28468b118f548bf614", "sha256": "c6094c4f4181c0e85ec13368bcf6399cfd9841d141c0e969e7bfdb7c3190bfcd" }, "downloads": -1, "filename": "chinatime-1.0.4.tar.gz", "has_sig": false, "md5_digest": "2d88e6b260b71e28468b118f548bf614", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16237, "upload_time": "2018-11-09T05:39:33", "url": "https://files.pythonhosted.org/packages/58/75/5c43f74dbe6b9ab56730f7e650f5e8586aaeab35f5ceef8afcf4a94646b3/chinatime-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "801a39a0a523572d49da317d5680a443", "sha256": "11a9615ba56eb9c0adb1e3bad49f4d170555f3bdce5e72b90e8e7451fcec4f15" }, "downloads": -1, "filename": "chinatime-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "801a39a0a523572d49da317d5680a443", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 38292, "upload_time": "2018-11-09T05:45:52", "url": "https://files.pythonhosted.org/packages/9f/dc/084b0209d1ddf2a5e8f4f54c2bf4dea11e9907a8383979cabbacf3c709dd/chinatime-1.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2982006d999b22737e923c975c39f682", "sha256": "36be8f558459b6ba88dcb23f08b8c8d1e00a2014d7ccb12405613fffd513222e" }, "downloads": -1, "filename": "chinatime-1.0.5.tar.gz", "has_sig": false, "md5_digest": "2982006d999b22737e923c975c39f682", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16235, "upload_time": "2018-11-09T05:45:53", "url": "https://files.pythonhosted.org/packages/a1/a9/4a70404936f28483f76a38d66fc3deef7002ff7028bbb432a658c93d300b/chinatime-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "86919a53a18a00edb6b98b8ede88c8e5", "sha256": "adcf729b5565e9e70182aa4f126e3a384946f2244ff0b7119d81fdec43b816bc" }, "downloads": -1, "filename": "chinatime-1.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "86919a53a18a00edb6b98b8ede88c8e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 38539, "upload_time": "2018-11-10T03:48:56", "url": "https://files.pythonhosted.org/packages/d0/04/1cfd8617429e4c123a452e2ba3b3144e7df09021397a88329b092c93d787/chinatime-1.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f688e07de1d6f48057193c79916a03f2", "sha256": "0265e1a9753b0301f9c0707e24e010ec251332dd076a2367f3c95b022ec14fd2" }, "downloads": -1, "filename": "chinatime-1.0.6.tar.gz", "has_sig": false, "md5_digest": "f688e07de1d6f48057193c79916a03f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16528, "upload_time": "2018-11-10T03:48:57", "url": "https://files.pythonhosted.org/packages/81/6d/c6303db01cc5abf94b8d087bf29f74773f8316dcb0df979894868dc53567/chinatime-1.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "86919a53a18a00edb6b98b8ede88c8e5", "sha256": "adcf729b5565e9e70182aa4f126e3a384946f2244ff0b7119d81fdec43b816bc" }, "downloads": -1, "filename": "chinatime-1.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "86919a53a18a00edb6b98b8ede88c8e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 38539, "upload_time": "2018-11-10T03:48:56", "url": "https://files.pythonhosted.org/packages/d0/04/1cfd8617429e4c123a452e2ba3b3144e7df09021397a88329b092c93d787/chinatime-1.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f688e07de1d6f48057193c79916a03f2", "sha256": "0265e1a9753b0301f9c0707e24e010ec251332dd076a2367f3c95b022ec14fd2" }, "downloads": -1, "filename": "chinatime-1.0.6.tar.gz", "has_sig": false, "md5_digest": "f688e07de1d6f48057193c79916a03f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16528, "upload_time": "2018-11-10T03:48:57", "url": "https://files.pythonhosted.org/packages/81/6d/c6303db01cc5abf94b8d087bf29f74773f8316dcb0df979894868dc53567/chinatime-1.0.6.tar.gz" } ] }