Skip to main content

Vector API to SDK.

Python SDK for API automation. Currently supports FastAPI implementation.

It is used as below:

from automation_tool.sdk_automation import PythonSDKBuilder
sdk = PythonSDKBuilder(
    url="https://api.vctr.ai",
    inherited_properties=['username', 'api_key'],
    decorators=['retry()'],
)
sdk.to_python_file(import_strings=['from vectorai.api.utils import retry'])

Sample Output:

# This python file is auto-generated. Please do not edit.
from vectorai.api.utils import retry


class ViAPIClient:
	def __init__(self, username, api_key, ):
		self.username = username		
		self.api_key = api_key		

	@retry()
	def request_api_key(self,email, description, referral_code, ):
		"""Request an api key
Make sure to save the api key somewhere safe. If you have a valid referral code, you can recieve the api key more quickly.

Args
========
username: Username you'd like to create, lowercase only
email: Email you are using to sign up
description: Description of your intended use case
referral_code: The referral code you've been given to allow you to register for an api key before others

"""
		return requests.post(
			url='https://api.vctr.ai//project/request_api_key',
			json=dict(
				username=self.username,
				email=email, 
				description=description, 
				**kwargs)).json()

Improvements

  • Add more documentation.

Metadata

Release files for openapi-to-sdk 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openapi-to-sdk 0.1.4
File Size Uploaded Provenance
openapi_to_sdk-0.1.4.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for openapi-to-sdk 0.1.4
File Interpreter ABI Platform
openapi_to_sdk-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / openapi_to_sdk-0.1.4.tar.gz

Download URL openapi_to_sdk-0.1.4.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0c2559e7dc573127c4913bbe776f814204da07d27269ac05c568b9575e52797d
BLAKE2b-256 checksum
How to use checksums
de2127118b70d4bc1244e157392d9cba18a34e533a9ab14998e4794f6545079f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

Release files / openapi_to_sdk-0.1.4-py3-none-any.whl

Download URL openapi_to_sdk-0.1.4-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a6aa6b6699b9cd8dee4bf400529873593923aa9f140d1821726c92b64fc8509
BLAKE2b-256 checksum
How to use checksums
d02ceb64e2f37937a4538639abd440dd985ada660203ca8cfef6face8a3ab717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

Security for openapi-to-sdk 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page