getfilepath


Namegetfilepath JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttp://sribalaji.rf.gd
SummaryWe can use the GetFileAccess module to find out where the files are located in memory and return a file path for a given filename. We will also return a count of the given filename in memory.
upload_time2022-12-20 17:35:00
maintainer
docs_urlNone
authorBalaji Santhanam
requires_python>=3.9
licenseMIT
keywords file getfilepath get file path filesearch file search name
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Access With Name is a  file access module to find out where the files are located in memory and return a file path for a given filename. We will also return a count of the given filename in memory.

pip install getfilepath

Source code available at https://github.com/SriBalaji2112/GetFilePath/documentation

https://github.com/SriBalaji2112/GetFilePath

If you need help installing Python, visit https://installpython3.com/



.. Access With Name documentation master file, created by
   Balaji on Tuesday Dec 20 10.00.00 2022.
   You can adapt this file completely to your liking, but it should at least
   contain the root `GetFilePath` directive.

Welcome to getfilepath's documentation!
=====================================


We can use the fileaccess module to find out where the files are located in memory and return a file path for a given filename. We will also return a count of the given filename in memory.

This function will count how many given external files are in your memory and return it.
You must enter a drive name, which drive you want to search.
The API is designed to be simple. GetFilePath works on Windows, macOS, and Linux, and runs on Python 2 and 3.

To install with pip, run ``pip install GetFilePath``. See the :doc:`install` page for more details.

The source code is available on: https://github.com/SriBalaji2112/GetFilePath

GetFilePath has several features:

* It will return the file path for the given filename and file type.
* ExtensionsCounter counts the number of files in a specific extension.
* This service will return the full file path of a given file name.
* This function will count how many given external files are in your memory and return it.

Examples
========

.. code :: python

Example Testing Program and function definition

    >>> import GetFilePath

    >>> # You will have to input the name of a connected drive you want to search, or else it will take the default drive —> “C:\\“.
    >>> GetFilePath.driveName = "D://"

    >>> # We can use the fileaccess module to find out where the files are located in memory and return a file path for a given filename.
    >>> print(GetFilePath.returnFilepath("balaji"))

    >>> # This will return a count of parameter names with extensions.
    >>> print(GetFilePath.extensionCounter("balaji", ".png"))

    >>> # We will also return the number of the given filename in memory.
    >>> print(GetFilePath.fileNameCounter("balaji"))

    >>> # The file name in the given parameter extension is returned.
    >>> print(GetFilePath.nameWithExtension("balaji", ".png"))

    >>> # This function will open a file with only passing its name.
    >>> print(GetFilePath.openFileWithName("balaji"))


Output of the testing program

.. code :: python

    >>>  ['D://Attedance project 2.0/balaji2.png', 'D://Attedance project 2.0/images/BALAJI S.jpg', 'D://Attedance project 2.0/img/balaji.png', 'D://Attedance project 2.0/img/balaji3.png', 'D://College/Updated/BALAJI B.jpg', 'D://image compare/balaji2.png', 'D://image compare/img/balaji - Copy (2).png', 'D://image compare/img/balaji - Copy (3).png', 'D://image compare/img/balaji - Copy (4).png', 'D://image compare/img/balaji - Copy (5).png', 'D://image compare/img/balaji - Copy (6).png', 'D://image compare/img/balaji - Copy (7).png', 'D://image compare/img/balaji - Copy.png', 'D://image compare/img/balaji.png', 'D://image compare/img/balaji3.png', 'D://pycham/Attedance project 2.0/images/BALAJI S.jpg', 'D://pycham/attedence project/images/BALAJI S.jpg']
    >>>  13
    >>>  17
         ['D://Attedance project 2.0/balaji2.png', 'D://Attedance project 2.0/img/balaji.png', 'D://Attedance project 2.0/img/balaji3.png', 'D://image compare/balaji2.png', 'D://image compare/img/balaji - Copy (2).png', 'D://image compare/img/balaji - Copy (3).png', 'D://image compare/img/balaji - Copy (4).png', 'D://image compare/img/balaji - Copy (5).png', 'D://image compare/img/balaji - Copy (6).png', 'D://image compare/img/balaji - Copy (7).png', 'D://image compare/img/balaji - Copy.png', 'D://image compare/img/balaji.png', 'D://image compare/img/balaji3.png']
         1  -- balaji2.png
         2  -- BALAJI S.jpg
         3  -- balaji.png
         4  -- balaji3.png
         5  -- BALAJI B.jpg
         6  -- balaji2.png
         7  -- balaji - Copy (2).png
         8  -- balaji - Copy (3).png
         9  -- balaji - Copy (4).png
         10  -- balaji - Copy (5).png
         11  -- balaji - Copy (6).png
         12  -- balaji - Copy (7).png
         13  -- balaji - Copy.png
         14  -- balaji.png
         15  -- balaji3.png
         16  -- BALAJI S.jpg
         17  -- BALAJI S.jpg
         They are  17 files in this name, choose your file: 
         Say a exact file.
         Enter a file name: 2
         Opening a File  D://Attedance project 2.0/images/BALAJI S.jpg
         File Open successfully.


The benefit of using GetFilePath, Easily access a file with only file name.


FAQ: Frequently Asked Questions
===============================

Send questions to https://github.com/SriBalaji2112

            

Raw data

            {
    "_id": null,
    "home_page": "http://sribalaji.rf.gd",
    "name": "getfilepath",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "file getfilepath Get File Path filesearch file search name",
    "author": "Balaji Santhanam",
    "author_email": "sribalaji2112@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/10/58/502e2d8989ef89466deb80e06a86fb4fd9fb2aa1a25a28ade5cc7579f41f/getfilepath-0.0.1.tar.gz",
    "platform": null,
    "description": "Access With Name is a  file access module to find out where the files are located in memory and return a file path for a given filename. We will also return a count of the given filename in memory.\r\n\r\npip install getfilepath\r\n\r\nSource code available at https://github.com/SriBalaji2112/GetFilePath/documentation\r\n\r\nhttps://github.com/SriBalaji2112/GetFilePath\r\n\r\nIf you need help installing Python, visit https://installpython3.com/\r\n\r\n\r\n\r\n.. Access With Name documentation master file, created by\r\n   Balaji on Tuesday Dec 20 10.00.00 2022.\r\n   You can adapt this file completely to your liking, but it should at least\r\n   contain the root `GetFilePath` directive.\r\n\r\nWelcome to getfilepath's documentation!\r\n=====================================\r\n\r\n\r\nWe can use the fileaccess module to find out where the files are located in memory and return a file path for a given filename. We will also return a count of the given filename in memory.\r\n\r\nThis function will count how many given external files are in your memory and return it.\r\nYou must enter a drive name, which drive you want to search.\r\nThe API is designed to be simple. GetFilePath works on Windows, macOS, and Linux, and runs on Python 2 and 3.\r\n\r\nTo install with pip, run ``pip install GetFilePath``. See the :doc:`install` page for more details.\r\n\r\nThe source code is available on: https://github.com/SriBalaji2112/GetFilePath\r\n\r\nGetFilePath has several features:\r\n\r\n* It will return the file path for the given filename and file type.\r\n* ExtensionsCounter counts the number of files in a specific extension.\r\n* This service will return the full file path of a given file name.\r\n* This function will count how many given external files are in your memory and return it.\r\n\r\nExamples\r\n========\r\n\r\n.. code :: python\r\n\r\nExample Testing Program and function definition\r\n\r\n    >>> import GetFilePath\r\n\r\n    >>> # You will have to input the name of a connected drive you want to search, or else it will take the default drive \u2014> \u201cC:\\\\\u201c.\r\n    >>> GetFilePath.driveName = \"D://\"\r\n\r\n    >>> # We can use the fileaccess module to find out where the files are located in memory and return a file path for a given filename.\r\n    >>> print(GetFilePath.returnFilepath(\"balaji\"))\r\n\r\n    >>> # This will return a count of parameter names with extensions.\r\n    >>> print(GetFilePath.extensionCounter(\"balaji\", \".png\"))\r\n\r\n    >>> # We will also return the number of the given filename in memory.\r\n    >>> print(GetFilePath.fileNameCounter(\"balaji\"))\r\n\r\n    >>> # The file name in the given parameter extension is returned.\r\n    >>> print(GetFilePath.nameWithExtension(\"balaji\", \".png\"))\r\n\r\n    >>> # This function will open a file with only passing its name.\r\n    >>> print(GetFilePath.openFileWithName(\"balaji\"))\r\n\r\n\r\nOutput of the testing program\r\n\r\n.. code :: python\r\n\r\n    >>>  ['D://Attedance project 2.0/balaji2.png', 'D://Attedance project 2.0/images/BALAJI S.jpg', 'D://Attedance project 2.0/img/balaji.png', 'D://Attedance project 2.0/img/balaji3.png', 'D://College/Updated/BALAJI B.jpg', 'D://image compare/balaji2.png', 'D://image compare/img/balaji - Copy (2).png', 'D://image compare/img/balaji - Copy (3).png', 'D://image compare/img/balaji - Copy (4).png', 'D://image compare/img/balaji - Copy (5).png', 'D://image compare/img/balaji - Copy (6).png', 'D://image compare/img/balaji - Copy (7).png', 'D://image compare/img/balaji - Copy.png', 'D://image compare/img/balaji.png', 'D://image compare/img/balaji3.png', 'D://pycham/Attedance project 2.0/images/BALAJI S.jpg', 'D://pycham/attedence project/images/BALAJI S.jpg']\r\n    >>>  13\r\n    >>>  17\r\n         ['D://Attedance project 2.0/balaji2.png', 'D://Attedance project 2.0/img/balaji.png', 'D://Attedance project 2.0/img/balaji3.png', 'D://image compare/balaji2.png', 'D://image compare/img/balaji - Copy (2).png', 'D://image compare/img/balaji - Copy (3).png', 'D://image compare/img/balaji - Copy (4).png', 'D://image compare/img/balaji - Copy (5).png', 'D://image compare/img/balaji - Copy (6).png', 'D://image compare/img/balaji - Copy (7).png', 'D://image compare/img/balaji - Copy.png', 'D://image compare/img/balaji.png', 'D://image compare/img/balaji3.png']\r\n         1  -- balaji2.png\r\n         2  -- BALAJI S.jpg\r\n         3  -- balaji.png\r\n         4  -- balaji3.png\r\n         5  -- BALAJI B.jpg\r\n         6  -- balaji2.png\r\n         7  -- balaji - Copy (2).png\r\n         8  -- balaji - Copy (3).png\r\n         9  -- balaji - Copy (4).png\r\n         10  -- balaji - Copy (5).png\r\n         11  -- balaji - Copy (6).png\r\n         12  -- balaji - Copy (7).png\r\n         13  -- balaji - Copy.png\r\n         14  -- balaji.png\r\n         15  -- balaji3.png\r\n         16  -- BALAJI S.jpg\r\n         17  -- BALAJI S.jpg\r\n         They are  17 files in this name, choose your file: \r\n         Say a exact file.\r\n         Enter a file name: 2\r\n         Opening a File  D://Attedance project 2.0/images/BALAJI S.jpg\r\n         File Open successfully.\r\n\r\n\r\nThe benefit of using GetFilePath, Easily access a file with only file name.\r\n\r\n\r\nFAQ: Frequently Asked Questions\r\n===============================\r\n\r\nSend questions to https://github.com/SriBalaji2112\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "We can use the GetFileAccess module to find out where the files are located in memory and return a file path for a given filename. We will also return a count of the given filename in memory.",
    "version": "0.0.1",
    "split_keywords": [
        "file",
        "getfilepath",
        "get",
        "file",
        "path",
        "filesearch",
        "file",
        "search",
        "name"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "09eb980d8118b5af18bdab1de0af85eb",
                "sha256": "6ca180616aaeab1d2481a759a4f0bae23e44cb936d9a337c7e57bec661b47445"
            },
            "downloads": -1,
            "filename": "getfilepath-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "09eb980d8118b5af18bdab1de0af85eb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3601,
            "upload_time": "2022-12-20T17:34:58",
            "upload_time_iso_8601": "2022-12-20T17:34:58.609192Z",
            "url": "https://files.pythonhosted.org/packages/97/a1/639530f3053285a97b416a2a9a0f4e8b3e44428f5644b0432c64cb8ccc8f/getfilepath-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "61e330faf8651642c2fee7c5d4b486db",
                "sha256": "245cb657bb6e398e50141ef630bfb30052cb4db910aeca72af501d5527641439"
            },
            "downloads": -1,
            "filename": "getfilepath-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "61e330faf8651642c2fee7c5d4b486db",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4568,
            "upload_time": "2022-12-20T17:35:00",
            "upload_time_iso_8601": "2022-12-20T17:35:00.676255Z",
            "url": "https://files.pythonhosted.org/packages/10/58/502e2d8989ef89466deb80e06a86fb4fd9fb2aa1a25a28ade5cc7579f41f/getfilepath-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-20 17:35:00",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "getfilepath"
}
        
Elapsed time: 0.02856s