{ "info": { "author": "G.J.J. van den Burg", "author_email": "gertjanvandenburg@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "Fast File Count in Python\n=========================\n\nThis is a Python package to quickly count the number of files and directories\nin a given path. Optionally you can count recursively and include hidden files\nin the total.\n\nThis package is a wrapper around ``fast-file-count`` by `Christopher Schultz\n`_. Credit for the initial version \nbelongs to Christopher Schultz, I wrote the Python wrapper, converted the \nWindows code to use builtin functionality, and packaged it up. See the file\n``src/c_count.c`` for the other contributors and see the commit history of\nthis package on GitHub for my exact changes.\n\nInstallation\n------------\n\nInstallation can be done easily with pip:\n\n.. code:: bash\n\n pip install ffcount\n\n\nUsage\n-----\n\nThere is a command line application called ``ffcount`` and the package can be \nused from Python.\n\nThe Python package ``ffcount`` has only one function: ``ffcount``. This \nfunction returns a tuple ``(number_of_files, number_of_dirs)`` and it can be \nused as follows:\n\n.. code:: python\n\n >>> from ffcount import ffcount\n\n # count everything under the current path\n >>> ffcount()\n (521013, 43012)\n\n # count without hidden files\n >>> ffcount(hidden=False)\n (234012, 12082)\n\n # use a different path\n >>> ffcount('/tmp')\n (81, 10)\n\n\nNote that ``ffcount`` counts links as files, even if they point to a \ndirectory. In some cases, this explains the discrepancy with other ways of \ncounting.\n\nDocs\n----\n\nThe full documentation of the ``ffcount`` function is:\n\n.. code:: python\n\n def ffcount(path='.', recursive=True, hidden=True, quiet=True):\n \"\"\"Fast file count\n\n Count the files and directories in the given path. By default the function\n is recursive and does not print errors. This function uses the C\n implementation by Christopher Schultz.\n\n Parameters\n ----------\n path : str or bytes\n The path where to start counting. By default the current working\n directory will be used.\n\n recursive : bool\n To recurse or not to recurse. If recurse is False, only the files and\n directories in the directory given by ``path`` will be counted.\n\n hidden : bool\n Count hidden files and directories as well.\n\n quiet : bool\n Don't print errors to the screen. If True, the function will fail \n quietly and not print any errors.\n\n Returns\n -------\n files_count : int\n Number of files counted.\n\n dir_count : int\n Number of directories counted.\n\n \"\"\"\n\nThis can of course also be obtained by running ``help(ffcount)`` in Python.\n\nLicense\n-------\n\nThe original C code by Christopher Schultz was licensed under the Apache\nLicense 2.0. This package is therefore licensed under this license as well.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/GjjvdBurg/ffcount", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "ffcount", "package_url": "https://pypi.org/project/ffcount/", "platform": "", "project_url": "https://pypi.org/project/ffcount/", "project_urls": { "Homepage": "https://github.com/GjjvdBurg/ffcount" }, "release_url": "https://pypi.org/project/ffcount/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "Fast File Count: Recursively count files and directories very quickly", "version": "0.1.5" }, "last_serial": 4674255, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b48e3c5d43265aecf318e6756317db81", "sha256": "ba44362aa3adb224fd8e3eb4bc39589d1982d8d2d1a0c3c146343592cf9ec80f" }, "downloads": -1, "filename": "ffcount-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b48e3c5d43265aecf318e6756317db81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9528, "upload_time": "2018-03-23T21:17:58", "url": "https://files.pythonhosted.org/packages/46/dd/69e86925beab0f99d6d58f2d6a6cde8196e9ed1ece5fab82949a3c2b3b1b/ffcount-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bfbf23ca431ef1d63ae85cb90b492f9e", "sha256": "1eac6206cf48b61f5195f7241ead4a43cb0ea73bde965f9ce58ac8aef733fe39" }, "downloads": -1, "filename": "ffcount-0.1.1.tar.gz", "has_sig": false, "md5_digest": "bfbf23ca431ef1d63ae85cb90b492f9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28789, "upload_time": "2018-03-23T21:48:54", "url": "https://files.pythonhosted.org/packages/87/94/be31dab1ccfbdaa414599c0148761806426fdb6a914e586192beb9881aed/ffcount-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "55fa143464a63be7dc28486df56b7232", "sha256": "cf5861d6267ccc08007d7a84187f9d8cadd1e22a955be0b670ced00682bff75e" }, "downloads": -1, "filename": "ffcount-0.1.2.tar.gz", "has_sig": false, "md5_digest": "55fa143464a63be7dc28486df56b7232", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29483, "upload_time": "2018-03-23T21:53:04", "url": "https://files.pythonhosted.org/packages/0c/71/90e53509d5dc327272ee7e40491e289af9279e0a09cbdb90ecf9a3fd7e58/ffcount-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "ccb98fa02903279c47cce04863c77541", "sha256": "69d868bc9878d693afdee7f9e0355adfa4ebfdcd647c92ab694173b1adc835c8" }, "downloads": -1, "filename": "ffcount-0.1.3.tar.gz", "has_sig": false, "md5_digest": "ccb98fa02903279c47cce04863c77541", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29783, "upload_time": "2018-03-24T00:38:49", "url": "https://files.pythonhosted.org/packages/7c/ef/6e9e84cdc101c769f06d3f5df533039d7cb5d856a5e554793c28a2df0161/ffcount-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "91fe980b716a434131dad3c55390830c", "sha256": "b5849ef8b3b484cb0f5856497e252f63dec68a2841db6cfb07456781bacb8f4b" }, "downloads": -1, "filename": "ffcount-0.1.4.tar.gz", "has_sig": false, "md5_digest": "91fe980b716a434131dad3c55390830c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30237, "upload_time": "2018-03-24T16:39:18", "url": "https://files.pythonhosted.org/packages/26/84/4fc150f365aebdf426984d03dd9b5231ed353c854c4dfd1aa80f13638edc/ffcount-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "9c961210104f6eab0df2e0afd72a1983", "sha256": "efe850311ac4509887f971a7eb40c91ace6eca0ee54221e3c7b5b708a4aac614" }, "downloads": -1, "filename": "ffcount-0.1.5.tar.gz", "has_sig": false, "md5_digest": "9c961210104f6eab0df2e0afd72a1983", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30971, "upload_time": "2019-01-08T20:44:05", "url": "https://files.pythonhosted.org/packages/e0/d3/cf32478236d4d3198ba831ff313527b1137ae313e14c325f55971b757e6f/ffcount-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c961210104f6eab0df2e0afd72a1983", "sha256": "efe850311ac4509887f971a7eb40c91ace6eca0ee54221e3c7b5b708a4aac614" }, "downloads": -1, "filename": "ffcount-0.1.5.tar.gz", "has_sig": false, "md5_digest": "9c961210104f6eab0df2e0afd72a1983", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30971, "upload_time": "2019-01-08T20:44:05", "url": "https://files.pythonhosted.org/packages/e0/d3/cf32478236d4d3198ba831ff313527b1137ae313e14c325f55971b757e6f/ffcount-0.1.5.tar.gz" } ] }