davidkhala.cf 0.0.0__py3-none-any.whl

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.
@@ -0,0 +1,17 @@
1
+ from functools import cached_property
2
+
3
+ from cloudflare import Cloudflare
4
+
5
+
6
+ class Client:
7
+ def __init__(self, CLOUDFLARE_API_TOKEN):
8
+ super().__init__()
9
+ self.client = Cloudflare(api_token=CLOUDFLARE_API_TOKEN)
10
+
11
+ @cached_property
12
+ def accounts(self)-> list[str]:
13
+ """
14
+ required Authorization: `Account Settings: Read`
15
+ """
16
+ pages = self.client.accounts.list()
17
+ return [_.id for _ in pages.result]
@@ -0,0 +1,6 @@
1
+ Metadata-Version: 2.5
2
+ Name: davidkhala.cf
3
+ Version: 0.0.0
4
+ Summary: cloudflare
5
+ Requires-Python: >=3.12
6
+ Requires-Dist: cloudflare
@@ -0,0 +1,4 @@
1
+ davidkhala/cf/__init__.py,sha256=MVceqC1hi2FX0_MluyfCPQhluoVmVm0VslNihPuA3pY,471
2
+ davidkhala_cf-0.0.0.dist-info/METADATA,sha256=hEMzQI1qPVdBtvqRXlJ6nKEGTvM-9t2zj7ogV71XG80,127
3
+ davidkhala_cf-0.0.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
4
+ davidkhala_cf-0.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any