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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: sftpgo-client-0.1.3.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.1.3.tar.gz
Algorithm Hash digest
SHA256 7a880cc9d51341321cae2cc9953025e82589a08ef6ca3b10d07bf2af270fc9a5
MD5 4f0cc7eb05a1c2788f73840edaaa092b
BLAKE2b-256 a58da9bf4ac1c5b8a96f6f2a735a37376cbd2c4dc0adc40f1744ba395dc0bfce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sftpgo_client-0.1.3-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.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dfe719fcec541972ee6d8576a93f40e5a784967d88ed9c685b5b0d2636eb4b06
MD5 46bb577c5a77d1614482b4022d6a1b21
BLAKE2b-256 63a7cf2fe4971c4f0b3669d6cf37c312b4c72fbc87ad54ddd4fa1d87238f6c40

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