Skip to main content

Qianxing OpenAPI SDK for Python - A client library for accessing Qianxing's simulation platform

Project description

Qianxing OpenAPI SDK for Python

A Python SDK for interacting with Qianxing's simulation platform. This package provides a simple and intuitive way to control and monitor simulations for autonomous driving scenarios.

Installation

You can install the package directly from PyPI:

pip install qianxing-openapi

Quick Start

Here's a simple example of how to use the SDK:

from qianxing_openapi import Client, HttpConfig, SimulatorConfig

# Initialize the client
client = Client(
    HttpConfig(
        token="your_token_here",
        endpoint="your_endpoint_here"
    )
)

# Create a simulator instance
simulator = client.init_simulator_from_config(
    SimulatorConfig(
        scenario_id="your_scenario_id",
        scenario_version="your_version"
    )
)

# Run simulation steps
step_res = simulator.step()

# Get vehicle information
vehicle_ids = simulator.get_vehicle_id_list()
vehicle_positions = simulator.get_vehicle_position(vehicle_ids.vehicle_ids)

# Stop the simulation
simulator.stop()

Features

  • Easy-to-use client interface
  • Comprehensive simulation control
  • Vehicle state monitoring and control
  • Traffic light and junction management
  • Scenario configuration

Requirements

  • Python >= 3.7
  • requests >= 2.25.0

Development

To contribute to this project:

  1. Clone the repository
git clone https://github.com/risenlighten-qianxing/openapi-sdk-python.git
cd openapi-sdk-python
  1. Install development dependencies
pip install -r requirements.txt

Publishing to PyPI

To publish a new version to PyPI:

  1. Update version in setup.py
  2. Install publishing tools:
pip install twine setuptools wheel
  1. Build distribution packages:
python setup.py sdist bdist_wheel
  1. Upload to PyPI:
twine upload dist/*

License

This project is licensed under the MIT License.

Support

For bug reports and feature requests, please use the GitHub Issues page.

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

qianxing-openapi-0.1.3.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qianxing_openapi-0.1.3-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file qianxing-openapi-0.1.3.tar.gz.

File metadata

  • Download URL: qianxing-openapi-0.1.3.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for qianxing-openapi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a11c84ec0d93b8b3f3cc5bdb44e16ba7825c8aa2d3f10192a49a7767a4b1e380
MD5 102a799238e08ff638ae56c891d898e7
BLAKE2b-256 ff227544496378077d107e137426af665d5700f4a0c2d415728cc93408b23689

See more details on using hashes here.

File details

Details for the file qianxing_openapi-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for qianxing_openapi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 47e6d52f138a91c83fb4e013c88b438624393966ac7347944140093787c27114
MD5 dfaea145166b0eff9a74cf8c429ec12a
BLAKE2b-256 191ec3d0057d869a6bf723090dec79111820788ae1adf7844f652893ed1dc4ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page