get-consecutive-filename


Nameget-consecutive-filename JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/get_consecutive_filename
SummaryNext consecutive filename in folder
upload_time2023-01-01 22:25:49
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords folder
VCS
bugtrack_url
requirements regex
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Next consecutive filename in folder 


```python
# Tested with:
# Python 3.9.13
# Windows 10

$pip install get-consecutive-filename

from get_consecutive_filename import get_free_filename
# What is it for?
# You have a folder "F:\testfiles" with 2 files "00000.txt", "00001.txt"
# and you want to get the next consecutive filename.

fname = get_free_filename(folder="f:\\testfiles", fileextension=".txt", leadingzeros=5)
print(fname)
# f:\testfiles\00002.txt
	
```





            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/get_consecutive_filename",
    "name": "get-consecutive-filename",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "folder",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/cd/f4/12d2c39b5dda7f2d7f4e9292c1ec9aa3f67b95883eb703c445dc4479cb98/get_consecutive_filename-0.10.tar.gz",
    "platform": null,
    "description": "\n# Next consecutive filename in folder \n\n\n```python\n# Tested with:\n# Python 3.9.13\n# Windows 10\n\n$pip install get-consecutive-filename\n\nfrom get_consecutive_filename import get_free_filename\n# What is it for?\n# You have a folder \"F:\\testfiles\" with 2 files \"00000.txt\", \"00001.txt\"\n# and you want to get the next consecutive filename.\n\nfname = get_free_filename(folder=\"f:\\\\testfiles\", fileextension=\".txt\", leadingzeros=5)\nprint(fname)\n# f:\\testfiles\\00002.txt\n\t\n```\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Next consecutive filename in folder",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/get_consecutive_filename"
    },
    "split_keywords": [
        "folder"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7a393ebef5da0d10db51e900086947f5c2e8c76ab1328f3429705aa6e04f70fb",
                "md5": "07ba9889e718ae9f346bae7b6a651ba0",
                "sha256": "b8f701c34bd697b69da2c038a833df271d3cdb16c5c7e10eefc3beaf85f93fdc"
            },
            "downloads": -1,
            "filename": "get_consecutive_filename-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "07ba9889e718ae9f346bae7b6a651ba0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4945,
            "upload_time": "2023-01-01T22:25:47",
            "upload_time_iso_8601": "2023-01-01T22:25:47.385009Z",
            "url": "https://files.pythonhosted.org/packages/7a/39/3ebef5da0d10db51e900086947f5c2e8c76ab1328f3429705aa6e04f70fb/get_consecutive_filename-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cdf412d2c39b5dda7f2d7f4e9292c1ec9aa3f67b95883eb703c445dc4479cb98",
                "md5": "67b462c84db46db278f20977f69082ee",
                "sha256": "a8c07d94e6150ba0f35632c18861d5fb57c9ab80bf843be253734201b6b55575"
            },
            "downloads": -1,
            "filename": "get_consecutive_filename-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "67b462c84db46db278f20977f69082ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3499,
            "upload_time": "2023-01-01T22:25:49",
            "upload_time_iso_8601": "2023-01-01T22:25:49.001982Z",
            "url": "https://files.pythonhosted.org/packages/cd/f4/12d2c39b5dda7f2d7f4e9292c1ec9aa3f67b95883eb703c445dc4479cb98/get_consecutive_filename-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-01 22:25:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "get_consecutive_filename",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "regex",
            "specs": []
        }
    ],
    "lcname": "get-consecutive-filename"
}
        
Elapsed time: 0.68788s