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:
- Clone the repository
git clone https://github.com/risenlighten-qianxing/openapi-sdk-python.git
cd openapi-sdk-python
- Install development dependencies
pip install -r requirements.txt
Publishing to PyPI
To publish a new version to PyPI:
- Update version in setup.py
- Install publishing tools:
pip install twine setuptools wheel
- Build distribution packages:
python setup.py sdist bdist_wheel
- 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
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a11c84ec0d93b8b3f3cc5bdb44e16ba7825c8aa2d3f10192a49a7767a4b1e380
|
|
| MD5 |
102a799238e08ff638ae56c891d898e7
|
|
| BLAKE2b-256 |
ff227544496378077d107e137426af665d5700f4a0c2d415728cc93408b23689
|
File details
Details for the file qianxing_openapi-0.1.3-py3-none-any.whl.
File metadata
- Download URL: qianxing_openapi-0.1.3-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47e6d52f138a91c83fb4e013c88b438624393966ac7347944140093787c27114
|
|
| MD5 |
dfaea145166b0eff9a74cf8c429ec12a
|
|
| BLAKE2b-256 |
191ec3d0057d869a6bf723090dec79111820788ae1adf7844f652893ed1dc4ec
|