-
Notifications
You must be signed in to change notification settings - Fork 0
Develop core #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Develop core #2
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4bf0af5
Initial project setup: pyproject.toml, uv, project structure
RusselSand ce49cf6
feat: add core foundation (auth, exceptions, logging) and Sphinx docs
RusselSand 316e33b
feat: core parts added
RusselSand 38bb0e2
crosscheck with go
RusselSand 36ddff3
feat: auth and exceptions cleaned
RusselSand c84a8ab
feat: signer and endpoint refactored
ndnkmrz eee590b
feat: signer and endpoint refactored
RusselSand b59359b
feat: changed vpc and added config for yaml with creds
RusselSand 74d3875
feat: added waiter and vpc tests
RusselSand 6dd111b
feat: functional tests for headers and ok codes
RusselSand 261aee3
feat: vpc splitted as discussed in comments
RusselSand ed168d0
feat: names changed
RusselSand 083f0b5
feat: clients added
RusselSand e1d36ba
feat: pagination check
RusselSand 81c9978
feat: pagination check v2
RusselSand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,27 @@ | ||
| # python-t-cloud | ||
| # python-t-cloud | ||
|
|
||
| Python SDK for T-Cloud. | ||
|
|
||
| > **Status:** Early development. Not ready for production use. | ||
|
|
||
| ## Quick Start | ||
|
|
||
| ```bash | ||
| uv sync # install dependencies | ||
| uv run pytest # run tests | ||
| ``` | ||
|
|
||
| ## Development | ||
|
|
||
| Requires [uv](https://docs.astral.sh/uv/) and Python 3.11+. | ||
|
|
||
| ```bash | ||
| uv sync --group dev # install with dev dependencies | ||
| uv run ruff check src/ # lint | ||
| uv run mypy src/ # type check | ||
| uv run pytest -v # test | ||
| ``` | ||
|
|
||
| ## License | ||
|
|
||
| Apache-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # conftest.py at project root — registers the 'acceptance' marker | ||
| # and separates acceptance tests from unit tests. | ||
|
|
||
| import pytest | ||
|
|
||
|
|
||
| def pytest_collection_modifyitems(config, items): | ||
| """Auto-mark tests under acceptance/ directory.""" | ||
| for item in items: | ||
| if "acceptance" in str(item.fspath): | ||
| item.add_marker(pytest.mark.acceptance) | ||
|
|
||
|
|
||
| def pytest_configure(config): | ||
| config.addinivalue_line( | ||
| "markers", | ||
| "acceptance: marks tests that hit real OTC API (deselect with '-m \"not acceptance\"')", | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| Core | ||
| ==== | ||
|
|
||
| Authentication | ||
| -------------- | ||
|
|
||
| .. automodule:: sdk.core.auth | ||
| :members: | ||
| :show-inheritance: | ||
| :exclude-members: model_config, model_fields, model_computed_fields | ||
|
|
||
| Exceptions | ||
| ---------- | ||
|
|
||
| .. automodule:: sdk.core.exceptions | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| Logging | ||
| ------- | ||
|
|
||
| .. automodule:: sdk.core.log | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| API Reference | ||
| ============= | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
|
|
||
| core |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| """Sphinx configuration for the SDK documentation.""" | ||
|
|
||
| import os | ||
| import sys | ||
|
|
||
| # Add src/ to path so autodoc can find the package | ||
| sys.path.insert(0, os.path.abspath("../src")) | ||
|
|
||
| # -- Project information ----------------------------------------------------- | ||
|
|
||
| project = "SDK" | ||
| copyright = "2026, T Cloud" | ||
| author = "T Cloud" | ||
|
RusselSand marked this conversation as resolved.
Outdated
|
||
| release = "0.1.0" | ||
|
|
||
| # -- General configuration --------------------------------------------------- | ||
|
|
||
| extensions = [ | ||
| "sphinx.ext.autodoc", | ||
| "sphinx.ext.napoleon", # Google-style docstrings | ||
| "sphinx_autodoc_typehints", # type hints in docs | ||
| "sphinx.ext.viewcode", # [source] links | ||
| "sphinx.ext.intersphinx", # link to Python stdlib docs | ||
| ] | ||
|
|
||
| # Napoleon settings (Google-style) | ||
| napoleon_google_docstring = True | ||
| napoleon_numpy_docstring = False | ||
| napoleon_include_init_with_doc = True | ||
| napoleon_include_private_with_doc = False | ||
| napoleon_use_param = True | ||
| napoleon_use_rtype = True | ||
|
|
||
| # Autodoc settings | ||
| autodoc_member_order = "bysource" | ||
| autodoc_typehints = "description" | ||
| autodoc_class_signature = "separated" | ||
| autodoc_pydantic_model_show_field_summary = False | ||
|
|
||
| # Intersphinx — link to Python docs | ||
| intersphinx_mapping = { | ||
| "python": ("https://docs.python.org/3", None), | ||
| "pydantic": ("https://docs.pydantic.dev/latest/", None), | ||
| } | ||
|
|
||
| # -- Options for HTML output ------------------------------------------------- | ||
|
|
||
| html_theme = "sphinx_rtd_theme" | ||
| html_theme_options = { | ||
| "navigation_depth": 3, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| SDK Documentation | ||
| ================= | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
| :caption: Contents | ||
|
|
||
| quickstart | ||
| api/index |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.