{ "info": { "author": "Thomas Weholt", "author_email": "thomas@weholt.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "twcommon - Commonly used snippets of code\n=========================================\n\n\nVersion : 0.1.0\nAuthor : Thomas Weholt \nLicense : GPL v3.0\n\nDescription:\n------------\nA collection snippets, pieces of code, stuff found on the net I use all the time. Will grow over time.\n\nCurrently it consists of:\n\n\nget_free_space(folder)\n----------------------\nPlatform independant way to calculate free space.\n\n\nCheckTargetFilename(filename)\n-----------------------------\nIt will check if there`s a filename by that name allready, \nand if so, return a new filename adding ~1 to the filename.\nFor example if you want to write to /tmp/test.txt but that file allready exists, \nusing CheckTargetFilename('/tmp/test.txt') will return /tmp/test~1.txt.\nIf /tmp/test~1.txt allready exists the returned file will be /tmp/test~2.txt. \n\n\nhumanize_bytes(size)\n--------------------\nConverts bytes to nearest kilobyte, megabyte, gigabyte etc.\n\n\ngetWords(text, ignore_words = [], minsize = 2)\n----------------------------------------------\nExtracts words from a piece of text.\nIt splits words based on spaces, change in char-case inside a text, numbers etc.\n\n\ngenerate_checksum(filename)\n---------------------------\nGenerates a hexdigest version of a SHA-512 checksum based on a file.\n\n\nparse_filedata(root_path, complete_filename)\n--------------------------------------------\nReturns a dictionary of filedata.\n\n\n\ndirwalk(dir, extensions_to_include = None)\n------------------------------------------\nDirectory walk, yielding filenames found. \nCan filter based on extensions.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "twcommon", "package_url": "https://pypi.org/project/twcommon/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/twcommon/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/twcommon/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "twcommon - Commonly used utils", "version": "0.1.0" }, "last_serial": 188380, "releases": { "0.1.0": [] }, "urls": [] }