yama-client 0.1.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.
- yama_client-0.1.0/LICENSE +21 -0
- yama_client-0.1.0/PKG-INFO +101 -0
- yama_client-0.1.0/README.md +77 -0
- yama_client-0.1.0/pyproject.toml +95 -0
- yama_client-0.1.0/pyproject.toml.orig +76 -0
- yama_client-0.1.0/src/yama/__init__.py +82 -0
- yama_client-0.1.0/src/yama/_client.py +404 -0
- yama_client-0.1.0/src/yama/_errors.py +123 -0
- yama_client-0.1.0/src/yama/_pagination.py +43 -0
- yama_client-0.1.0/src/yama/_resources.py +287 -0
- yama_client-0.1.0/src/yama/models.py +278 -0
- yama_client-0.1.0/src/yama/py.typed +0 -0
- yama_client-0.1.0/src/yama/testing.py +353 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yama Access Software Systems Ltd.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: yama-client
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The official Python client for the Yama access-control API
|
|
5
|
+
Keywords: yama,access control,intercom,api,client
|
|
6
|
+
Author: Yama Access Software Systems Ltd.
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Typing :: Typed
|
|
15
|
+
Requires-Dist: httpx>=0.27
|
|
16
|
+
Requires-Dist: pydantic>=2.7
|
|
17
|
+
Requires-Python: >=3.10
|
|
18
|
+
Project-URL: Homepage, https://yamasystems.com
|
|
19
|
+
Project-URL: Documentation, https://yass-ltd.github.io/yama-python/
|
|
20
|
+
Project-URL: Source, https://github.com/YASS-Ltd/yama-python
|
|
21
|
+
Project-URL: Issues, https://github.com/YASS-Ltd/yama-python/issues
|
|
22
|
+
Project-URL: Release notes, https://github.com/YASS-Ltd/yama-python/releases
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<picture>
|
|
27
|
+
<source media="(prefers-color-scheme: dark)" srcset=".github/assets/yama-logo-dark.svg">
|
|
28
|
+
<img src=".github/assets/yama-logo-light.svg" alt="Yama" width="280">
|
|
29
|
+
</picture>
|
|
30
|
+
</p>
|
|
31
|
+
|
|
32
|
+
<p align="center">
|
|
33
|
+
<em>The official Python client for the Yama access-control API.</em>
|
|
34
|
+
</p>
|
|
35
|
+
|
|
36
|
+
<p align="center">
|
|
37
|
+
<a href="https://pypi.org/project/yama-client/"><img src="https://img.shields.io/pypi/v/yama-client?style=flat-square" alt="PyPI"></a>
|
|
38
|
+
<a href="https://pypi.org/project/yama-client/"><img src="https://img.shields.io/pypi/pyversions/yama-client?style=flat-square" alt="Python versions"></a>
|
|
39
|
+
<a href="https://github.com/YASS-Ltd/yama-python/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/YASS-Ltd/yama-python/ci.yml?branch=main&style=flat-square&label=CI" alt="CI"></a>
|
|
40
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/licence-MIT-21212B?style=flat-square" alt="MIT licence"></a>
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
**Docs:** <https://yass-ltd.github.io/yama-python/> · **REST API:** <https://app.yamasystems.com/api/v2/docs/> · **Source:** <https://github.com/YASS-Ltd/yama-python>
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
Manage a building's access codes and read its call log from Python. The client handles auth, pagination, retries and errors, and gives you typed objects back.
|
|
50
|
+
|
|
51
|
+
> [!NOTE]
|
|
52
|
+
> **In development.** Nothing is on PyPI yet. Until then, use the [REST API](https://app.yamasystems.com/api/v2/docs/) directly.
|
|
53
|
+
|
|
54
|
+
## Install
|
|
55
|
+
|
|
56
|
+
```console
|
|
57
|
+
uv add yama-client # or: pip install yama-client
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
<!-- --8<-- [start:quick-start] -->
|
|
61
|
+
## Quick start
|
|
62
|
+
|
|
63
|
+
Create an API key in the Yama portal under **Settings › API keys**, with read access to access codes and the call log, and set it as `YAMA_API_KEY`. Keep it out of source control.
|
|
64
|
+
|
|
65
|
+
```python
|
|
66
|
+
from datetime import datetime, timezone
|
|
67
|
+
|
|
68
|
+
from yama import Yama
|
|
69
|
+
|
|
70
|
+
client = Yama() # reads YAMA_API_KEY
|
|
71
|
+
|
|
72
|
+
for code in client.codes.list():
|
|
73
|
+
print(code.name, code.expires_at)
|
|
74
|
+
|
|
75
|
+
start = datetime(2026, 10, 1, tzinfo=timezone.utc)
|
|
76
|
+
end = datetime(2026, 11, 1, tzinfo=timezone.utc) # exclusive: all of October
|
|
77
|
+
for call in client.calls.list(start=start, end=end):
|
|
78
|
+
print(call.started_at, call.result)
|
|
79
|
+
```
|
|
80
|
+
<!-- --8<-- [end:quick-start] -->
|
|
81
|
+
|
|
82
|
+
## What you get
|
|
83
|
+
|
|
84
|
+
- **Typed:** Pydantic models with UTC-aware datetimes, so your editor autocompletes.
|
|
85
|
+
- **Every item:** iterating a list yields every item, and each call in the call log comes once.
|
|
86
|
+
- **Safe retries:** on 429 (honouring `Retry-After`), 5xx and network errors, for every call, creates included: a code is never created twice.
|
|
87
|
+
- **Clear errors:** one exception class per kind of failure, listed in the [docs](https://yass-ltd.github.io/yama-python/errors/).
|
|
88
|
+
- **Forward-compatible:** new fields and enum values from the API don't break your code.
|
|
89
|
+
- **Small:** two dependencies, httpx and Pydantic. Python 3.10 and newer.
|
|
90
|
+
|
|
91
|
+
## Versioning
|
|
92
|
+
|
|
93
|
+
SemVer, targeting version 2 of the Yama API (`/api/v2/`). Release notes are on [GitHub Releases](https://github.com/YASS-Ltd/yama-python/releases).
|
|
94
|
+
|
|
95
|
+
## Contributing
|
|
96
|
+
|
|
97
|
+
Bug reports and ideas are welcome in [issues](https://github.com/YASS-Ltd/yama-python/issues). Development uses [uv](https://docs.astral.sh/uv/) and [just](https://just.systems/): `just check` runs everything CI does. Report security issues privately; see [SECURITY.md](SECURITY.md).
|
|
98
|
+
|
|
99
|
+
## Licence
|
|
100
|
+
|
|
101
|
+
[MIT](LICENSE) © Yama Access Software Systems Ltd.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset=".github/assets/yama-logo-dark.svg">
|
|
4
|
+
<img src=".github/assets/yama-logo-light.svg" alt="Yama" width="280">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<em>The official Python client for the Yama access-control API.</em>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<a href="https://pypi.org/project/yama-client/"><img src="https://img.shields.io/pypi/v/yama-client?style=flat-square" alt="PyPI"></a>
|
|
14
|
+
<a href="https://pypi.org/project/yama-client/"><img src="https://img.shields.io/pypi/pyversions/yama-client?style=flat-square" alt="Python versions"></a>
|
|
15
|
+
<a href="https://github.com/YASS-Ltd/yama-python/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/YASS-Ltd/yama-python/ci.yml?branch=main&style=flat-square&label=CI" alt="CI"></a>
|
|
16
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/licence-MIT-21212B?style=flat-square" alt="MIT licence"></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
**Docs:** <https://yass-ltd.github.io/yama-python/> · **REST API:** <https://app.yamasystems.com/api/v2/docs/> · **Source:** <https://github.com/YASS-Ltd/yama-python>
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
Manage a building's access codes and read its call log from Python. The client handles auth, pagination, retries and errors, and gives you typed objects back.
|
|
26
|
+
|
|
27
|
+
> [!NOTE]
|
|
28
|
+
> **In development.** Nothing is on PyPI yet. Until then, use the [REST API](https://app.yamasystems.com/api/v2/docs/) directly.
|
|
29
|
+
|
|
30
|
+
## Install
|
|
31
|
+
|
|
32
|
+
```console
|
|
33
|
+
uv add yama-client # or: pip install yama-client
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
<!-- --8<-- [start:quick-start] -->
|
|
37
|
+
## Quick start
|
|
38
|
+
|
|
39
|
+
Create an API key in the Yama portal under **Settings › API keys**, with read access to access codes and the call log, and set it as `YAMA_API_KEY`. Keep it out of source control.
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from datetime import datetime, timezone
|
|
43
|
+
|
|
44
|
+
from yama import Yama
|
|
45
|
+
|
|
46
|
+
client = Yama() # reads YAMA_API_KEY
|
|
47
|
+
|
|
48
|
+
for code in client.codes.list():
|
|
49
|
+
print(code.name, code.expires_at)
|
|
50
|
+
|
|
51
|
+
start = datetime(2026, 10, 1, tzinfo=timezone.utc)
|
|
52
|
+
end = datetime(2026, 11, 1, tzinfo=timezone.utc) # exclusive: all of October
|
|
53
|
+
for call in client.calls.list(start=start, end=end):
|
|
54
|
+
print(call.started_at, call.result)
|
|
55
|
+
```
|
|
56
|
+
<!-- --8<-- [end:quick-start] -->
|
|
57
|
+
|
|
58
|
+
## What you get
|
|
59
|
+
|
|
60
|
+
- **Typed:** Pydantic models with UTC-aware datetimes, so your editor autocompletes.
|
|
61
|
+
- **Every item:** iterating a list yields every item, and each call in the call log comes once.
|
|
62
|
+
- **Safe retries:** on 429 (honouring `Retry-After`), 5xx and network errors, for every call, creates included: a code is never created twice.
|
|
63
|
+
- **Clear errors:** one exception class per kind of failure, listed in the [docs](https://yass-ltd.github.io/yama-python/errors/).
|
|
64
|
+
- **Forward-compatible:** new fields and enum values from the API don't break your code.
|
|
65
|
+
- **Small:** two dependencies, httpx and Pydantic. Python 3.10 and newer.
|
|
66
|
+
|
|
67
|
+
## Versioning
|
|
68
|
+
|
|
69
|
+
SemVer, targeting version 2 of the Yama API (`/api/v2/`). Release notes are on [GitHub Releases](https://github.com/YASS-Ltd/yama-python/releases).
|
|
70
|
+
|
|
71
|
+
## Contributing
|
|
72
|
+
|
|
73
|
+
Bug reports and ideas are welcome in [issues](https://github.com/YASS-Ltd/yama-python/issues). Development uses [uv](https://docs.astral.sh/uv/) and [just](https://just.systems/): `just check` runs everything CI does. Report security issues privately; see [SECURITY.md](SECURITY.md).
|
|
74
|
+
|
|
75
|
+
## Licence
|
|
76
|
+
|
|
77
|
+
[MIT](LICENSE) © Yama Access Software Systems Ltd.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "yama-client"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "The official Python client for the Yama access-control API"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.10"
|
|
9
|
+
dependencies = [
|
|
10
|
+
"httpx>=0.27",
|
|
11
|
+
"pydantic>=2.7",
|
|
12
|
+
]
|
|
13
|
+
keywords = [
|
|
14
|
+
"yama",
|
|
15
|
+
"access control",
|
|
16
|
+
"intercom",
|
|
17
|
+
"api",
|
|
18
|
+
"client",
|
|
19
|
+
]
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Development Status :: 3 - Alpha",
|
|
22
|
+
"Intended Audience :: Developers",
|
|
23
|
+
"Operating System :: OS Independent",
|
|
24
|
+
"Programming Language :: Python :: 3",
|
|
25
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
26
|
+
"Typing :: Typed",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[[project.authors]]
|
|
30
|
+
name = "Yama Access Software Systems Ltd."
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://yamasystems.com"
|
|
34
|
+
Documentation = "https://yass-ltd.github.io/yama-python/"
|
|
35
|
+
Source = "https://github.com/YASS-Ltd/yama-python"
|
|
36
|
+
Issues = "https://github.com/YASS-Ltd/yama-python/issues"
|
|
37
|
+
"Release notes" = "https://github.com/YASS-Ltd/yama-python/releases"
|
|
38
|
+
|
|
39
|
+
[dependency-groups]
|
|
40
|
+
dev = [
|
|
41
|
+
"mkdocstrings-python>=2.0.9",
|
|
42
|
+
"mypy>=1.13",
|
|
43
|
+
"openapi-schema-validator>=0.9.0",
|
|
44
|
+
"pymdown-extensions<12; python_version < '3.11'",
|
|
45
|
+
"pytest>=8",
|
|
46
|
+
"pytest-cov>=6",
|
|
47
|
+
"pyyaml>=6.0.3",
|
|
48
|
+
"respx>=0.22",
|
|
49
|
+
"ruff>=0.8",
|
|
50
|
+
"types-jsonschema>=4.26.0.20261006",
|
|
51
|
+
"types-pyyaml>=6.0.12.20260906",
|
|
52
|
+
"zensical>=0.0.67",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[build-system]
|
|
56
|
+
requires = ["uv_build>=0.11.29,<0.14.0"]
|
|
57
|
+
build-backend = "uv_build"
|
|
58
|
+
|
|
59
|
+
[tool.uv.build-backend]
|
|
60
|
+
module-name = "yama"
|
|
61
|
+
|
|
62
|
+
[tool.ruff]
|
|
63
|
+
line-length = 100
|
|
64
|
+
target-version = "py310"
|
|
65
|
+
|
|
66
|
+
[tool.ruff.lint]
|
|
67
|
+
select = [
|
|
68
|
+
"E",
|
|
69
|
+
"F",
|
|
70
|
+
"W",
|
|
71
|
+
"I",
|
|
72
|
+
"UP",
|
|
73
|
+
"B",
|
|
74
|
+
"SIM",
|
|
75
|
+
"RUF",
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
[tool.mypy]
|
|
79
|
+
strict = true
|
|
80
|
+
python_version = "3.10"
|
|
81
|
+
plugins = ["pydantic.mypy"]
|
|
82
|
+
|
|
83
|
+
[tool.pytest.ini_options]
|
|
84
|
+
testpaths = ["tests"]
|
|
85
|
+
addopts = [
|
|
86
|
+
"--strict-markers",
|
|
87
|
+
"--strict-config",
|
|
88
|
+
]
|
|
89
|
+
xfail_strict = true
|
|
90
|
+
filterwarnings = ["error"]
|
|
91
|
+
markers = ["live: runs against a real Yama API (just test-live)"]
|
|
92
|
+
|
|
93
|
+
[tool.coverage.run]
|
|
94
|
+
source = ["yama"]
|
|
95
|
+
branch = true
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "yama-client"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "The official Python client for the Yama access-control API"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
authors = [{ name = "Yama Access Software Systems Ltd." }]
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"httpx>=0.27",
|
|
12
|
+
"pydantic>=2.7",
|
|
13
|
+
]
|
|
14
|
+
keywords = ["yama", "access control", "intercom", "api", "client"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 3 - Alpha",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
21
|
+
"Typing :: Typed",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.urls]
|
|
25
|
+
Homepage = "https://yamasystems.com"
|
|
26
|
+
Documentation = "https://yass-ltd.github.io/yama-python/"
|
|
27
|
+
Source = "https://github.com/YASS-Ltd/yama-python"
|
|
28
|
+
Issues = "https://github.com/YASS-Ltd/yama-python/issues"
|
|
29
|
+
"Release notes" = "https://github.com/YASS-Ltd/yama-python/releases"
|
|
30
|
+
|
|
31
|
+
[dependency-groups]
|
|
32
|
+
dev = [
|
|
33
|
+
"mkdocstrings-python>=2.0.9",
|
|
34
|
+
"mypy>=1.13",
|
|
35
|
+
"openapi-schema-validator>=0.9.0",
|
|
36
|
+
# mkdocstrings for Python 3.10 (1.0.6) can't highlight with pymdown-extensions 12.
|
|
37
|
+
"pymdown-extensions<12; python_version < '3.11'",
|
|
38
|
+
"pytest>=8",
|
|
39
|
+
"pytest-cov>=6",
|
|
40
|
+
"pyyaml>=6.0.3",
|
|
41
|
+
"respx>=0.22",
|
|
42
|
+
"ruff>=0.8",
|
|
43
|
+
"types-jsonschema>=4.26.0.20261006",
|
|
44
|
+
"types-pyyaml>=6.0.12.20260906",
|
|
45
|
+
"zensical>=0.0.67",
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
[build-system]
|
|
49
|
+
requires = ["uv_build>=0.11.29,<0.14.0"]
|
|
50
|
+
build-backend = "uv_build"
|
|
51
|
+
|
|
52
|
+
[tool.uv.build-backend]
|
|
53
|
+
module-name = "yama"
|
|
54
|
+
|
|
55
|
+
[tool.ruff]
|
|
56
|
+
line-length = 100
|
|
57
|
+
target-version = "py310"
|
|
58
|
+
|
|
59
|
+
[tool.ruff.lint]
|
|
60
|
+
select = ["E", "F", "W", "I", "UP", "B", "SIM", "RUF"]
|
|
61
|
+
|
|
62
|
+
[tool.mypy]
|
|
63
|
+
strict = true
|
|
64
|
+
python_version = "3.10"
|
|
65
|
+
plugins = ["pydantic.mypy"]
|
|
66
|
+
|
|
67
|
+
[tool.pytest.ini_options]
|
|
68
|
+
testpaths = ["tests"]
|
|
69
|
+
addopts = ["--strict-markers", "--strict-config"]
|
|
70
|
+
xfail_strict = true
|
|
71
|
+
filterwarnings = ["error"]
|
|
72
|
+
markers = ["live: runs against a real Yama API (just test-live)"]
|
|
73
|
+
|
|
74
|
+
[tool.coverage.run]
|
|
75
|
+
source = ["yama"]
|
|
76
|
+
branch = true
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""The official Python client for the Yama API."""
|
|
2
|
+
|
|
3
|
+
import logging
|
|
4
|
+
from importlib.metadata import version
|
|
5
|
+
|
|
6
|
+
from yama._client import DEFAULT_BASE_URL, Yama
|
|
7
|
+
from yama._errors import (
|
|
8
|
+
APIConnectionError,
|
|
9
|
+
APIStatusError,
|
|
10
|
+
APITimeoutError,
|
|
11
|
+
AuthenticationError,
|
|
12
|
+
BadRequestError,
|
|
13
|
+
ConflictError,
|
|
14
|
+
GoneError,
|
|
15
|
+
NotFoundError,
|
|
16
|
+
PermissionDeniedError,
|
|
17
|
+
RateLimitError,
|
|
18
|
+
ServerError,
|
|
19
|
+
UnprocessableEntityError,
|
|
20
|
+
YamaError,
|
|
21
|
+
)
|
|
22
|
+
from yama.models import (
|
|
23
|
+
AccessCode,
|
|
24
|
+
AccessCodeCreate,
|
|
25
|
+
AccessCodeUpdate,
|
|
26
|
+
AccessLevel,
|
|
27
|
+
ApiKeyDetails,
|
|
28
|
+
ApiKeyPermissions,
|
|
29
|
+
ApiKeyUnitAccess,
|
|
30
|
+
Building,
|
|
31
|
+
CallLogEntry,
|
|
32
|
+
CallLogStep,
|
|
33
|
+
CallResult,
|
|
34
|
+
CallStepKind,
|
|
35
|
+
CodeAttemptResult,
|
|
36
|
+
Contact,
|
|
37
|
+
DialStatus,
|
|
38
|
+
DoorDigit,
|
|
39
|
+
Unit,
|
|
40
|
+
UnitAccessType,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
__version__ = version("yama-client")
|
|
44
|
+
|
|
45
|
+
logging.getLogger("yama").addHandler(logging.NullHandler())
|
|
46
|
+
|
|
47
|
+
__all__ = [
|
|
48
|
+
"DEFAULT_BASE_URL",
|
|
49
|
+
"APIConnectionError",
|
|
50
|
+
"APIStatusError",
|
|
51
|
+
"APITimeoutError",
|
|
52
|
+
"AccessCode",
|
|
53
|
+
"AccessCodeCreate",
|
|
54
|
+
"AccessCodeUpdate",
|
|
55
|
+
"AccessLevel",
|
|
56
|
+
"ApiKeyDetails",
|
|
57
|
+
"ApiKeyPermissions",
|
|
58
|
+
"ApiKeyUnitAccess",
|
|
59
|
+
"AuthenticationError",
|
|
60
|
+
"BadRequestError",
|
|
61
|
+
"Building",
|
|
62
|
+
"CallLogEntry",
|
|
63
|
+
"CallLogStep",
|
|
64
|
+
"CallResult",
|
|
65
|
+
"CallStepKind",
|
|
66
|
+
"CodeAttemptResult",
|
|
67
|
+
"ConflictError",
|
|
68
|
+
"Contact",
|
|
69
|
+
"DialStatus",
|
|
70
|
+
"DoorDigit",
|
|
71
|
+
"GoneError",
|
|
72
|
+
"NotFoundError",
|
|
73
|
+
"PermissionDeniedError",
|
|
74
|
+
"RateLimitError",
|
|
75
|
+
"ServerError",
|
|
76
|
+
"Unit",
|
|
77
|
+
"UnitAccessType",
|
|
78
|
+
"UnprocessableEntityError",
|
|
79
|
+
"Yama",
|
|
80
|
+
"YamaError",
|
|
81
|
+
"__version__",
|
|
82
|
+
]
|