{ "info": { "author": "Dom Williams", "author_email": "nlf@domwillia.ms", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3" ], "description": "nlatest-files\n=======================\n\nEasy symlinks to the n latest files in a directory.\n\nThis is an tool that maintains symlinks to the n most recently modified\nfiles in a given directory.\n\n----\n\nInstallation\n-------------\n.. code-block:: \n\n pip install nlatest-files\n\nUsage\n------\n.. code-block:: \n\n usage: nlf [-h] [-c FILE] [--save] -d DIR [-n COUNT] [-u] [-s DIR] [-f FORMAT]\n [-q]\n\n Args that start with '--' (eg. --save) can also be set in a config file\n (/home/user/.config/nlatest-files.conf or specified via -c). Config file syntax\n allows: key=value, flag=true, stuff=[a,b,c] (for details, see syntax at\n https://goo.gl/R74nmi). If an arg is specified in more than one place, then\n commandline values override config file values which override defaults.\n\n optional arguments:\n -h, --help show this help message and exit\n -c FILE, --config FILE\n config file location, defaults to\n $XDG_CONFIG_HOME/nlatest-files.conf\n --save if specified, saves the current configuration to the\n config file\n -d DIR, --dir DIR the source directory\n -n COUNT, --count COUNT\n the latest n files to list, defaults to 1\n -u, --update-symlinks\n create symlinks to the latest n files\n -s DIR, --symlink-dir DIR\n the directory to create symlinks in, defaults to the\n source directory\n -f FORMAT, --symlink-format FORMAT\n the format string for symlinks, where {n} is the order\n index, defaults to 'latest-{n}'. {n} must be included,\n unless n = 1\n -q, --quiet if specified, no status messages will be printed to\n stderr\n\nExamples\n--------\n.. code-block:: \n\n nlf -d ~/invoices -n 5\n Prints the latest 5 files in ~/invoices\n\n nlf -d ~/invoices -n 5 --save\n Saves the given parameters to the default config file\n\n nlf -d ~/invoices -n 5 -c ~/dotfiles/myconfig.conf --save\n Saves the given parameters to the specified config file\n\n nlf\n Prints the latest 5 again, using from the config file\n\n nlf -u -s $HOME/screenshots -f \"screeny-{n}\" -n 3\n Creates symlinks to the top 3 latest screenshots in ~/screenshots\n\n scrot -e 'mv -u $f ~/screenshots/ && nlf -u -d ~/screenshots -n 1 -f \"latest\"'\n Takes a screenshot with scrot, moves it to ~/screenshots, then\n adds a `symlink ~/screenshots/latest` pointing to it\n\n\nFuture Plans\n-------------\n- [ ] file extension specifier\n- [ ] multiple source directories\n- [ ] recursive search\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/DomWilliams0/nlatest-files", "keywords": "files directory versioning latest screenshot", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "nlatest-files", "package_url": "https://pypi.org/project/nlatest-files/", "platform": "", "project_url": "https://pypi.org/project/nlatest-files/", "project_urls": { "Homepage": "https://github.com/DomWilliams0/nlatest-files" }, "release_url": "https://pypi.org/project/nlatest-files/1.0.2/", "requires_dist": [ "ConfigArgParse (==0.12.0)" ], "requires_python": "", "summary": "Easy symlinks to the n latest files in a directory", "version": "1.0.2" }, "last_serial": 2954755, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "99ad2814abe531c5afa8e66c7af5b477", "sha256": "8d15fa6bc94d733b413919dfd464bc696f4f789d649364b2f6db72ad029f8407" }, "downloads": -1, "filename": "nlatest_files-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "99ad2814abe531c5afa8e66c7af5b477", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7033, "upload_time": "2017-06-16T14:54:52", "url": "https://files.pythonhosted.org/packages/4e/93/1cc9736b125e74ca819ef253a54c5ec316c50266c06dcc4ca44c9a14dd00/nlatest_files-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06db07e34c6397466539f8926e956345", "sha256": "12d3e7d238ad23009b424ebbc0292c732509ab24924e820ad6c271ab6a7ba83e" }, "downloads": -1, "filename": "nlatest-files-1.0.2.tar.gz", "has_sig": true, "md5_digest": "06db07e34c6397466539f8926e956345", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5684, "upload_time": "2017-06-16T14:54:55", "url": "https://files.pythonhosted.org/packages/0e/31/bd131b9b819d00ca4dd4140b15d62b55dbf81176695a9d61d1890bb5e87d/nlatest-files-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "99ad2814abe531c5afa8e66c7af5b477", "sha256": "8d15fa6bc94d733b413919dfd464bc696f4f789d649364b2f6db72ad029f8407" }, "downloads": -1, "filename": "nlatest_files-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "99ad2814abe531c5afa8e66c7af5b477", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7033, "upload_time": "2017-06-16T14:54:52", "url": "https://files.pythonhosted.org/packages/4e/93/1cc9736b125e74ca819ef253a54c5ec316c50266c06dcc4ca44c9a14dd00/nlatest_files-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06db07e34c6397466539f8926e956345", "sha256": "12d3e7d238ad23009b424ebbc0292c732509ab24924e820ad6c271ab6a7ba83e" }, "downloads": -1, "filename": "nlatest-files-1.0.2.tar.gz", "has_sig": true, "md5_digest": "06db07e34c6397466539f8926e956345", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5684, "upload_time": "2017-06-16T14:54:55", "url": "https://files.pythonhosted.org/packages/0e/31/bd131b9b819d00ca4dd4140b15d62b55dbf81176695a9d61d1890bb5e87d/nlatest-files-1.0.2.tar.gz" } ] }