Skip to main content

No project description provided

Project description

Sideko-Python

SDK client generator for HTTP APIs using OpenApi.

Supports OpenApi 3.x and can generate clients in Python, Ruby, Rust, Typescript, and Go.

This package will also install the sideko CLI, find the CLI's documentation on our Github.

Installation

pip install sideko-py

Usage

Configure API key

You need a Sideko API Key to generate SDKs. Create one for free by either:

  1. Signing up / logging in via the CLI, or
  2. Signing up / logging in at app.sideko.dev (User Icon > API Keys)
sideko login
# Complete login via browser pop-up

Run sideko login --help to list all options.

The API key is read from (in order of priority):

  • $PWD/.sideko
  • $HOME/.sideko
  • SIDEKO_API_KEY environment variable

Generate

import sideko_py

# The openAPI source can be a URL, Path, or json/yml raw spec (as a string)
openapi_src = "https://your-spec.yml"
sideko_py.generate_sdk(sideko_py.Language.Python, openapi_src, "./sdk-out")

Local development

This rust crate uses PyO3 & Maturin to create and distribute python bindings to generate SDKs with Sideko.

Assumes rust / cargo / python >= 3.8 is installed

  1. Create & activate virtual python environment
python3 -m venv .venv
source .venv/bin/activate
  1. Install maturin
pip install maturin
# macOS users can also install with `brew install maturin`
  1. Build & install python module
maturin develop
  1. Try it out in a python shell
python

>>> import sideko_py

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

sideko_py-0.10.2.tar.gz (41.8 kB view details)

Uploaded Source

Built Distributions

sideko_py-0.10.2-cp38-abi3-win_amd64.whl (4.6 MB view details)

Uploaded CPython 3.8+ Windows x86-64

sideko_py-0.10.2-cp38-abi3-win32.whl (4.1 MB view details)

Uploaded CPython 3.8+ Windows x86

sideko_py-0.10.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.8 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ x86-64

sideko_py-0.10.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (7.7 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ i686

sideko_py-0.10.2-cp38-abi3-macosx_11_0_arm64.whl (4.9 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

sideko_py-0.10.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (10.0 MB view details)

Uploaded CPython 3.8+ macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64

File details

Details for the file sideko_py-0.10.2.tar.gz.

File metadata

  • Download URL: sideko_py-0.10.2.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for sideko_py-0.10.2.tar.gz
Algorithm Hash digest
SHA256 e8f371dbcdc8114020fd8242da7ff60031d75dde2e9976c70e50265cfe25f527
MD5 612bdbe83fe3110f6d33e2434d681555
BLAKE2b-256 ef29aed460644ac4d4123b1f4a0f814d0050b5ebc6bdfc3d7584a1cc4008e9d6

See more details on using hashes here.

File details

Details for the file sideko_py-0.10.2-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for sideko_py-0.10.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 951e7bc61a3b727c0d1dd74b63736efb6a091eaf906d05581104ca2f850c3fe0
MD5 e18afaa26b23cf59fc720fbbbedf6c80
BLAKE2b-256 3e6c72f1548611244a6c829599299dde9e9698d8e29460d5d300affba64a7a7a

See more details on using hashes here.

File details

Details for the file sideko_py-0.10.2-cp38-abi3-win32.whl.

File metadata

  • Download URL: sideko_py-0.10.2-cp38-abi3-win32.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: CPython 3.8+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for sideko_py-0.10.2-cp38-abi3-win32.whl
Algorithm Hash digest
SHA256 fec5b06b2dd8d4d7d24f0eb7c8ca6d2c72ad3366ddbe9dd6147038aa54ecd3cf
MD5 2ec4cfcd5b7efc15479c6edbea6bdc44
BLAKE2b-256 51af7d1f4d22af2491975e9fc85f2142447d76ec61c3b28c0a726dbe82ad41bf

See more details on using hashes here.

File details

Details for the file sideko_py-0.10.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sideko_py-0.10.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71ffc22b73540fc5a44329054d6d4ec573f8ffede65f7a7ada16dfaceb8ad1b1
MD5 e420387f344d37891f73231e14ab2258
BLAKE2b-256 bfce013c310da81d8cca2fe0fb1275d801cd9007d3e9de25f55ed00088a45b8c

See more details on using hashes here.

File details

Details for the file sideko_py-0.10.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for sideko_py-0.10.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 609282f5b18f1d3e576158a8fdc5887bbc20c3f363f8f856c6be2eb1f8477648
MD5 7738ba9fd4bdd89f69ffef18ffdbf376
BLAKE2b-256 c0a3ef2ee644ac6a9bdafc0657547c3879273bbfd12a81978c4035db2216f3ed

See more details on using hashes here.

File details

Details for the file sideko_py-0.10.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sideko_py-0.10.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ce7137f8acaf79c8c26e8257c00e6ecea83eb91da178c1ddca0aa6e9e6dc352
MD5 a56cab84581fb57b81dca3dd2b475051
BLAKE2b-256 16f416dfa73b47471bd46c6048347fc4e94da756228edca135b591124c515a57

See more details on using hashes here.

File details

Details for the file sideko_py-0.10.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for sideko_py-0.10.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 1413927e5ccee654ae7486a55e9870d01e40c9f855c5760a7b517574f1f49dc9
MD5 569785465148f35a1664dbe14b1fa7e0
BLAKE2b-256 bb992bfd9c6c5a57fa6dba92dfbadcf5c4d98a3d4800540b414a53acba2f6dda

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