swanlabs-sdk 0.0.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.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.pyc
|
|
4
|
+
.pytest_cache/
|
|
5
|
+
*.egg-info/
|
|
6
|
+
dist/
|
|
7
|
+
build/
|
|
8
|
+
.private_keys/
|
|
9
|
+
.verilock_private/
|
|
10
|
+
**/.verilock_private/
|
|
11
|
+
.authority_private/
|
|
12
|
+
**/.authority_private/
|
|
13
|
+
.custodian_private/
|
|
14
|
+
**/.custodian_private/
|
|
15
|
+
native/bin/
|
|
16
|
+
native/*/bin/
|
|
17
|
+
verilock_go_verifier/bin/
|
|
18
|
+
engines/julia/docs/build/
|
|
19
|
+
node_modules/
|
|
20
|
+
**/node_modules/
|
|
21
|
+
.astro/
|
|
22
|
+
**/.astro/
|
|
23
|
+
dist/
|
|
24
|
+
**/dist/
|
|
25
|
+
.env
|
|
26
|
+
.env.*
|
|
27
|
+
!.env.example
|
|
28
|
+
test-results/
|
|
29
|
+
playwright-report/
|
|
30
|
+
.DS_Store
|
|
31
|
+
formal/proofs/.lake/
|
|
32
|
+
.cloudflare/
|
|
33
|
+
**/.cloudflare/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Copyright 2026 Swan Labs, LLC
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: swanlabs-sdk
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Official public Python SDK for Swan Labs, LLC verification and telemetry APIs (https://swanlabs.si).
|
|
5
|
+
Project-URL: Homepage, https://swanlabs.si
|
|
6
|
+
Project-URL: Documentation, https://swanlabs.si
|
|
7
|
+
Project-URL: Support, https://swanlabs.si/#contact
|
|
8
|
+
Author-email: "Swan Labs, LLC" <info@swanlabs.si>
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: mathematics,sdk,swanlabs,telemetry,verification
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# swanlabs-sdk
|
|
26
|
+
|
|
27
|
+
Official public Python SDK for **Swan Labs, LLC** (<https://swanlabs.si>) public verification and telemetry endpoints.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install swanlabs-sdk
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Quickstart
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from swanlabs_sdk import SwanLabsPublicClient
|
|
39
|
+
|
|
40
|
+
client = SwanLabsPublicClient()
|
|
41
|
+
print(client.version)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Contact & Licensing
|
|
45
|
+
|
|
46
|
+
- **Website:** <https://swanlabs.si>
|
|
47
|
+
- **Developer Support:** `developers@swanlabs.si`
|
|
48
|
+
- **Partnerships & Commercial Licensing:** `partnerships@swanlabs.si`
|
|
49
|
+
- **Public SDK License:** Apache-2.0
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# swanlabs-sdk
|
|
2
|
+
|
|
3
|
+
Official public Python SDK for **Swan Labs, LLC** (<https://swanlabs.si>) public verification and telemetry endpoints.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install swanlabs-sdk
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quickstart
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from swanlabs_sdk import SwanLabsPublicClient
|
|
15
|
+
|
|
16
|
+
client = SwanLabsPublicClient()
|
|
17
|
+
print(client.version)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Contact & Licensing
|
|
21
|
+
|
|
22
|
+
- **Website:** <https://swanlabs.si>
|
|
23
|
+
- **Developer Support:** `developers@swanlabs.si`
|
|
24
|
+
- **Partnerships & Commercial Licensing:** `partnerships@swanlabs.si`
|
|
25
|
+
- **Public SDK License:** Apache-2.0
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "swanlabs-sdk"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "Official public Python SDK for Swan Labs, LLC verification and telemetry APIs (https://swanlabs.si)."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Swan Labs, LLC", email = "info@swanlabs.si" }
|
|
14
|
+
]
|
|
15
|
+
keywords = ["swanlabs", "sdk", "verification", "telemetry", "mathematics"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Intended Audience :: Science/Research",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"License :: OSI Approved :: Apache Software License",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Programming Language :: Python :: 3.13",
|
|
26
|
+
"Typing :: Typed",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://swanlabs.si"
|
|
31
|
+
Documentation = "https://swanlabs.si"
|
|
32
|
+
Support = "https://swanlabs.si/#contact"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Official public Python SDK for Swan Labs, LLC (https://swanlabs.si)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
import urllib.request
|
|
7
|
+
from typing import Any
|
|
8
|
+
|
|
9
|
+
__version__ = "0.0.1"
|
|
10
|
+
__all__ = ["__version__", "SwanLabsPublicClient"]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class SwanLabsPublicClient:
|
|
14
|
+
"""Zero-dependency HTTP client for public Swan Labs verification and status endpoints."""
|
|
15
|
+
|
|
16
|
+
def __init__(self, base_url: str = "https://swanlabs.si", timeout: float = 10.0) -> None:
|
|
17
|
+
self.base_url = base_url.rstrip("/")
|
|
18
|
+
self.timeout = timeout
|
|
19
|
+
|
|
20
|
+
@property
|
|
21
|
+
def version(self) -> str:
|
|
22
|
+
return __version__
|
|
23
|
+
|
|
24
|
+
def check_site_reachable(self) -> dict[str, Any]:
|
|
25
|
+
req = urllib.request.Request(
|
|
26
|
+
f"{self.base_url}/",
|
|
27
|
+
headers={"User-Agent": f"swanlabs-sdk-python/{__version__}"},
|
|
28
|
+
)
|
|
29
|
+
with urllib.request.urlopen(req, timeout=self.timeout) as resp:
|
|
30
|
+
ctype = resp.headers.get("Content-Type", "")
|
|
31
|
+
raw = resp.read().decode("utf-8", errors="replace")
|
|
32
|
+
if "application/json" in ctype:
|
|
33
|
+
return json.loads(raw)
|
|
34
|
+
return {"ok": resp.status == 200, "status_code": resp.status, "base_url": self.base_url}
|
|
File without changes
|