Skip to main content

Python client for the SFTPGo API

Project description

sftpgo-client

PyPI License Code style

Python client for the SFTPGo API

The sftpgo_client.base package is automatically generated from the OpenAPI specification provided by SFTPGo using openapi-python-client.

Installation

pip install sftpgo-client

Examples

from sftpgo_client import Client

client = Client(
    base_url="http://localhost:8080/api/v2", user="admin", password="password"
)
users = client.get_users()
for user in users:
    print(user.username)

Using the asynchronous client:

import asyncio

from sftpgo_client import AsyncClient


async def print_usernames():
    client = AsyncClient(
        base_url="http://localhost:8080/api/v2", user="admin", password="password"
    )
    users = await client.get_users()
    for user in users:
        print(user.username)


asyncio.run(print_usernames())

Development

You can fetch the latest version of the SFTPGo OpenAPI specification and update sftpgo_client.base with:

./generator/run.sh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sftpgo-client-0.2.0.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

sftpgo_client-0.2.0-py2.py3-none-any.whl (88.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sftpgo-client-0.2.0.tar.gz.

File metadata

  • Download URL: sftpgo-client-0.2.0.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.7

File hashes

Hashes for sftpgo-client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8ca7b291dd19225213ee2fca2dadde0b110dd33117e8542dcb84b4fec228767d
MD5 f63893d33fc14d6a4f79476ee3e1d274
BLAKE2b-256 9c9f02989d2804c28c1cd679153f600c079c52ecee482e1da56f774e97926526

See more details on using hashes here.

File details

Details for the file sftpgo_client-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: sftpgo_client-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 88.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.7

File hashes

Hashes for sftpgo_client-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e332b813cae60a53841f3611f4fba1f02d02d387efb2185b0f65f036e4dda43f
MD5 50d72dcd6c493dd0e2684389e4495e19
BLAKE2b-256 84c0d2f30a44f95d26435ca88f27b285f55004a5e1f9bf8d3084b0bcefaa5d56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page