larrot 1.0.0__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 (123) hide show
  1. larrot-1.0.0/.github/workflows/ci.yml +63 -0
  2. larrot-1.0.0/.gitignore +12 -0
  3. larrot-1.0.0/API_DOCS_RESEARCH.md +862 -0
  4. larrot-1.0.0/ARCHITECTURE.docx +0 -0
  5. larrot-1.0.0/ARCHITECTURE.md +261 -0
  6. larrot-1.0.0/CONFORMANCE_REPORT.md +199 -0
  7. larrot-1.0.0/CONTRIBUTING.md +100 -0
  8. larrot-1.0.0/DECISIONS.docx +0 -0
  9. larrot-1.0.0/DECISIONS.md +281 -0
  10. larrot-1.0.0/DEVELOPMENT_PLAN.md +353 -0
  11. larrot-1.0.0/DEVLOG.md +370 -0
  12. larrot-1.0.0/Dockerfile +12 -0
  13. larrot-1.0.0/EMPIRICAL_SPEC.md +83 -0
  14. larrot-1.0.0/LICENSE +176 -0
  15. larrot-1.0.0/PKG-INFO +173 -0
  16. larrot-1.0.0/PROGRESS.md +46 -0
  17. larrot-1.0.0/README.md +146 -0
  18. larrot-1.0.0/docker-compose.yml +14 -0
  19. larrot-1.0.0/docs/EXAMPLES.md +185 -0
  20. larrot-1.0.0/ims-api-research.md +486 -0
  21. larrot-1.0.0/larrot/__init__.py +8 -0
  22. larrot-1.0.0/larrot/__main__.py +39 -0
  23. larrot-1.0.0/larrot/app.py +241 -0
  24. larrot-1.0.0/larrot/cli.py +450 -0
  25. larrot-1.0.0/larrot/core/__init__.py +1 -0
  26. larrot-1.0.0/larrot/core/envelopes.py +39 -0
  27. larrot-1.0.0/larrot/core/jobs.py +140 -0
  28. larrot-1.0.0/larrot/core/profiles.py +15 -0
  29. larrot-1.0.0/larrot/core/ratelimit.py +57 -0
  30. larrot-1.0.0/larrot/core/signing.py +263 -0
  31. larrot-1.0.0/larrot/core/state.py +145 -0
  32. larrot-1.0.0/larrot/dashboard.py +126 -0
  33. larrot-1.0.0/larrot/middleware.py +79 -0
  34. larrot-1.0.0/larrot/persistence.py +63 -0
  35. larrot-1.0.0/larrot/services/__init__.py +1 -0
  36. larrot-1.0.0/larrot/services/acl.py +144 -0
  37. larrot-1.0.0/larrot/services/antiddos.py +23 -0
  38. larrot-1.0.0/larrot/services/aom.py +27 -0
  39. larrot-1.0.0/larrot/services/apig.py +47 -0
  40. larrot-1.0.0/larrot/services/as_.py +58 -0
  41. larrot-1.0.0/larrot/services/batch.py +59 -0
  42. larrot-1.0.0/larrot/services/bms.py +39 -0
  43. larrot-1.0.0/larrot/services/bss.py +21 -0
  44. larrot-1.0.0/larrot/services/cbr.py +360 -0
  45. larrot-1.0.0/larrot/services/cce.py +135 -0
  46. larrot-1.0.0/larrot/services/cci.py +129 -0
  47. larrot-1.0.0/larrot/services/cdn.py +181 -0
  48. larrot-1.0.0/larrot/services/ces.py +49 -0
  49. larrot-1.0.0/larrot/services/cfw.py +164 -0
  50. larrot-1.0.0/larrot/services/codearts.py +179 -0
  51. larrot-1.0.0/larrot/services/cse.py +116 -0
  52. larrot-1.0.0/larrot/services/css.py +159 -0
  53. larrot-1.0.0/larrot/services/dataarts.py +159 -0
  54. larrot-1.0.0/larrot/services/dbss.py +65 -0
  55. larrot-1.0.0/larrot/services/dc.py +168 -0
  56. larrot-1.0.0/larrot/services/dcs.py +44 -0
  57. larrot-1.0.0/larrot/services/dcs_extras.py +92 -0
  58. larrot-1.0.0/larrot/services/ddm.py +93 -0
  59. larrot-1.0.0/larrot/services/dds.py +43 -0
  60. larrot-1.0.0/larrot/services/des.py +73 -0
  61. larrot-1.0.0/larrot/services/dis.py +153 -0
  62. larrot-1.0.0/larrot/services/dli.py +28 -0
  63. larrot-1.0.0/larrot/services/dms.py +46 -0
  64. larrot-1.0.0/larrot/services/dns.py +111 -0
  65. larrot-1.0.0/larrot/services/dsc.py +101 -0
  66. larrot-1.0.0/larrot/services/dws.py +150 -0
  67. larrot-1.0.0/larrot/services/ecs.py +579 -0
  68. larrot-1.0.0/larrot/services/ecs_extras.py +243 -0
  69. larrot-1.0.0/larrot/services/ecs_keypairs.py +65 -0
  70. larrot-1.0.0/larrot/services/ecs_server_groups.py +61 -0
  71. larrot-1.0.0/larrot/services/elb.py +225 -0
  72. larrot-1.0.0/larrot/services/eps.py +38 -0
  73. larrot-1.0.0/larrot/services/er.py +172 -0
  74. larrot-1.0.0/larrot/services/evs.py +356 -0
  75. larrot-1.0.0/larrot/services/functiongraph.py +112 -0
  76. larrot-1.0.0/larrot/services/gaussdb.py +43 -0
  77. larrot-1.0.0/larrot/services/geminidb.py +72 -0
  78. larrot-1.0.0/larrot/services/hpc.py +68 -0
  79. larrot-1.0.0/larrot/services/hss.py +152 -0
  80. larrot-1.0.0/larrot/services/iam.py +92 -0
  81. larrot-1.0.0/larrot/services/ief.py +134 -0
  82. larrot-1.0.0/larrot/services/ims.py +223 -0
  83. larrot-1.0.0/larrot/services/iotda.py +48 -0
  84. larrot-1.0.0/larrot/services/kms.py +100 -0
  85. larrot-1.0.0/larrot/services/lts.py +50 -0
  86. larrot-1.0.0/larrot/services/modelarts.py +397 -0
  87. larrot-1.0.0/larrot/services/mrs.py +123 -0
  88. larrot-1.0.0/larrot/services/nat.py +134 -0
  89. larrot-1.0.0/larrot/services/obs.py +356 -0
  90. larrot-1.0.0/larrot/services/oms.py +91 -0
  91. larrot-1.0.0/larrot/services/peering.py +77 -0
  92. larrot-1.0.0/larrot/services/rds.py +125 -0
  93. larrot-1.0.0/larrot/services/rds_extras.py +257 -0
  94. larrot-1.0.0/larrot/services/routes.py +72 -0
  95. larrot-1.0.0/larrot/services/servicestage.py +168 -0
  96. larrot-1.0.0/larrot/services/sfs.py +106 -0
  97. larrot-1.0.0/larrot/services/smn.py +51 -0
  98. larrot-1.0.0/larrot/services/sms.py +163 -0
  99. larrot-1.0.0/larrot/services/swr.py +31 -0
  100. larrot-1.0.0/larrot/services/tms.py +23 -0
  101. larrot-1.0.0/larrot/services/vod.py +169 -0
  102. larrot-1.0.0/larrot/services/vpc.py +491 -0
  103. larrot-1.0.0/larrot/services/vpn.py +62 -0
  104. larrot-1.0.0/larrot/services/waf.py +47 -0
  105. larrot-1.0.0/pyproject.toml +55 -0
  106. larrot-1.0.0/tests/conftest.py +1 -0
  107. larrot-1.0.0/tests/test_20_services.py +218 -0
  108. larrot-1.0.0/tests/test_async_lifecycle.py +289 -0
  109. larrot-1.0.0/tests/test_compute.py +237 -0
  110. larrot-1.0.0/tests/test_core.py +201 -0
  111. larrot-1.0.0/tests/test_cross_service.py +332 -0
  112. larrot-1.0.0/tests/test_database.py +286 -0
  113. larrot-1.0.0/tests/test_edge_cases.py +256 -0
  114. larrot-1.0.0/tests/test_infra.py +331 -0
  115. larrot-1.0.0/tests/test_networking.py +179 -0
  116. larrot-1.0.0/tests/test_new_services.py +207 -0
  117. larrot-1.0.0/tests/test_new_services_v2.py +1096 -0
  118. larrot-1.0.0/tests/test_pagination_filters.py +204 -0
  119. larrot-1.0.0/tests/test_services.py +163 -0
  120. larrot-1.0.0/tools/conformance.py +335 -0
  121. larrot-1.0.0/tools/negative_tests.py +743 -0
  122. larrot-1.0.0/tools/smoke.py +232 -0
  123. larrot-1.0.0/tools/start.sh +14 -0
@@ -0,0 +1,63 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.11", "3.12"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up Python ${{ matrix.python-version }}
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: Install dependencies
25
+ run: |
26
+ pip install fastapi uvicorn pydantic pytest pytest-asyncio httpx ruff
27
+
28
+ - name: Lint
29
+ run: |
30
+ ruff check larrot/
31
+
32
+ - name: Unit + integration tests
33
+ run: |
34
+ PYTHONPATH=. python -m pytest tests/ -v --tb=short
35
+
36
+ - name: Start server + smoke suite
37
+ run: |
38
+ PYTHONPATH=. python -c "
39
+ import threading, uvicorn, time
40
+ from larrot.app import create_app, create_obs_app
41
+ app = create_app()
42
+ obs_app = create_obs_app()
43
+ threading.Thread(target=lambda: uvicorn.run(app, host='127.0.0.1', port=8200, log_level='error'), daemon=True).start()
44
+ threading.Thread(target=lambda: uvicorn.run(obs_app, host='127.0.0.1', port=8201, log_level='error'), daemon=True).start()
45
+ time.sleep(2)
46
+ print('READY')
47
+ " &
48
+ sleep 4
49
+ python3 tools/smoke.py
50
+
51
+ docker:
52
+ runs-on: ubuntu-latest
53
+ steps:
54
+ - uses: actions/checkout@v4
55
+ - name: Build Docker image
56
+ run: docker build -t larrot .
57
+ - name: Smoke test in Docker
58
+ run: |
59
+ docker run -d -p 8200:8200 -p 8201:8201 larrot
60
+ sleep 5
61
+ curl -s http://127.0.0.1:8200/v3/projects | grep -q "ap-southeast-1"
62
+ curl -s http://127.0.0.1:8201/ | grep -q "ListAllMyBucketsResult"
63
+ echo "Docker smoke test passed"
@@ -0,0 +1,12 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .pytest_cache/
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ .env
8
+ .venv/
9
+ node_modules/
10
+ target/
11
+ *.log
12
+ .DS_Store