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:
- Signing up / logging in via the CLI, or
- 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
- Create & activate virtual python environment
python3 -m venv .venv
source .venv/bin/activate
- Install maturin
pip install maturin
# macOS users can also install with `brew install maturin`
- Build & install python module
maturin develop
- Try it out in a python shell
python
>>> import sideko_py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file sideko_py-0.10.0.tar.gz
.
File metadata
- Download URL: sideko_py-0.10.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fbd380d23e734b69126a20a1250313a1f501a871f200308b49ffe5222366223 |
|
MD5 | 644ad769d69dd0710708c91394c5ab4b |
|
BLAKE2b-256 | 3f41ef2172386887cedae1cc68ea0ff9867d6794289a722d6864a103c8f16180 |
File details
Details for the file sideko_py-0.10.0-cp38-abi3-win_amd64.whl
.
File metadata
- Download URL: sideko_py-0.10.0-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 4.6 MB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d36507535da5d5a8d74fee2c408e947a81bb1625a2687b816ebb4228a38fff |
|
MD5 | e2fb98cf0c09e911763f4d91d225d1f5 |
|
BLAKE2b-256 | 969236f8251c1be8db7c251c9df5728ddc3f9d01ef3610e4ea6d9dc5d75667c7 |
File details
Details for the file sideko_py-0.10.0-cp38-abi3-win32.whl
.
File metadata
- Download URL: sideko_py-0.10.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | de05df109b6ed8c8ef2984eadbb472dfa3a3056d1082a9d4ffd1b03d68ff2e59 |
|
MD5 | 9cd76ac3ae0cc2b825ba1d842ea04128 |
|
BLAKE2b-256 | 9dce8f206579e0c87e0a5d18b3240d9ab8f598be74c52514a52e4e2c5d5d7d03 |
File details
Details for the file sideko_py-0.10.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: sideko_py-0.10.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 7.8 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46f18758c0d57db84ca6ca0f377a9e0f7aab40fa044dbe823f8b144c405e3c6 |
|
MD5 | dae1409e9645d8f5812eb562177f411d |
|
BLAKE2b-256 | 29144f21645502b4574bde6279484a16a83e703773b1e1b7709be3d4fcd5eb4b |
File details
Details for the file sideko_py-0.10.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: sideko_py-0.10.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 7.7 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb0068acab37977976f8887d58e8543d952cac16c407a87dc2ee74ce8e438c67 |
|
MD5 | d71c12ad390d271d8bb82fc03ae19886 |
|
BLAKE2b-256 | c01c7890c7f92364da5cd171776a8559dc2231b607f9693b55e298b13bed4c0e |
File details
Details for the file sideko_py-0.10.0-cp38-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: sideko_py-0.10.0-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78fdd89ebcd93249d19ee88ffbacd800e0365ea33ee1013dbc2df64f46882bae |
|
MD5 | 02c6f17ab12690aa5f2c42729dc3e40a |
|
BLAKE2b-256 | f0a1bb5174f13762d9edccef74db103c97e79d87edfa5a34cc7e783763be03a4 |
File details
Details for the file sideko_py-0.10.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
.
File metadata
- Download URL: sideko_py-0.10.0-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 10.0 MB
- Tags: CPython 3.8+, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bae2e77a76ae6afe2ebcbb262db2cedc090e88984318e5413a2ef6569145f057 |
|
MD5 | a0779a5a5e072c730795d00e7610b295 |
|
BLAKE2b-256 | 9f11eab46b648ec9e4e07381cb6f0f068b994f25b66468193cbd36b456bb6b6d |