fileshiftlib


Namefileshiftlib JSON
Version 0.0.9 PyPI version JSON
download
home_pageNone
SummarySFTP client!
upload_time2025-08-26 10:47:17
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords sftp python ftp file transfer
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # fileshiftlib

* [Description](#package-description)
* [Usage](#usage)
* [Installation](#installation)
* [License](#license)

## Package Description

SFTP client Python package that uses [paramiko](https://pypi.org/project/paramiko/) library.

## Usage

* [fileshiftlib](#fileshiftlib)

from a script:

```python
import fileshiftlib

host = "localhost"
username = "123..."
password = "xxxx"
port = 22

# Initialize SFTP client
sftp = fileshiftlib.SFTP(host=host,
                         username=username,
                         password=password,
                         port=port,
                         logger=None)
```

```python
content_list = sftp.list_dir()
print(content_list)
```

```python
sftp.change_dir(path=".")
```

```python
sftp.delete_file(filename=r"demo.txt")
```

```python
sftp.download_file(remote_path=r"/demo/demo.txt", local_path=r"c:\local\demo.txt")
```

```python
sftp.upload_file(local_path=r"c:\local\demo.txt", remote_path=r"/demo/demo.txt")
```

## Installation

* [fileshiftlib](#fileshiftlib)

Install python and pip if you have not already.

Then run:

```bash
pip install pip --upgrade
```

For production:

```bash
pip install fileshiftlib
```

This will install the package and all of it's python dependencies.

If you want to install the project for development:

```bash
git clone https://github.com/aghuttun/fileshiftlib.git
cd fileshiftlib
pip install -e ".[dev]"
```

To test the development package: [Testing](#testing)

## License

* [fileshiftlib](#fileshiftlib)

BSD License (see license file)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "fileshiftlib",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "Paulo Portela <portela.paulo@gmail.com>",
    "keywords": "SFTP, Python, FTP, File Transfer",
    "author": null,
    "author_email": "Paulo Portela <portela.paulo@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/84/ed/fd5d99e3c31c1684e5d871c7feebd86ae2c4110206cbde3cdf8d257003c7/fileshiftlib-0.0.9.tar.gz",
    "platform": null,
    "description": "# fileshiftlib\r\n\r\n* [Description](#package-description)\r\n* [Usage](#usage)\r\n* [Installation](#installation)\r\n* [License](#license)\r\n\r\n## Package Description\r\n\r\nSFTP client Python package that uses [paramiko](https://pypi.org/project/paramiko/) library.\r\n\r\n## Usage\r\n\r\n* [fileshiftlib](#fileshiftlib)\r\n\r\nfrom a script:\r\n\r\n```python\r\nimport fileshiftlib\r\n\r\nhost = \"localhost\"\r\nusername = \"123...\"\r\npassword = \"xxxx\"\r\nport = 22\r\n\r\n# Initialize SFTP client\r\nsftp = fileshiftlib.SFTP(host=host,\r\n                         username=username,\r\n                         password=password,\r\n                         port=port,\r\n                         logger=None)\r\n```\r\n\r\n```python\r\ncontent_list = sftp.list_dir()\r\nprint(content_list)\r\n```\r\n\r\n```python\r\nsftp.change_dir(path=\".\")\r\n```\r\n\r\n```python\r\nsftp.delete_file(filename=r\"demo.txt\")\r\n```\r\n\r\n```python\r\nsftp.download_file(remote_path=r\"/demo/demo.txt\", local_path=r\"c:\\local\\demo.txt\")\r\n```\r\n\r\n```python\r\nsftp.upload_file(local_path=r\"c:\\local\\demo.txt\", remote_path=r\"/demo/demo.txt\")\r\n```\r\n\r\n## Installation\r\n\r\n* [fileshiftlib](#fileshiftlib)\r\n\r\nInstall python and pip if you have not already.\r\n\r\nThen run:\r\n\r\n```bash\r\npip install pip --upgrade\r\n```\r\n\r\nFor production:\r\n\r\n```bash\r\npip install fileshiftlib\r\n```\r\n\r\nThis will install the package and all of it's python dependencies.\r\n\r\nIf you want to install the project for development:\r\n\r\n```bash\r\ngit clone https://github.com/aghuttun/fileshiftlib.git\r\ncd fileshiftlib\r\npip install -e \".[dev]\"\r\n```\r\n\r\nTo test the development package: [Testing](#testing)\r\n\r\n## License\r\n\r\n* [fileshiftlib](#fileshiftlib)\r\n\r\nBSD License (see license file)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "SFTP client!",
    "version": "0.0.9",
    "project_urls": {
        "Documentation": "https://github.com/aghuttun/fileshiftlib/blob/main/README.md",
        "Homepage": "https://github.com/aghuttun/fileshiftlib"
    },
    "split_keywords": [
        "sftp",
        " python",
        " ftp",
        " file transfer"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5a4c1592970a86a118d3cc187e5303cdcd34a0728968f4e2efa3628b1a27173e",
                "md5": "2c7b23243e261c447154c632188d9d1e",
                "sha256": "b747a64a355a5c15e3b96683279db0808bce9edc863e26eb7bd16629e35a2885"
            },
            "downloads": -1,
            "filename": "fileshiftlib-0.0.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2c7b23243e261c447154c632188d9d1e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 5089,
            "upload_time": "2025-08-26T10:47:16",
            "upload_time_iso_8601": "2025-08-26T10:47:16.023671Z",
            "url": "https://files.pythonhosted.org/packages/5a/4c/1592970a86a118d3cc187e5303cdcd34a0728968f4e2efa3628b1a27173e/fileshiftlib-0.0.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "84edfd5d99e3c31c1684e5d871c7feebd86ae2c4110206cbde3cdf8d257003c7",
                "md5": "693bd93888828d04ceb8f672cd5c9773",
                "sha256": "28bcc1be200c535238f8b2a82513cd84166d3c4ba1740336e894068cfcf8e696"
            },
            "downloads": -1,
            "filename": "fileshiftlib-0.0.9.tar.gz",
            "has_sig": false,
            "md5_digest": "693bd93888828d04ceb8f672cd5c9773",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 4607,
            "upload_time": "2025-08-26T10:47:17",
            "upload_time_iso_8601": "2025-08-26T10:47:17.253224Z",
            "url": "https://files.pythonhosted.org/packages/84/ed/fd5d99e3c31c1684e5d871c7feebd86ae2c4110206cbde3cdf8d257003c7/fileshiftlib-0.0.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-26 10:47:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aghuttun",
    "github_project": "fileshiftlib",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "fileshiftlib"
}
        
Elapsed time: 2.14531s