cloudcheck 7.0.4__tar.gz → 8.1.1rc4__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 (79) hide show
  1. cloudcheck-8.1.1rc4/.github/dependabot.yml +21 -0
  2. cloudcheck-8.1.1rc4/.github/workflows/pipeline-tests.yml +29 -0
  3. cloudcheck-8.1.1rc4/.github/workflows/python-tests.yml +243 -0
  4. cloudcheck-8.1.1rc4/.github/workflows/rust-tests.yml +50 -0
  5. cloudcheck-8.1.1rc4/.gitignore +6 -0
  6. cloudcheck-8.1.1rc4/Cargo.lock +1782 -0
  7. cloudcheck-8.1.1rc4/Cargo.toml +29 -0
  8. cloudcheck-8.1.1rc4/PKG-INFO +155 -0
  9. cloudcheck-8.1.1rc4/README.md +147 -0
  10. cloudcheck-8.1.1rc4/cloud_providers.json +37981 -0
  11. cloudcheck-8.1.1rc4/cloud_providers_v2.json +42914 -0
  12. cloudcheck-8.1.1rc4/cloudcheck/__init__.py +3 -0
  13. cloudcheck-8.1.1rc4/cloudcheck_update/__init__.py +89 -0
  14. cloudcheck-8.1.1rc4/cloudcheck_update/cli.py +13 -0
  15. cloudcheck-8.1.1rc4/cloudcheck_update/helpers.py +211 -0
  16. cloudcheck-8.1.1rc4/cloudcheck_update/providers/akamai.py +33 -0
  17. cloudcheck-8.1.1rc4/cloudcheck_update/providers/alibaba.py +11 -0
  18. cloudcheck-8.1.1rc4/cloudcheck_update/providers/amazon.py +37 -0
  19. cloudcheck-8.1.1rc4/cloudcheck_update/providers/arvancloud.py +20 -0
  20. cloudcheck-8.1.1rc4/cloudcheck_update/providers/azure.py +37 -0
  21. cloudcheck-8.1.1rc4/cloudcheck_update/providers/backblaze.py +11 -0
  22. cloudcheck-8.1.1rc4/cloudcheck_update/providers/base.py +303 -0
  23. cloudcheck-8.1.1rc4/cloudcheck_update/providers/cisco.py +39 -0
  24. cloudcheck-8.1.1rc4/cloudcheck_update/providers/cloudflare.py +40 -0
  25. cloudcheck-8.1.1rc4/cloudcheck_update/providers/cloudfront.py +18 -0
  26. cloudcheck-8.1.1rc4/cloudcheck_update/providers/dell.py +11 -0
  27. cloudcheck-8.1.1rc4/cloudcheck_update/providers/digitalocean.py +30 -0
  28. cloudcheck-8.1.1rc4/cloudcheck_update/providers/fastly.py +22 -0
  29. cloudcheck-8.1.1rc4/cloudcheck_update/providers/github.py +28 -0
  30. cloudcheck-8.1.1rc4/cloudcheck_update/providers/google.py +61 -0
  31. cloudcheck-8.1.1rc4/cloudcheck_update/providers/heroku.py +7 -0
  32. cloudcheck-8.1.1rc4/cloudcheck_update/providers/hetzner.py +18 -0
  33. cloudcheck-8.1.1rc4/cloudcheck_update/providers/hpe.py +12 -0
  34. cloudcheck-8.1.1rc4/cloudcheck_update/providers/huawei.py +17 -0
  35. cloudcheck-8.1.1rc4/cloudcheck_update/providers/ibm.py +57 -0
  36. cloudcheck-8.1.1rc4/cloudcheck_update/providers/imperva.py +24 -0
  37. cloudcheck-8.1.1rc4/cloudcheck_update/providers/kamatera.py +17 -0
  38. cloudcheck-8.1.1rc4/cloudcheck_update/providers/oracle.py +31 -0
  39. cloudcheck-8.1.1rc4/cloudcheck_update/providers/ovh.py +15 -0
  40. cloudcheck-8.1.1rc4/cloudcheck_update/providers/rackspace.py +21 -0
  41. cloudcheck-8.1.1rc4/cloudcheck_update/providers/salesforce.py +15 -0
  42. cloudcheck-8.1.1rc4/cloudcheck_update/providers/scaleway.py +15 -0
  43. cloudcheck-8.1.1rc4/cloudcheck_update/providers/tencent.py +15 -0
  44. cloudcheck-8.1.1rc4/cloudcheck_update/providers/wasabi.py +15 -0
  45. cloudcheck-8.1.1rc4/cloudcheck_update/providers/zoho.py +25 -0
  46. cloudcheck-8.1.1rc4/cloudcheck_update/test_cloudcheck_update.py +283 -0
  47. cloudcheck-8.1.1rc4/dist/cloudcheck-8.1.1rc4-cp314-cp314-manylinux_2_34_x86_64.whl +0 -0
  48. cloudcheck-8.1.1rc4/pyproject.toml +25 -0
  49. cloudcheck-8.1.1rc4/pytest.ini +7 -0
  50. cloudcheck-8.1.1rc4/src/lib.rs +194 -0
  51. cloudcheck-8.1.1rc4/src/main.rs +23 -0
  52. cloudcheck-8.1.1rc4/src/python.rs +47 -0
  53. cloudcheck-8.1.1rc4/test_cloudcheck.py +18 -0
  54. cloudcheck-8.1.1rc4/uv.lock +565 -0
  55. cloudcheck-7.0.4/PKG-INFO +0 -71
  56. cloudcheck-7.0.4/README.md +0 -46
  57. cloudcheck-7.0.4/cloud_providers.json +0 -1
  58. cloudcheck-7.0.4/cloudcheck/__init__.py +0 -14
  59. cloudcheck-7.0.4/cloudcheck/cloudcheck.py +0 -33
  60. cloudcheck-7.0.4/cloudcheck/helpers.py +0 -26
  61. cloudcheck-7.0.4/cloudcheck/providers/__init__.py +0 -144
  62. cloudcheck-7.0.4/cloudcheck/providers/akamai.py +0 -142
  63. cloudcheck-7.0.4/cloudcheck/providers/amazon.py +0 -55
  64. cloudcheck-7.0.4/cloudcheck/providers/arvancloud.py +0 -22
  65. cloudcheck-7.0.4/cloudcheck/providers/azure.py +0 -159
  66. cloudcheck-7.0.4/cloudcheck/providers/base.py +0 -173
  67. cloudcheck-7.0.4/cloudcheck/providers/cloudflare.py +0 -58
  68. cloudcheck-7.0.4/cloudcheck/providers/cloudfront.py +0 -21
  69. cloudcheck-7.0.4/cloudcheck/providers/digitalocean.py +0 -25
  70. cloudcheck-7.0.4/cloudcheck/providers/fastly.py +0 -22
  71. cloudcheck-7.0.4/cloudcheck/providers/github.py +0 -22
  72. cloudcheck-7.0.4/cloudcheck/providers/google.py +0 -33
  73. cloudcheck-7.0.4/cloudcheck/providers/hetzner.py +0 -25
  74. cloudcheck-7.0.4/cloudcheck/providers/imperva.py +0 -21
  75. cloudcheck-7.0.4/cloudcheck/providers/oracle.py +0 -23
  76. cloudcheck-7.0.4/cloudcheck/providers/zoho.py +0 -23
  77. cloudcheck-7.0.4/cloudcheck/test/__init__.py +0 -0
  78. cloudcheck-7.0.4/cloudcheck/test/test_cloudcheck.py +0 -88
  79. cloudcheck-7.0.4/pyproject.toml +0 -42
@@ -0,0 +1,21 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "uv"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "weekly"
12
+ target-branch: "master"
13
+ open-pull-requests-limit: 10
14
+ - package-ecosystem: github-actions
15
+ directory: /
16
+ groups:
17
+ github-actions:
18
+ patterns:
19
+ - "*" # Group all Actions updates into a single larger pull request
20
+ schedule:
21
+ interval: weekly
@@ -0,0 +1,29 @@
1
+ name: Pipeline Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v6
14
+
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v6
17
+ with:
18
+ python-version: 3.x
19
+
20
+ - name: Set up uv
21
+ uses: astral-sh/setup-uv@v7
22
+
23
+ - name: Install dependencies
24
+ run: |
25
+ uv sync
26
+
27
+ - name: Run tests
28
+ run: |
29
+ uv run pytest cloudcheck_update/test_cloudcheck_update.py -v
@@ -0,0 +1,243 @@
1
+ name: Python Tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - cloudcheck-v8
8
+ pull_request:
9
+
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
+ strategy:
14
+ matrix:
15
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
16
+
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v6
22
+ with:
23
+ python-version: ${{ matrix.python-version }}
24
+
25
+ - name: Set up uv
26
+ uses: astral-sh/setup-uv@v7
27
+
28
+ - name: Install Rust toolchain
29
+ uses: actions-rust-lang/setup-rust-toolchain@v1
30
+
31
+ - name: Install dependencies
32
+ run: |
33
+ uv sync
34
+
35
+ - name: Build Python bindings
36
+ run: |
37
+ uv run maturin develop --release --features pyo3
38
+
39
+ - name: Run Python tests
40
+ run: |
41
+ uv run pytest test_cloudcheck.py -v
42
+
43
+ publish:
44
+ runs-on: ubuntu-latest
45
+ needs: test
46
+ if: github.event_name == 'push' && github.ref == 'refs/heads/cloudcheck-v8'
47
+ steps:
48
+ - uses: actions/checkout@v6
49
+ - name: Set up Python
50
+ uses: actions/setup-python@v6
51
+ with:
52
+ python-version: "3.x"
53
+ - name: Set up Rust
54
+ uses: dtolnay/rust-toolchain@stable
55
+ - name: Set up uv
56
+ uses: astral-sh/setup-uv@v7
57
+ - name: Build PyPi package
58
+ run: uv run maturin build --release --out dist
59
+ - name: Publish PyPi package
60
+ run: uv run maturin publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}
61
+
62
+ linux:
63
+ runs-on: ${{ matrix.platform.runner }}
64
+ needs: publish
65
+ if: github.event_name == 'push' && github.ref == 'refs/heads/cloudcheck-v8'
66
+ strategy:
67
+ matrix:
68
+ platform:
69
+ - runner: ubuntu-22.04
70
+ target: x86_64
71
+ - runner: ubuntu-22.04
72
+ target: x86
73
+ - runner: ubuntu-22.04
74
+ target: aarch64
75
+ - runner: ubuntu-22.04
76
+ target: armv7
77
+ - runner: ubuntu-22.04
78
+ target: s390x
79
+ - runner: ubuntu-22.04
80
+ target: ppc64le
81
+ steps:
82
+ - uses: actions/checkout@v6
83
+ - uses: actions/setup-python@v6
84
+ with:
85
+ python-version: 3.x
86
+ - name: Build wheels
87
+ uses: PyO3/maturin-action@v1
88
+ with:
89
+ target: ${{ matrix.platform.target }}
90
+ args: --release --out dist --find-interpreter
91
+ sccache: false
92
+ manylinux: auto
93
+ before-script-linux: |
94
+ case "${{ matrix.platform.target }}" in
95
+ "aarch64" | "armv7" | "s390x" | "ppc64le")
96
+ # NOTE: pypa/manylinux docker images are Debian based
97
+ sudo apt-get update
98
+ sudo apt-get install -y pkg-config libssl-dev
99
+ ;;
100
+ "x86" | "x86_64")
101
+ # NOTE: rust-cross/manylinux docker images are CentOS based
102
+ yum update -y
103
+ yum install -y openssl openssl-devel
104
+ ;;
105
+ esac
106
+ - name: Upload wheels
107
+ uses: actions/upload-artifact@v5
108
+ with:
109
+ name: wheels-linux-${{ matrix.platform.target }}
110
+ path: dist
111
+
112
+ musllinux:
113
+ runs-on: ${{ matrix.platform.runner }}
114
+ needs: publish
115
+ if: github.event_name == 'push' && github.ref == 'refs/heads/cloudcheck-v8'
116
+ strategy:
117
+ matrix:
118
+ platform:
119
+ - runner: ubuntu-22.04
120
+ target: x86_64
121
+ - runner: ubuntu-22.04
122
+ target: x86
123
+ - runner: ubuntu-22.04
124
+ target: aarch64
125
+ - runner: ubuntu-22.04
126
+ target: armv7
127
+ steps:
128
+ - uses: actions/checkout@v6
129
+ - uses: actions/setup-python@v6
130
+ with:
131
+ python-version: 3.x
132
+ - name: Build wheels
133
+ uses: PyO3/maturin-action@v1
134
+ with:
135
+ target: ${{ matrix.platform.target }}
136
+ args: --release --out dist --find-interpreter
137
+ sccache: false
138
+ manylinux: musllinux_1_2
139
+ - name: Upload wheels
140
+ uses: actions/upload-artifact@v5
141
+ with:
142
+ name: wheels-musllinux-${{ matrix.platform.target }}
143
+ path: dist
144
+
145
+ windows:
146
+ runs-on: ${{ matrix.platform.runner }}
147
+ needs: publish
148
+ if: github.event_name == 'push' && github.ref == 'refs/heads/cloudcheck-v8'
149
+ strategy:
150
+ matrix:
151
+ platform:
152
+ - runner: windows-latest
153
+ target: x64
154
+ - runner: windows-latest
155
+ target: x86
156
+ steps:
157
+ - uses: actions/checkout@v6
158
+ - uses: actions/setup-python@v6
159
+ with:
160
+ python-version: 3.x
161
+ architecture: ${{ matrix.platform.target }}
162
+ - name: Build wheels
163
+ uses: PyO3/maturin-action@v1
164
+ with:
165
+ target: ${{ matrix.platform.target }}
166
+ args: --release --out dist --find-interpreter
167
+ sccache: false
168
+ - name: Upload wheels
169
+ uses: actions/upload-artifact@v5
170
+ with:
171
+ name: wheels-windows-${{ matrix.platform.target }}
172
+ path: dist
173
+
174
+ macos:
175
+ runs-on: ${{ matrix.platform.runner }}
176
+ needs: publish
177
+ if: github.event_name == 'push' && github.ref == 'refs/heads/cloudcheck-v8'
178
+ strategy:
179
+ matrix:
180
+ platform:
181
+ - runner: macos-15-intel
182
+ target: x86_64
183
+ - runner: macos-latest
184
+ target: aarch64
185
+ steps:
186
+ - uses: actions/checkout@v6
187
+ - uses: actions/setup-python@v6
188
+ with:
189
+ python-version: 3.x
190
+ - name: Build wheels
191
+ uses: PyO3/maturin-action@v1
192
+ with:
193
+ target: ${{ matrix.platform.target }}
194
+ args: --release --out dist
195
+ sccache: false
196
+ - name: Upload wheels
197
+ uses: actions/upload-artifact@v5
198
+ with:
199
+ name: wheels-macos-${{ matrix.platform.target }}
200
+ path: dist
201
+
202
+ sdist:
203
+ runs-on: ubuntu-latest
204
+ needs: publish
205
+ if: github.event_name == 'push' && github.ref == 'refs/heads/cloudcheck-v8'
206
+ steps:
207
+ - uses: actions/checkout@v6
208
+ - name: Build sdist
209
+ uses: PyO3/maturin-action@v1
210
+ with:
211
+ command: sdist
212
+ args: --out dist
213
+ - name: Upload sdist
214
+ uses: actions/upload-artifact@v5
215
+ with:
216
+ name: wheels-sdist
217
+ path: dist
218
+
219
+ release:
220
+ name: Release
221
+ runs-on: ubuntu-latest
222
+ needs: [linux, musllinux, windows, macos, sdist]
223
+ if: github.event_name == 'push' && github.ref == 'refs/heads/cloudcheck-v8'
224
+ permissions:
225
+ # Use to sign the release artifacts
226
+ id-token: write
227
+ # Used to upload release artifacts
228
+ contents: write
229
+ # Used to generate artifact attestation
230
+ attestations: write
231
+ steps:
232
+ - uses: actions/download-artifact@v6
233
+ - name: Generate artifact attestation
234
+ uses: actions/attest-build-provenance@v3
235
+ with:
236
+ subject-path: 'wheels-*/*'
237
+ - name: Publish wheels to PyPI
238
+ uses: PyO3/maturin-action@v1
239
+ env:
240
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
241
+ with:
242
+ command: upload
243
+ args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,50 @@
1
+ name: Rust tests
2
+
3
+ on:
4
+ push:
5
+ branches: [ stable ]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v6
14
+
15
+ - name: Install Rust toolchain
16
+ uses: actions-rust-lang/setup-rust-toolchain@v1
17
+
18
+ - name: Cache Rust dependencies
19
+ uses: actions/cache@v4
20
+ with:
21
+ path: |
22
+ ~/.cargo/registry
23
+ ~/.cargo/git
24
+ target
25
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
26
+ restore-keys: |
27
+ ${{ runner.os }}-cargo-
28
+
29
+ - name: Check formatting
30
+ run: cargo fmt --all -- --check
31
+
32
+ - name: Run clippy
33
+ run: cargo clippy --all-targets --all-features -- -D warnings
34
+
35
+ - name: Run tests
36
+ run: cargo test --verbose --all-features
37
+
38
+ publish:
39
+ needs: test
40
+ runs-on: ubuntu-latest
41
+ if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
42
+
43
+ steps:
44
+ - uses: actions/checkout@v6
45
+
46
+ - name: Install Rust toolchain
47
+ uses: actions-rust-lang/setup-rust-toolchain@v1
48
+
49
+ - name: Publish to crates.io
50
+ run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
@@ -0,0 +1,6 @@
1
+ # Rust
2
+ /target/
3
+ **/*.rs.bk
4
+
5
+ # Python
6
+ __pycache__/