{ "info": { "author": "Hideo Hattori", "author_email": "hhatto.jp@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.7" ], "description": "# fpath [![](https://travis-ci.org/hhatto/fpath.svg?branch=master)](https://travis-ci.org/hhatto/fpath)\nPython's os.path module written in Rust\n\n\n## Requirements\n\n* Python3\n* [setuptools-rust](https://github.com/PyO3/setuptools-rust)\n* Nightly Rust\n\n```\n$ pip install setuptools_rust\n$ rustup default nightly\n```\n\n\n## Installation\n\n```\n$ pip install --upgrade git+https://github.com/hhatto/fpath\n```\n\n## Usage\n\n```python\n>>> import os.path\n>>> import fpath\n>>> os.path.abspath(\"path/to/file\")\n'/home/user/path/to/file'\n>>> fpath.abspath(\"path/to/file\")\n'/home/user/path/to/file'\n>>> import timeit\n>>> timeit.timeit('import os.path;os.path.abspath(\"path/to/file\")', number=1000*10)\n0.20972810598323122\n>>> timeit.timeit('import fpath;fpath.abspath(\"path/to/file\")', number=1000*10)\n0.12387347500771284\n>>>\n```\n\n## Benchmark\n\n```\nmethodname % real[p,r] user[p,r] sys[p,r] n\nabspath 45.53% 10.15s, 5.53s 6.86s, 2.81s 3.25s, 2.69s 100000\nbasename 53.52% 0.71s, 0.33s 0.70s, 0.33s 0.00s, 0.00s 100000\ndirname 57.43% 1.02s, 0.43s 1.01s, 0.43s 0.00s, 0.00s 100000\nisabs 56.55% 0.59s, 0.25s 0.59s, 0.25s 0.00s, 0.00s 100000\nislink 0.25% 3.78s, 3.77s 0.01s, 0.01s 0.01s, 0.00s 50\nexists 0.25% 3.78s, 3.77s 0.01s, 0.01s 0.01s, 0.00s 50\nlexists 0.70% 3.77s, 3.74s 0.01s, 0.01s 0.01s, 0.00s 50\nsplit 53.85% 1.17s, 0.54s 1.17s, 0.54s 0.00s, 0.00s 100000\nsplitext 62.02% 1.22s, 0.46s 1.21s, 0.46s 0.00s, 0.00s 100000\nrelpath 52.97% 0.02s, 0.01s 0.01s, 0.01s 0.01s, 0.00s 50\nnormpath 57.27% 2.02s, 0.86s 2.01s, 0.86s 0.00s, 0.00s 100000\nrealpath 1.08% 13.39s, 13.25s 0.05s, 0.02s 0.02s, 0.03s 50\njoin 23.01% 0.24s, 0.19s 0.24s, 0.18s 0.00s, 0.00s 100000\nexpanduser 67.45% 1.50s, 0.49s 1.49s, 0.48s 0.00s, 0.00s 100000\nexpandvars 61.37% 1.21s, 0.47s 1.19s, 0.47s 0.00s, 0.00s 100000\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/hhatto/fpath", "keywords": "path,rust", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fpath", "package_url": "https://pypi.org/project/fpath/", "platform": "", "project_url": "https://pypi.org/project/fpath/", "project_urls": { "Homepage": "https://github.com/hhatto/fpath" }, "release_url": "https://pypi.org/project/fpath/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "fast path manipulation module written in Rust", "version": "0.1.2" }, "last_serial": 4274935, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d0c555478ea1cbf3439acee215e0fe23", "sha256": "9131ca670a74550b34b13b2c9f4cc751403d2c77a572a2bc8698402fdd1cadeb" }, "downloads": -1, "filename": "fpath-0.1.0-cp27-cp27m-macosx_10_11_x86_64.whl", "has_sig": false, "md5_digest": "d0c555478ea1cbf3439acee215e0fe23", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 497232, "upload_time": "2018-09-15T12:29:17", "url": "https://files.pythonhosted.org/packages/52/01/ee797fcb9839aaf49cd6a87caa4fa448068e1f0e767077f3ab541beceb91/fpath-0.1.0-cp27-cp27m-macosx_10_11_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "0a756d4cb5999b2862fa3af4598a4690", "sha256": "aee6be296947ed339ed82a3eec10737e05513a68fca520f58bfa21a42794bd9b" }, "downloads": -1, "filename": "fpath-0.1.0-cp37-cp37m-macosx_10_11_x86_64.whl", "has_sig": false, "md5_digest": "0a756d4cb5999b2862fa3af4598a4690", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 492025, "upload_time": "2018-09-15T12:29:20", "url": "https://files.pythonhosted.org/packages/92/c3/404198d0cecb93c945ef0957375462cb8894bd380d5f5e21be670e5e484e/fpath-0.1.0-cp37-cp37m-macosx_10_11_x86_64.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "516030c1a4e5942c82698295d8ecdb95", "sha256": "00a78b653f435add0e781f46bfe394a32d3a4519226944a35b03002eba5edcf8" }, "downloads": -1, "filename": "fpath-0.1.1-cp27-cp27m-macosx_10_11_x86_64.whl", "has_sig": false, "md5_digest": "516030c1a4e5942c82698295d8ecdb95", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 497384, "upload_time": "2018-09-15T12:56:46", "url": "https://files.pythonhosted.org/packages/05/85/757327017bfab09eb1cb7dd978d5159763d92e61c1e4c6004dae1e1152eb/fpath-0.1.1-cp27-cp27m-macosx_10_11_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "f535b92f5a137baa90d9a6b470bc2adc", "sha256": "9d5d3ca8c5a6754875a2935581c5b97909216e2d0c34e1ea25fa56508ea604e0" }, "downloads": -1, "filename": "fpath-0.1.1-cp37-cp37m-macosx_10_11_x86_64.whl", "has_sig": false, "md5_digest": "f535b92f5a137baa90d9a6b470bc2adc", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 492161, "upload_time": "2018-09-15T12:56:48", "url": "https://files.pythonhosted.org/packages/c8/4b/0a5968deefdafa1ada5db5db2ed2415f6c75af377a6bfed4c09d3b00cd48/fpath-0.1.1-cp37-cp37m-macosx_10_11_x86_64.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c93d5b3bfecd78416f443ffad6f2812b", "sha256": "30acf4d04018afb816e45b590019e84417d6f60c06ca274071d687ffca795712" }, "downloads": -1, "filename": "fpath-0.1.2-cp27-cp27m-macosx_10_11_x86_64.whl", "has_sig": false, "md5_digest": "c93d5b3bfecd78416f443ffad6f2812b", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 497360, "upload_time": "2018-09-15T13:04:37", "url": "https://files.pythonhosted.org/packages/1f/ae/845e798b5f026f1ff5908160f5ee46163c7ec2a4dd480e738b79076334b7/fpath-0.1.2-cp27-cp27m-macosx_10_11_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "6e09ed15efc3cb8a82081d17c7ca1740", "sha256": "135ad59a7250587cebe2371b59a900c349f12b2a40a9cdd843f729d24cee8bcb" }, "downloads": -1, "filename": "fpath-0.1.2-cp37-cp37m-macosx_10_11_x86_64.whl", "has_sig": false, "md5_digest": "6e09ed15efc3cb8a82081d17c7ca1740", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 492297, "upload_time": "2018-09-15T13:04:38", "url": "https://files.pythonhosted.org/packages/7b/da/95a1aed12ae2e830a847bc283bf0dfb4b852e2afaba769b22f1e6d186a3f/fpath-0.1.2-cp37-cp37m-macosx_10_11_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "4288863ad433d643b9b6b3326548191d", "sha256": "2456e2c9ca3abe284158231dd387105216d7aac2883d696b87ad81739c9d8cf1" }, "downloads": -1, "filename": "fpath-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4288863ad433d643b9b6b3326548191d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2689, "upload_time": "2018-09-15T13:04:00", "url": "https://files.pythonhosted.org/packages/9f/f3/9d14d39ace69ca78e2923e7e03404b4e292298d2f574c3bddab12d888180/fpath-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c93d5b3bfecd78416f443ffad6f2812b", "sha256": "30acf4d04018afb816e45b590019e84417d6f60c06ca274071d687ffca795712" }, "downloads": -1, "filename": "fpath-0.1.2-cp27-cp27m-macosx_10_11_x86_64.whl", "has_sig": false, "md5_digest": "c93d5b3bfecd78416f443ffad6f2812b", "packagetype": "bdist_wheel", "python_version": "cp27", "requires_python": null, "size": 497360, "upload_time": "2018-09-15T13:04:37", "url": "https://files.pythonhosted.org/packages/1f/ae/845e798b5f026f1ff5908160f5ee46163c7ec2a4dd480e738b79076334b7/fpath-0.1.2-cp27-cp27m-macosx_10_11_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "6e09ed15efc3cb8a82081d17c7ca1740", "sha256": "135ad59a7250587cebe2371b59a900c349f12b2a40a9cdd843f729d24cee8bcb" }, "downloads": -1, "filename": "fpath-0.1.2-cp37-cp37m-macosx_10_11_x86_64.whl", "has_sig": false, "md5_digest": "6e09ed15efc3cb8a82081d17c7ca1740", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 492297, "upload_time": "2018-09-15T13:04:38", "url": "https://files.pythonhosted.org/packages/7b/da/95a1aed12ae2e830a847bc283bf0dfb4b852e2afaba769b22f1e6d186a3f/fpath-0.1.2-cp37-cp37m-macosx_10_11_x86_64.whl" }, { "comment_text": "", "digests": { "md5": "4288863ad433d643b9b6b3326548191d", "sha256": "2456e2c9ca3abe284158231dd387105216d7aac2883d696b87ad81739c9d8cf1" }, "downloads": -1, "filename": "fpath-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4288863ad433d643b9b6b3326548191d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2689, "upload_time": "2018-09-15T13:04:00", "url": "https://files.pythonhosted.org/packages/9f/f3/9d14d39ace69ca78e2923e7e03404b4e292298d2f574c3bddab12d888180/fpath-0.1.2.tar.gz" } ] }