Use this reference when the task edits SDK source, tests, snippets, package metadata, or generated files inside submodules/python.
aspose_barcode_cloud/api: generated API clients such asgenerate_api.py,recognize_api.py, andscan_api.py.aspose_barcode_cloud/models: generated request and response models plus enums.aspose_barcode_cloud/configuration.py,api_client.py,rest.py, andexceptions.py: auth, HTTP transport, and runtime behavior.docs: generated endpoint and model docs.tests: unittest coverage for configuration, auth, headers, generate, recognize, scan, exceptions, and end-to-end flows.snippets: runnable documentation snippets grouped by generate/read scenario.scripts: snippet runners and post-generation helpers such as example insertion and deprecation-warning injection.README.mdandexample.py: user-facing usage examples.
On Windows, run repo scripts and Make targets through WSL.
From submodules/python:
make initormake venvto install dependencies.make formatmake lintmake testmake test-examplemake test-tox
make test does more than unit tests:
- runs
pytest --cov=aspose_barcode_cloud tests/ - runs
./scripts/run_snippets.sh
run_snippets.sh creates snippets_test, symlinks the local aspose_barcode_cloud package into it, injects credentials into each snippet, and executes every snippet. Treat snippet failures as consumer-facing regressions, not just sample breakage.
make after-gen is the post-processing pipeline used by code generation. It runs:
make formatmake insert-examplesmake add-warningsmake format_doc
- Tests load
tests/configuration.jsonfirst and then fall back toTEST_CONFIGURATION_*environment variables. tests/load_configuration.pymaps constructor parameter names fromConfiguration.__init__directly to env vars.- Useful names include
TEST_CONFIGURATION_CLIENT_ID,TEST_CONFIGURATION_CLIENT_SECRET,TEST_CONFIGURATION_ACCESS_TOKEN,TEST_CONFIGURATION_HOST, andTEST_CONFIGURATION_TOKEN_URL. tests/configuration.example.jsonstill shows an older v3.0 host, butConfigurationdefaults tohttps://api.aspose.cloud/v4.0. Match the surrounding file when editing repo code and prefer the runtime default for new examples.
If you change generated SDK code in this mono-repo:
- Make the intended SDK edit in
submodules/pythonso the target behavior is clear. - Mirror the change in the matching template under
codegen/Templates/pythonwhen the file is generated. - Stage the Python submodule changes.
- From the repo root, run
make pythonthrough WSL. - Ensure
submodules/pythonhas no new unstaged diffs after regeneration. - If regeneration reintroduces old code, keep fixing templates or post-generation helpers until the generated output matches the intended SDK change.
aspose_barcode_cloud/__init__.py: public exports from the package.tests/load_configuration.py: how test config is discovered.tests/test_generate_and_recognize.py: end-to-end generate then recognize flow.scripts/run_snippets.shandscripts/run_snippet.sh: snippet harness.Makefile: local validation and post-generation entry points.