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.
- backo-0.2.1/.coveragerc +6 -0
- backo-0.2.1/.github/workflows/test_examples.yml +57 -0
- {backo-0.2.0 → backo-0.2.1}/.gitignore +1 -0
- {backo-0.2.0 → backo-0.2.1}/.readthedocs.yaml +4 -1
- {backo-0.2.0 → backo-0.2.1}/CHANGELOG.md +10 -0
- {backo-0.2.0 → backo-0.2.1}/CONTRIBUTING.md +6 -6
- {backo-0.2.0 → backo-0.2.1}/PKG-INFO +173 -126
- {backo-0.2.0 → backo-0.2.1}/README.md +166 -121
- {backo-0.2.0 → backo-0.2.1}/backo/__init__.py +2 -0
- {backo-0.2.0 → backo-0.2.1}/backo/backoffice.py +59 -13
- {backo-0.2.0 → backo-0.2.1}/backo/collection.py +163 -28
- {backo-0.2.0 → backo-0.2.1}/backo/collection_addon.py +15 -1
- backo-0.2.1/backo/db_backo_redirect.py +84 -0
- {backo-0.2.0 → backo-0.2.1}/backo/db_connector.py +8 -9
- backo-0.2.1/backo/db_restfull_connector.py +531 -0
- {backo-0.2.0 → backo-0.2.1}/backo/db_yml_connector.py +0 -1
- {backo-0.2.0 → backo-0.2.1}/backo/file/blob_file.py +0 -1
- {backo-0.2.0 → backo-0.2.1}/backo/file/file.py +1 -9
- {backo-0.2.0 → backo-0.2.1}/backo/file/file_blob_connector.py +7 -9
- {backo-0.2.0 → backo-0.2.1}/backo/file/file_connector.py +8 -7
- {backo-0.2.0 → backo-0.2.1}/backo/item.py +19 -3
- {backo-0.2.0 → backo-0.2.1}/backo/log.py +14 -0
- backo-0.2.1/backo/openapi.py +784 -0
- {backo-0.2.0 → backo-0.2.1}/backo/patch.py +1 -3
- {backo-0.2.0 → backo-0.2.1}/backo/ref.py +29 -5
- {backo-0.2.0 → backo-0.2.1}/backo/refslist.py +17 -4
- {backo-0.2.0 → backo-0.2.1}/backo/request_decorators.py +5 -1
- {backo-0.2.0 → backo-0.2.1}/backo/selection.py +16 -1
- {backo-0.2.0 → backo-0.2.1}/docs/source/api_reference.rst +4 -0
- {backo-0.2.0 → backo-0.2.1}/examples/media_library/backoffice.py +6 -2
- {backo-0.2.0 → backo-0.2.1}/examples/media_library/collections_set/__init__.py +2 -0
- {backo-0.2.0 → backo-0.2.1}/examples/nationality/backoffice.py +6 -2
- {backo-0.2.0 → backo-0.2.1}/examples/nationality/collections_set/countries.py +2 -1
- backo-0.2.1/examples/nationality/collections_set/db_country_connector.py +109 -0
- {backo-0.2.0 → backo-0.2.1}/examples/nationality/tests.py +2 -2
- backo-0.2.1/examples/rest_api_connector/README.md +137 -0
- backo-0.2.1/examples/rest_api_connector/__init__.py +3 -0
- backo-0.2.1/examples/rest_api_connector/backoffice.py +136 -0
- backo-0.2.1/examples/rest_api_connector/collections_set/__init__.py +4 -0
- backo-0.2.1/examples/rest_api_connector/collections_set/users.py +62 -0
- backo-0.2.1/examples/rest_api_connector/collections_set/vms.py +50 -0
- backo-0.2.1/examples/rest_api_connector/collections_set/vms_connector.py +104 -0
- backo-0.2.1/examples/rest_api_connector/config.yaml +13 -0
- backo-0.2.1/examples/rest_api_connector/constants.py +19 -0
- backo-0.2.1/examples/rest_api_connector/requirements.txt +2 -0
- backo-0.2.1/examples/rest_api_connector/rest-api/README.md +129 -0
- backo-0.2.1/examples/rest_api_connector/rest-api/collections_set/__init__.py +3 -0
- backo-0.2.1/examples/rest_api_connector/rest-api/collections_set/vms.py +19 -0
- backo-0.2.1/examples/rest_api_connector/rest-api/config.yaml +13 -0
- backo-0.2.1/examples/rest_api_connector/rest-api/constants.py +19 -0
- backo-0.2.1/examples/rest_api_connector/rest-api/rest_api.py +124 -0
- backo-0.2.1/examples/rest_api_connector/tests.py +148 -0
- {backo-0.2.0 → backo-0.2.1}/pyproject.toml +14 -5
- {backo-0.2.0 → backo-0.2.1}/requirements.txt +3 -1
- {backo-0.2.0 → backo-0.2.1}/tests/__init__.py +1 -0
- {backo-0.2.0 → backo-0.2.1}/tests/test_crud.py +75 -1
- {backo-0.2.0 → backo-0.2.1}/tests/test_current_user.py +0 -1
- {backo-0.2.0 → backo-0.2.1}/tests/test_log.py +8 -1
- {backo-0.2.0 → backo-0.2.1}/tests/test_meta.py +11 -7
- backo-0.2.1/tests/test_openapi.py +52 -0
- {backo-0.2.0 → backo-0.2.1}/tests/test_reference.py +60 -0
- backo-0.2.1/tests/test_rest_api_connector.py +462 -0
- {backo-0.2.0 → backo-0.2.1}/tests/test_routes.py +15 -0
- backo-0.2.0/backo/view.py +0 -60
- backo-0.2.0/examples/nationality/collections_set/db_country_connector.py +0 -109
- {backo-0.2.0 → backo-0.2.1}/.github/workflows/pylint.yml +0 -0
- {backo-0.2.0 → backo-0.2.1}/.github/workflows/release.yml +0 -0
- {backo-0.2.0 → backo-0.2.1}/.github/workflows/test.yml +0 -0
- {backo-0.2.0 → backo-0.2.1}/.pylintrc +0 -0
- {backo-0.2.0 → backo-0.2.1}/LICENSE +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/action.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/api_toolbox.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/current_user.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/db_mongo_connector.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/error.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/file/file_system_connector.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/loop_path.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/meta_data_handler.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/migration_report.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/status.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/backo/transaction.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/docs/Makefile +0 -0
- {backo-0.2.0 → backo-0.2.1}/docs/make.bat +0 -0
- {backo-0.2.0 → backo-0.2.1}/docs/requirements.txt +0 -0
- {backo-0.2.0 → backo-0.2.1}/docs/source/conf.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/docs/source/errors.rst +0 -0
- {backo-0.2.0 → backo-0.2.1}/docs/source/index.rst +0 -0
- {backo-0.2.0 → backo-0.2.1}/docs/source/readme.rst +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/media_library/README.md +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/media_library/__init__.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/media_library/collections_set/books.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/media_library/collections_set/users.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/media_library/migration.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/media_library/tests.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/nationality/README.md +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/nationality/__init__.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/nationality/collections_set/__init__.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/examples/nationality/collections_set/people.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/tests/test_action.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/tests/test_api_toolbox.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/tests/test_file.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/tests/test_migrations.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/tests/test_mongo.py +0 -0
- {backo-0.2.0 → backo-0.2.1}/tests/test_selections.py +0 -0
backo-0.2.1/.coveragerc
ADDED
|
@@ -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
|
|
@@ -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-
|
|
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
|
|
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/
|
|
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: [
|
|
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/
|
|
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/
|
|
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/
|
|
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.
|