backo 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. backo-0.2.1/.coveragerc +6 -0
  2. backo-0.2.1/.github/workflows/test_examples.yml +57 -0
  3. {backo-0.2.0 → backo-0.2.1}/.gitignore +1 -0
  4. {backo-0.2.0 → backo-0.2.1}/.readthedocs.yaml +4 -1
  5. {backo-0.2.0 → backo-0.2.1}/CHANGELOG.md +10 -0
  6. {backo-0.2.0 → backo-0.2.1}/CONTRIBUTING.md +6 -6
  7. {backo-0.2.0 → backo-0.2.1}/PKG-INFO +173 -126
  8. {backo-0.2.0 → backo-0.2.1}/README.md +166 -121
  9. {backo-0.2.0 → backo-0.2.1}/backo/__init__.py +2 -0
  10. {backo-0.2.0 → backo-0.2.1}/backo/backoffice.py +59 -13
  11. {backo-0.2.0 → backo-0.2.1}/backo/collection.py +163 -28
  12. {backo-0.2.0 → backo-0.2.1}/backo/collection_addon.py +15 -1
  13. backo-0.2.1/backo/db_backo_redirect.py +84 -0
  14. {backo-0.2.0 → backo-0.2.1}/backo/db_connector.py +8 -9
  15. backo-0.2.1/backo/db_restfull_connector.py +531 -0
  16. {backo-0.2.0 → backo-0.2.1}/backo/db_yml_connector.py +0 -1
  17. {backo-0.2.0 → backo-0.2.1}/backo/file/blob_file.py +0 -1
  18. {backo-0.2.0 → backo-0.2.1}/backo/file/file.py +1 -9
  19. {backo-0.2.0 → backo-0.2.1}/backo/file/file_blob_connector.py +7 -9
  20. {backo-0.2.0 → backo-0.2.1}/backo/file/file_connector.py +8 -7
  21. {backo-0.2.0 → backo-0.2.1}/backo/item.py +19 -3
  22. {backo-0.2.0 → backo-0.2.1}/backo/log.py +14 -0
  23. backo-0.2.1/backo/openapi.py +784 -0
  24. {backo-0.2.0 → backo-0.2.1}/backo/patch.py +1 -3
  25. {backo-0.2.0 → backo-0.2.1}/backo/ref.py +29 -5
  26. {backo-0.2.0 → backo-0.2.1}/backo/refslist.py +17 -4
  27. {backo-0.2.0 → backo-0.2.1}/backo/request_decorators.py +5 -1
  28. {backo-0.2.0 → backo-0.2.1}/backo/selection.py +16 -1
  29. {backo-0.2.0 → backo-0.2.1}/docs/source/api_reference.rst +4 -0
  30. {backo-0.2.0 → backo-0.2.1}/examples/media_library/backoffice.py +6 -2
  31. {backo-0.2.0 → backo-0.2.1}/examples/media_library/collections_set/__init__.py +2 -0
  32. {backo-0.2.0 → backo-0.2.1}/examples/nationality/backoffice.py +6 -2
  33. {backo-0.2.0 → backo-0.2.1}/examples/nationality/collections_set/countries.py +2 -1
  34. backo-0.2.1/examples/nationality/collections_set/db_country_connector.py +109 -0
  35. {backo-0.2.0 → backo-0.2.1}/examples/nationality/tests.py +2 -2
  36. backo-0.2.1/examples/rest_api_connector/README.md +137 -0
  37. backo-0.2.1/examples/rest_api_connector/__init__.py +3 -0
  38. backo-0.2.1/examples/rest_api_connector/backoffice.py +136 -0
  39. backo-0.2.1/examples/rest_api_connector/collections_set/__init__.py +4 -0
  40. backo-0.2.1/examples/rest_api_connector/collections_set/users.py +62 -0
  41. backo-0.2.1/examples/rest_api_connector/collections_set/vms.py +50 -0
  42. backo-0.2.1/examples/rest_api_connector/collections_set/vms_connector.py +104 -0
  43. backo-0.2.1/examples/rest_api_connector/config.yaml +13 -0
  44. backo-0.2.1/examples/rest_api_connector/constants.py +19 -0
  45. backo-0.2.1/examples/rest_api_connector/requirements.txt +2 -0
  46. backo-0.2.1/examples/rest_api_connector/rest-api/README.md +129 -0
  47. backo-0.2.1/examples/rest_api_connector/rest-api/collections_set/__init__.py +3 -0
  48. backo-0.2.1/examples/rest_api_connector/rest-api/collections_set/vms.py +19 -0
  49. backo-0.2.1/examples/rest_api_connector/rest-api/config.yaml +13 -0
  50. backo-0.2.1/examples/rest_api_connector/rest-api/constants.py +19 -0
  51. backo-0.2.1/examples/rest_api_connector/rest-api/rest_api.py +124 -0
  52. backo-0.2.1/examples/rest_api_connector/tests.py +148 -0
  53. {backo-0.2.0 → backo-0.2.1}/pyproject.toml +14 -5
  54. {backo-0.2.0 → backo-0.2.1}/requirements.txt +3 -1
  55. {backo-0.2.0 → backo-0.2.1}/tests/__init__.py +1 -0
  56. {backo-0.2.0 → backo-0.2.1}/tests/test_crud.py +75 -1
  57. {backo-0.2.0 → backo-0.2.1}/tests/test_current_user.py +0 -1
  58. {backo-0.2.0 → backo-0.2.1}/tests/test_log.py +8 -1
  59. {backo-0.2.0 → backo-0.2.1}/tests/test_meta.py +11 -7
  60. backo-0.2.1/tests/test_openapi.py +52 -0
  61. {backo-0.2.0 → backo-0.2.1}/tests/test_reference.py +60 -0
  62. backo-0.2.1/tests/test_rest_api_connector.py +462 -0
  63. {backo-0.2.0 → backo-0.2.1}/tests/test_routes.py +15 -0
  64. backo-0.2.0/backo/view.py +0 -60
  65. backo-0.2.0/examples/nationality/collections_set/db_country_connector.py +0 -109
  66. {backo-0.2.0 → backo-0.2.1}/.github/workflows/pylint.yml +0 -0
  67. {backo-0.2.0 → backo-0.2.1}/.github/workflows/release.yml +0 -0
  68. {backo-0.2.0 → backo-0.2.1}/.github/workflows/test.yml +0 -0
  69. {backo-0.2.0 → backo-0.2.1}/.pylintrc +0 -0
  70. {backo-0.2.0 → backo-0.2.1}/LICENSE +0 -0
  71. {backo-0.2.0 → backo-0.2.1}/backo/action.py +0 -0
  72. {backo-0.2.0 → backo-0.2.1}/backo/api_toolbox.py +0 -0
  73. {backo-0.2.0 → backo-0.2.1}/backo/current_user.py +0 -0
  74. {backo-0.2.0 → backo-0.2.1}/backo/db_mongo_connector.py +0 -0
  75. {backo-0.2.0 → backo-0.2.1}/backo/error.py +0 -0
  76. {backo-0.2.0 → backo-0.2.1}/backo/file/file_system_connector.py +0 -0
  77. {backo-0.2.0 → backo-0.2.1}/backo/loop_path.py +0 -0
  78. {backo-0.2.0 → backo-0.2.1}/backo/meta_data_handler.py +0 -0
  79. {backo-0.2.0 → backo-0.2.1}/backo/migration_report.py +0 -0
  80. {backo-0.2.0 → backo-0.2.1}/backo/status.py +0 -0
  81. {backo-0.2.0 → backo-0.2.1}/backo/transaction.py +0 -0
  82. {backo-0.2.0 → backo-0.2.1}/docs/Makefile +0 -0
  83. {backo-0.2.0 → backo-0.2.1}/docs/make.bat +0 -0
  84. {backo-0.2.0 → backo-0.2.1}/docs/requirements.txt +0 -0
  85. {backo-0.2.0 → backo-0.2.1}/docs/source/conf.py +0 -0
  86. {backo-0.2.0 → backo-0.2.1}/docs/source/errors.rst +0 -0
  87. {backo-0.2.0 → backo-0.2.1}/docs/source/index.rst +0 -0
  88. {backo-0.2.0 → backo-0.2.1}/docs/source/readme.rst +0 -0
  89. {backo-0.2.0 → backo-0.2.1}/examples/media_library/README.md +0 -0
  90. {backo-0.2.0 → backo-0.2.1}/examples/media_library/__init__.py +0 -0
  91. {backo-0.2.0 → backo-0.2.1}/examples/media_library/collections_set/books.py +0 -0
  92. {backo-0.2.0 → backo-0.2.1}/examples/media_library/collections_set/users.py +0 -0
  93. {backo-0.2.0 → backo-0.2.1}/examples/media_library/migration.py +0 -0
  94. {backo-0.2.0 → backo-0.2.1}/examples/media_library/tests.py +0 -0
  95. {backo-0.2.0 → backo-0.2.1}/examples/nationality/README.md +0 -0
  96. {backo-0.2.0 → backo-0.2.1}/examples/nationality/__init__.py +0 -0
  97. {backo-0.2.0 → backo-0.2.1}/examples/nationality/collections_set/__init__.py +0 -0
  98. {backo-0.2.0 → backo-0.2.1}/examples/nationality/collections_set/people.py +0 -0
  99. {backo-0.2.0 → backo-0.2.1}/tests/test_action.py +0 -0
  100. {backo-0.2.0 → backo-0.2.1}/tests/test_api_toolbox.py +0 -0
  101. {backo-0.2.0 → backo-0.2.1}/tests/test_file.py +0 -0
  102. {backo-0.2.0 → backo-0.2.1}/tests/test_migrations.py +0 -0
  103. {backo-0.2.0 → backo-0.2.1}/tests/test_mongo.py +0 -0
  104. {backo-0.2.0 → backo-0.2.1}/tests/test_selections.py +0 -0
@@ -0,0 +1,6 @@
1
+ [run]
2
+ source = .
3
+ omit =
4
+ tests/*
5
+ *stricto*
6
+ *__init__.py
@@ -0,0 +1,57 @@
1
+ name: TestExamples
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ python-version: ["3.12"]
11
+ services:
12
+ mongodb:
13
+ image: mongo:latest
14
+ env:
15
+ MONGO_INITDB_DATABASE: testMongo
16
+ ports:
17
+ - 27017:27017
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Set up Python ${{ matrix.python-version }}
21
+ uses: actions/setup-python@v3
22
+ with:
23
+ python-version: ${{ matrix.python-version }}
24
+ - name: Install dependencies
25
+ run: |
26
+ sudo apt-get update
27
+ sudo apt-get install -y libmagic1
28
+ python -m pip install --upgrade pip
29
+ python -m pip install -r requirements.txt
30
+ python -m pip install -r examples/rest_api_connector/requirements.txt
31
+
32
+ - name: Run media library tests
33
+ working-directory: examples/media_library
34
+ run: |
35
+ python -m unittest tests
36
+
37
+ - name: Start REST API example server
38
+ working-directory: examples/rest_api_connector/rest-api
39
+ run: |
40
+ nohup python rest_api.py &
41
+ echo $! > "$RUNNER_TEMP/rest_api_connector.pid"
42
+
43
+ - name: Wait for REST API example server
44
+ run: |
45
+ curl --retry 30 --retry-delay 1 --retry-connrefused --fail http://127.0.0.1:12345/api/v1/hypervisor/vms
46
+
47
+ - name: Run rest_api_connector tests
48
+ working-directory: examples/rest_api_connector
49
+ run: |
50
+ python -m unittest tests
51
+
52
+ - name: Stop REST API example server
53
+ if: always()
54
+ run: |
55
+ if [ -f "$RUNNER_TEMP/rest_api_connector.pid" ]; then
56
+ kill "$(cat "$RUNNER_TEMP/rest_api_connector.pid")" || true
57
+ fi
@@ -7,3 +7,4 @@ dist/
7
7
  .coverage
8
8
  coverage.svg
9
9
  coverage.xml
10
+ **/data/
@@ -6,12 +6,15 @@ version: 2
6
6
 
7
7
  # Set the OS, Python version, and other tools you might need
8
8
  build:
9
- os: ubuntu-24.04
9
+ os: ubuntu-lts-latest
10
10
  tools:
11
11
  python: "3.12"
12
12
  nodejs: "16"
13
+ apt_packages:
14
+ - libmagic1
13
15
  jobs:
14
16
  post_install:
17
+ - python -m pip install -r requirements.txt
15
18
  - npm install -g @mermaid-js/mermaid-cli
16
19
  # Build documentation in the "docs/" directory with Sphinx
17
20
  sphinx:
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
+ ## [0.2.1] 2026-06-18
9
+ * Feat
10
+ * openapi information
11
+ * DBRestfullConnector() for REST API Connector
12
+ * DBRedirect() for Redirect to Backo server (like a proxy)
13
+ * Internal
14
+ * Moving repo to backo-stricto organisation
15
+ * Doc
16
+ * Adding uv env documentation
17
+
8
18
  ## [0.2.0] 2026-06-01
9
19
  * Internal
10
20
  * Refactoring to follow stricto 0.1.x to 0.2.0
@@ -1,4 +1,4 @@
1
- # Contributing to ctricto
1
+ # Contributing to btricto
2
2
 
3
3
  Help wanted! We'd love your contributions to backo. Please review the following guidelines before contributing. Also, feel free to propose changes to these guidelines by updating this file and submitting a pull request.
4
4
 
@@ -11,17 +11,17 @@ Help wanted! We'd love your contributions to backo. Please review the following
11
11
 
12
12
  Please don't open a GitHub issue for questions about how to use `backo`, as the goal is to use issues for managing bugs and feature requests. Issues that are related to general support will be closed and redirected to our gitter room.
13
13
 
14
- For all support related questions, please use [discussions](https://github.com/bwallrich/backo/discussions).
14
+ For all support related questions, please use [discussions](https://github.com/backo-stricto/backo/discussions).
15
15
 
16
16
  ## <a id="bugs"></a> Found a Bug?
17
17
 
18
- If you've identified a bug in `backo`, please [submit an issue](#issue) to our GitHub repo: [bwallrich/backo](https://github.com/bwallrich/backo/issues/new). Please also feel free to submit a [Pull Request](#pr) with a fix for the bug!
18
+ If you've identified a bug in `backo`, please [submit an issue](#issue) to our GitHub repo: [backo-stricto/backo](https://github.com/backo-stricto/backo/issues/new). Please also feel free to submit a [Pull Request](#pr) with a fix for the bug!
19
19
 
20
20
  ## <a id="features"></a> Have a Feature Request?
21
21
 
22
22
  All feature requests should start with [submitting an issue](#issue) documenting the user story and acceptance criteria. Again, feel free to submit a [Pull Request](#pr) with a proposed implementation of the feature.
23
23
 
24
- If you are not sure, go to [discussions](https://github.com/bwallrich/backo/discussions)
24
+ If you are not sure, go to [discussions](https://github.com/backo-stricto/backo/discussions)
25
25
 
26
26
  ## <a id="process"></a> Ready to Contribute
27
27
 
@@ -33,7 +33,7 @@ Assuming no existing issues exist, please ensure you include required informatio
33
33
 
34
34
  We may have additional questions and will communicate through the GitHub issue, so please respond back to our questions to help reproduce and resolve the issue as quickly as possible.
35
35
 
36
- New issues can be created with in our [GitHub repo](https://github.com/bwallrich/backo/issues/new).
36
+ New issues can be created with in our [GitHub repo](https://github.com/backo-stricto/backo/issues/new).
37
37
 
38
38
  ### <a id="pr"></a>Pull Requests
39
39
 
@@ -51,6 +51,6 @@ Please use **sparingly**
51
51
 
52
52
  ### License
53
53
 
54
- By contributing your code, you agree to license your contribution under the terms of the [MIT License](https://github.com/bwallrich/backo/blob/main/LICENSE).
54
+ By contributing your code, you agree to license your contribution under the terms of the [MIT License](https://github.com/backo-stricto/backo/blob/main/LICENSE).
55
55
 
56
56
  All files are released with this licence.