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.2.tar.gz (15.1 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.2-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qianxing-openapi-0.1.2.tar.gz
  • Upload date:
  • Size: 15.1 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.2.tar.gz
Algorithm Hash digest
SHA256 57853a26ffcfca7cc794bd040cd7ae9dbc15bf96eb259db9d5f2785ef2420f40
MD5 fe8684a6a8b2a034a676aed6ccc2ffc9
BLAKE2b-256 2d122c068f2e8e5c3d63c056e2c50347cff75575aa4a7b02e3c4e4db7e9d2572

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qianxing_openapi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b38a601d8fec4e0572b950bc33f6e0239b35ef3952570a33b88b0637804d37b5
MD5 70f5e32ee21def9e8b142566cab82447
BLAKE2b-256 65f0ee59fc1a0e5349e728534f51f5b3506933f165e60cffa594c2b18e55255a

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