Skip to content

added codegen#344

Open
philipjusher wants to merge 18 commits into
mainfrom
feature/api-generator
Open

added codegen#344
philipjusher wants to merge 18 commits into
mainfrom
feature/api-generator

Conversation

@philipjusher

Copy link
Copy Markdown
Collaborator

This pull request introduces a new Python client library for the ConceptEV-API, including initial project scaffolding, documentation, and implementations for several API endpoints. The changes establish the foundation for interacting with the API in both synchronous and asynchronous ways, and provide developer guidance for usage and customization.

Project scaffolding and documentation:

  • Added a comprehensive README.md with usage examples, authentication details, advanced customization options, and instructions for building/publishing the package.
  • Created a .gitignore to exclude Python build artifacts, environment files, IDE settings, and coverage reports.

Client library structure:

  • Implemented package initialization in conceptev_api_client/__init__.py, exposing Client and AuthenticatedClient for use.
  • Added module docstrings for the API and its submodules to clarify their purpose. [1] [2]

API endpoint implementations:

  • Added create_architectures_architectures_post.py to support creating architectures via POST, with both sync and async methods, parameter handling, and response parsing.
  • Added delete_architecture_architectures_item_id_delete.py to support deleting architectures by ID, including parameter handling, sync/async methods, and error handling.

@github-actions github-actions Bot added the enhancement New features or code improvements label Jun 3, 2026
pyansys-ci-bot and others added 10 commits June 3, 2026 16:50
…figurations

- Introduced `UploadedFile` model for handling file uploads with attributes like `cloud_path`, `file_name`, and `file_size`.
- Created `ValidationError` model to represent validation errors, including location, message, type, and context.
- Added `ValidationErrorContext` model for additional context related to validation errors.
- Implemented `VersionVersionGetResponseVersionVersionGet` model for version response handling.
- Defined `VoltageUnit`, `VolumeUnit`, and `VolumetricFlowRateUnit` with respective validation functions.
- Developed `WheelInDB` and `WheelInput` models for wheel configurations, including attributes for mass, cost, and traction coefficients.
- Added `WheelRollingResistanceConfigs` for managing rolling resistance configurations.
- Included a marker file for PEP 561 compliance and shared types for properties in `types.py`.
- Updated `tox.ini` to include a new environment for regenerating the API client from the OpenAPI specification.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added the maintenance Package and maintenance related label Jun 23, 2026
philipjusher and others added 7 commits June 23, 2026 12:05
… check

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…rver

Co-authored-by: Cursor <cursoragent@cursor.com>
…in CI

Co-authored-by: Cursor <cursoragent@cursor.com>
…mples

- Restore examples 01-03 to v1 API (app.get_http_client) from before the v2 rewrite
- Add examples 04-06 as clones of the v2 workflow using get_conceptev_client()
  against https://dev-conceptev.awsansys3np.onscale.com/api
- Switch examples/config.toml from production to dev environment
- Update sphinx_gallery_conf: list all six examples as expected_failing_examples
  since they all require live server credentials not available in CI
- Gitignore conceptev_password, examples output files (results.xlsx, etc)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New features or code improvements maintenance Package and maintenance related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants