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.1.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

sftpgo_client-0.2.1-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.1.tar.gz.

File metadata

  • Download URL: sftpgo-client-0.2.1.tar.gz
  • Upload date:
  • Size: 29.9 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.1.tar.gz
Algorithm Hash digest
SHA256 87625286e60361cae46395e11e46ecb937fdfbed49bad9909e3c136a4ce9f543
MD5 2e41e95090bafbccaae8b6406d2e480d
BLAKE2b-256 c64c20f77530cd9d52407f78e075e63ff951a24ef57c430b48c190a00446fc65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sftpgo_client-0.2.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9d948e99872c36a406096c7a877ea6f46c48b6994b3486b7b90b4edd09d15c71
MD5 ea8071e9f2929930d9459167ed4b7b3b
BLAKE2b-256 088a787408640fe18883f9424a6c97ff181873acfa7bc7362372a1123d454495

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