property-radar 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.
- property_radar-0.1.0/.gitignore +46 -0
- property_radar-0.1.0/CHANGELOG.md +29 -0
- property_radar-0.1.0/LICENSE +21 -0
- property_radar-0.1.0/PKG-INFO +129 -0
- property_radar-0.1.0/README.md +70 -0
- property_radar-0.1.0/pyproject.toml +142 -0
- property_radar-0.1.0/src/property_radar/__init__.py +65 -0
- property_radar-0.1.0/src/property_radar/_transport.py +366 -0
- property_radar-0.1.0/src/property_radar/client.py +150 -0
- property_radar-0.1.0/src/property_radar/endpoint_manifest.json +46 -0
- property_radar-0.1.0/src/property_radar/exceptions.py +90 -0
- property_radar-0.1.0/src/property_radar/openapi_check.py +119 -0
- property_radar-0.1.0/src/property_radar/py.typed +1 -0
- property_radar-0.1.0/src/property_radar/resources/__init__.py +23 -0
- property_radar-0.1.0/src/property_radar/resources/_base.py +34 -0
- property_radar-0.1.0/src/property_radar/resources/accounts.py +37 -0
- property_radar-0.1.0/src/property_radar/resources/automations.py +134 -0
- property_radar-0.1.0/src/property_radar/resources/documents.py +49 -0
- property_radar-0.1.0/src/property_radar/resources/imports.py +167 -0
- property_radar-0.1.0/src/property_radar/resources/integrations.py +134 -0
- property_radar-0.1.0/src/property_radar/resources/lists.py +350 -0
- property_radar-0.1.0/src/property_radar/resources/persons.py +264 -0
- property_radar-0.1.0/src/property_radar/resources/properties.py +446 -0
- property_radar-0.1.0/src/property_radar/resources/suggestions.py +71 -0
- property_radar-0.1.0/src/property_radar/types.py +63 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Bytecode and Python caches
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.pyo
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
.mypy_cache/
|
|
7
|
+
.ruff_cache/
|
|
8
|
+
.coverage
|
|
9
|
+
.coverage.*
|
|
10
|
+
coverage.xml
|
|
11
|
+
htmlcov/
|
|
12
|
+
|
|
13
|
+
# Environments and local configuration
|
|
14
|
+
.venv/
|
|
15
|
+
venv/
|
|
16
|
+
.env
|
|
17
|
+
.env.*
|
|
18
|
+
!.env.example
|
|
19
|
+
|
|
20
|
+
# Builds and packaging
|
|
21
|
+
build/
|
|
22
|
+
dist/
|
|
23
|
+
*.egg-info/
|
|
24
|
+
.eggs/
|
|
25
|
+
|
|
26
|
+
# Documentation output
|
|
27
|
+
site/
|
|
28
|
+
/docs/planning/
|
|
29
|
+
|
|
30
|
+
# Editors and operating systems
|
|
31
|
+
.DS_Store
|
|
32
|
+
.idea/
|
|
33
|
+
.vscode/
|
|
34
|
+
*.swp
|
|
35
|
+
|
|
36
|
+
# Test and tool artifacts
|
|
37
|
+
.tox/
|
|
38
|
+
.nox/
|
|
39
|
+
bandit-report.*
|
|
40
|
+
safety-report.*
|
|
41
|
+
|
|
42
|
+
# Credentials and downloaded vendor data
|
|
43
|
+
*.pem
|
|
44
|
+
*.key
|
|
45
|
+
credentials.json
|
|
46
|
+
propertyradar-response*.json
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented here.
|
|
4
|
+
|
|
5
|
+
The format is based on
|
|
6
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
|
|
7
|
+
uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
|
+
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
## [0.1.0] - 2026-07-28
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Typed synchronous client covering all 37 operations in PropertyRadar API
|
|
16
|
+
contract `5.1.1.0`.
|
|
17
|
+
- Shared HTTPX transport with explicit timeouts, sanitized errors, safe retry
|
|
18
|
+
policy, token refresh callbacks, and context-managed lifecycle.
|
|
19
|
+
- Deny-by-default controls for persistent mutations and charge-capable
|
|
20
|
+
requests, including automation purchase settings.
|
|
21
|
+
- Property-search pagination, criteria typing, vendor-compatible query
|
|
22
|
+
serialization, and typed response envelopes.
|
|
23
|
+
- Secretless unit and contract tests, OpenAPI drift checking, user/API
|
|
24
|
+
documentation, and synthetic examples.
|
|
25
|
+
- Python 3.10 through 3.14 CI, CodeQL, GitHub Pages, Dependabot, and
|
|
26
|
+
trusted-publishing release workflows.
|
|
27
|
+
|
|
28
|
+
[Unreleased]: https://github.com/theperrygroup/property_radar/compare/v0.1.0...HEAD
|
|
29
|
+
[0.1.0]: https://github.com/theperrygroup/property_radar/releases/tag/v0.1.0
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 The Perry Group
|
|
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,129 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: property-radar
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A safe, typed Python client for the PropertyRadar API
|
|
5
|
+
Project-URL: Documentation, https://theperrygroup.github.io/property_radar/
|
|
6
|
+
Project-URL: Issues, https://github.com/theperrygroup/property_radar/issues
|
|
7
|
+
Project-URL: Repository, https://github.com/theperrygroup/property_radar
|
|
8
|
+
Author: The Perry Group
|
|
9
|
+
License: MIT License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2026 The Perry Group
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Keywords: api-client,property,propertyradar,real-estate
|
|
32
|
+
Classifier: Development Status :: 3 - Alpha
|
|
33
|
+
Classifier: Intended Audience :: Developers
|
|
34
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
35
|
+
Classifier: Operating System :: OS Independent
|
|
36
|
+
Classifier: Programming Language :: Python
|
|
37
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
40
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
41
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
42
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
43
|
+
Classifier: Typing :: Typed
|
|
44
|
+
Requires-Python: >=3.10
|
|
45
|
+
Requires-Dist: httpx<1,>=0.27
|
|
46
|
+
Provides-Extra: dev
|
|
47
|
+
Requires-Dist: build>=1.2.2; extra == 'dev'
|
|
48
|
+
Requires-Dist: detect-secrets>=1.5; extra == 'dev'
|
|
49
|
+
Requires-Dist: mypy>=1.15; extra == 'dev'
|
|
50
|
+
Requires-Dist: pytest-cov>=6; extra == 'dev'
|
|
51
|
+
Requires-Dist: pytest>=8.3; extra == 'dev'
|
|
52
|
+
Requires-Dist: pyyaml>=6; extra == 'dev'
|
|
53
|
+
Requires-Dist: ruff>=0.11; extra == 'dev'
|
|
54
|
+
Requires-Dist: twine>=6; extra == 'dev'
|
|
55
|
+
Provides-Extra: docs
|
|
56
|
+
Requires-Dist: mkdocs-material>=9.6; extra == 'docs'
|
|
57
|
+
Requires-Dist: mkdocstrings[python]>=0.29; extra == 'docs'
|
|
58
|
+
Description-Content-Type: text/markdown
|
|
59
|
+
|
|
60
|
+
# Property Radar Python Client
|
|
61
|
+
|
|
62
|
+
[](https://github.com/theperrygroup/property_radar/actions/workflows/ci.yml)
|
|
63
|
+
[](https://pypi.org/project/property-radar/)
|
|
64
|
+
[](https://pypi.org/project/property-radar/)
|
|
65
|
+
[](https://github.com/theperrygroup/property_radar/blob/main/LICENSE)
|
|
66
|
+
|
|
67
|
+
An unofficial, typed Python client for the
|
|
68
|
+
[PropertyRadar API](https://developers.propertyradar.com/api).
|
|
69
|
+
|
|
70
|
+
> **Important:** PropertyRadar documents its API for end users and restricts
|
|
71
|
+
> how its data may be used or redistributed. This library is not affiliated
|
|
72
|
+
> with or endorsed by PropertyRadar. Review the vendor terms and obtain any
|
|
73
|
+
> needed partner approval before using it in a product for third parties.
|
|
74
|
+
|
|
75
|
+
## Status
|
|
76
|
+
|
|
77
|
+
Version `0.1.0` covers all 37 operations in the official API `5.1.1.0`
|
|
78
|
+
contract. Releases are built once and published through the configured PyPI
|
|
79
|
+
Trusted Publisher.
|
|
80
|
+
|
|
81
|
+
## Installation
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pip install property-radar
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Safe Quickstart
|
|
88
|
+
|
|
89
|
+
```python
|
|
90
|
+
from property_radar import PropertyRadarClient
|
|
91
|
+
|
|
92
|
+
criteria = [{"name": "RadarID", "value": ["P0000000"]}]
|
|
93
|
+
|
|
94
|
+
with PropertyRadarClient(api_key="your-api-key") as client: # pragma: allowlist secret
|
|
95
|
+
preview = client.properties.search(criteria=criteria)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Preview-capable endpoints send `Purchase=0` by default. Persistent list,
|
|
99
|
+
import, automation, and webhook operations require `allow_mutations=True`.
|
|
100
|
+
Paid requests require both `allow_charges=True` on the client and
|
|
101
|
+
`purchase=True` on the method call.
|
|
102
|
+
|
|
103
|
+
## Authentication
|
|
104
|
+
|
|
105
|
+
Pass the token explicitly or set `PROPERTY_RADAR_API_KEY`. The library does not
|
|
106
|
+
load `.env` files and never needs an API credential for its test suite.
|
|
107
|
+
|
|
108
|
+
## Development
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
uv sync --all-extras --locked
|
|
112
|
+
uv run ruff format --check .
|
|
113
|
+
uv run ruff check .
|
|
114
|
+
uv run mypy
|
|
115
|
+
uv run pytest
|
|
116
|
+
uv run mkdocs build --strict --clean
|
|
117
|
+
uv build
|
|
118
|
+
uv run twine check dist/*
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
See
|
|
122
|
+
[CONTRIBUTING.md](https://github.com/theperrygroup/property_radar/blob/main/CONTRIBUTING.md)
|
|
123
|
+
and the
|
|
124
|
+
[development guide](https://theperrygroup.github.io/property_radar/development/).
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
This client is licensed under the MIT License. PropertyRadar data and service
|
|
129
|
+
access remain governed by PropertyRadar's own agreements.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Property Radar Python Client
|
|
2
|
+
|
|
3
|
+
[](https://github.com/theperrygroup/property_radar/actions/workflows/ci.yml)
|
|
4
|
+
[](https://pypi.org/project/property-radar/)
|
|
5
|
+
[](https://pypi.org/project/property-radar/)
|
|
6
|
+
[](https://github.com/theperrygroup/property_radar/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
An unofficial, typed Python client for the
|
|
9
|
+
[PropertyRadar API](https://developers.propertyradar.com/api).
|
|
10
|
+
|
|
11
|
+
> **Important:** PropertyRadar documents its API for end users and restricts
|
|
12
|
+
> how its data may be used or redistributed. This library is not affiliated
|
|
13
|
+
> with or endorsed by PropertyRadar. Review the vendor terms and obtain any
|
|
14
|
+
> needed partner approval before using it in a product for third parties.
|
|
15
|
+
|
|
16
|
+
## Status
|
|
17
|
+
|
|
18
|
+
Version `0.1.0` covers all 37 operations in the official API `5.1.1.0`
|
|
19
|
+
contract. Releases are built once and published through the configured PyPI
|
|
20
|
+
Trusted Publisher.
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install property-radar
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Safe Quickstart
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from property_radar import PropertyRadarClient
|
|
32
|
+
|
|
33
|
+
criteria = [{"name": "RadarID", "value": ["P0000000"]}]
|
|
34
|
+
|
|
35
|
+
with PropertyRadarClient(api_key="your-api-key") as client: # pragma: allowlist secret
|
|
36
|
+
preview = client.properties.search(criteria=criteria)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Preview-capable endpoints send `Purchase=0` by default. Persistent list,
|
|
40
|
+
import, automation, and webhook operations require `allow_mutations=True`.
|
|
41
|
+
Paid requests require both `allow_charges=True` on the client and
|
|
42
|
+
`purchase=True` on the method call.
|
|
43
|
+
|
|
44
|
+
## Authentication
|
|
45
|
+
|
|
46
|
+
Pass the token explicitly or set `PROPERTY_RADAR_API_KEY`. The library does not
|
|
47
|
+
load `.env` files and never needs an API credential for its test suite.
|
|
48
|
+
|
|
49
|
+
## Development
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
uv sync --all-extras --locked
|
|
53
|
+
uv run ruff format --check .
|
|
54
|
+
uv run ruff check .
|
|
55
|
+
uv run mypy
|
|
56
|
+
uv run pytest
|
|
57
|
+
uv run mkdocs build --strict --clean
|
|
58
|
+
uv build
|
|
59
|
+
uv run twine check dist/*
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
See
|
|
63
|
+
[CONTRIBUTING.md](https://github.com/theperrygroup/property_radar/blob/main/CONTRIBUTING.md)
|
|
64
|
+
and the
|
|
65
|
+
[development guide](https://theperrygroup.github.io/property_radar/development/).
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
This client is licensed under the MIT License. PropertyRadar data and service
|
|
70
|
+
access remain governed by PropertyRadar's own agreements.
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.27"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "property-radar"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "A safe, typed Python client for the PropertyRadar API"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = { file = "LICENSE" }
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "The Perry Group" },
|
|
14
|
+
]
|
|
15
|
+
keywords = [
|
|
16
|
+
"api-client",
|
|
17
|
+
"property",
|
|
18
|
+
"propertyradar",
|
|
19
|
+
"real-estate",
|
|
20
|
+
]
|
|
21
|
+
classifiers = [
|
|
22
|
+
"Development Status :: 3 - Alpha",
|
|
23
|
+
"Intended Audience :: Developers",
|
|
24
|
+
"License :: OSI Approved :: MIT License",
|
|
25
|
+
"Operating System :: OS Independent",
|
|
26
|
+
"Programming Language :: Python",
|
|
27
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
28
|
+
"Programming Language :: Python :: 3.10",
|
|
29
|
+
"Programming Language :: Python :: 3.11",
|
|
30
|
+
"Programming Language :: Python :: 3.12",
|
|
31
|
+
"Programming Language :: Python :: 3.13",
|
|
32
|
+
"Programming Language :: Python :: 3.14",
|
|
33
|
+
"Typing :: Typed",
|
|
34
|
+
]
|
|
35
|
+
dependencies = [
|
|
36
|
+
"httpx>=0.27,<1",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[project.optional-dependencies]
|
|
40
|
+
dev = [
|
|
41
|
+
"build>=1.2.2",
|
|
42
|
+
"detect-secrets>=1.5",
|
|
43
|
+
"mypy>=1.15",
|
|
44
|
+
"PyYAML>=6",
|
|
45
|
+
"pytest>=8.3",
|
|
46
|
+
"pytest-cov>=6",
|
|
47
|
+
"ruff>=0.11",
|
|
48
|
+
"twine>=6",
|
|
49
|
+
]
|
|
50
|
+
docs = [
|
|
51
|
+
"mkdocs-material>=9.6",
|
|
52
|
+
"mkdocstrings[python]>=0.29",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[project.urls]
|
|
56
|
+
Documentation = "https://theperrygroup.github.io/property_radar/"
|
|
57
|
+
Issues = "https://github.com/theperrygroup/property_radar/issues"
|
|
58
|
+
Repository = "https://github.com/theperrygroup/property_radar"
|
|
59
|
+
|
|
60
|
+
[project.scripts]
|
|
61
|
+
property-radar-openapi-check = "property_radar.openapi_check:main"
|
|
62
|
+
|
|
63
|
+
[tool.hatch.build.targets.sdist]
|
|
64
|
+
include = [
|
|
65
|
+
"/CHANGELOG.md",
|
|
66
|
+
"/LICENSE",
|
|
67
|
+
"/README.md",
|
|
68
|
+
"/src",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[tool.hatch.build.targets.wheel]
|
|
72
|
+
packages = ["src/property_radar"]
|
|
73
|
+
|
|
74
|
+
[tool.uv]
|
|
75
|
+
required-version = "==0.9.17"
|
|
76
|
+
|
|
77
|
+
[tool.ruff]
|
|
78
|
+
line-length = 88
|
|
79
|
+
target-version = "py310"
|
|
80
|
+
extend-exclude = [
|
|
81
|
+
".codex",
|
|
82
|
+
"docs/planning",
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
[tool.ruff.lint]
|
|
86
|
+
select = [
|
|
87
|
+
"B",
|
|
88
|
+
"D",
|
|
89
|
+
"E",
|
|
90
|
+
"F",
|
|
91
|
+
"I",
|
|
92
|
+
"RUF",
|
|
93
|
+
"SIM",
|
|
94
|
+
"UP",
|
|
95
|
+
]
|
|
96
|
+
ignore = [
|
|
97
|
+
"D203",
|
|
98
|
+
"D213",
|
|
99
|
+
]
|
|
100
|
+
|
|
101
|
+
[tool.ruff.lint.per-file-ignores]
|
|
102
|
+
"tests/**/*.py" = ["D"]
|
|
103
|
+
"scripts/**/*.py" = ["D"]
|
|
104
|
+
|
|
105
|
+
[tool.ruff.lint.pydocstyle]
|
|
106
|
+
convention = "google"
|
|
107
|
+
|
|
108
|
+
[tool.mypy]
|
|
109
|
+
python_version = "3.10"
|
|
110
|
+
strict = true
|
|
111
|
+
files = [
|
|
112
|
+
"src",
|
|
113
|
+
"tests",
|
|
114
|
+
"scripts",
|
|
115
|
+
]
|
|
116
|
+
exclude = [
|
|
117
|
+
"^build/",
|
|
118
|
+
"^dist/",
|
|
119
|
+
]
|
|
120
|
+
|
|
121
|
+
[tool.pytest.ini_options]
|
|
122
|
+
addopts = [
|
|
123
|
+
"--strict-config",
|
|
124
|
+
"--strict-markers",
|
|
125
|
+
"--cov=property_radar",
|
|
126
|
+
"--cov-branch",
|
|
127
|
+
"--cov-report=term-missing",
|
|
128
|
+
"--cov-fail-under=95",
|
|
129
|
+
]
|
|
130
|
+
testpaths = ["tests"]
|
|
131
|
+
|
|
132
|
+
[tool.coverage.run]
|
|
133
|
+
branch = true
|
|
134
|
+
source = ["property_radar"]
|
|
135
|
+
|
|
136
|
+
[tool.coverage.report]
|
|
137
|
+
exclude_also = [
|
|
138
|
+
"if TYPE_CHECKING:",
|
|
139
|
+
"raise NotImplementedError",
|
|
140
|
+
]
|
|
141
|
+
show_missing = true
|
|
142
|
+
skip_covered = true
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""Public package for the PropertyRadar API client."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
4
|
+
|
|
5
|
+
from .client import PropertyRadarClient
|
|
6
|
+
from .exceptions import (
|
|
7
|
+
AuthenticationError,
|
|
8
|
+
BadRequestError,
|
|
9
|
+
ChargeNotAllowedError,
|
|
10
|
+
ConfigurationError,
|
|
11
|
+
ConflictError,
|
|
12
|
+
ForbiddenError,
|
|
13
|
+
InvalidResponseError,
|
|
14
|
+
MutationNotAllowedError,
|
|
15
|
+
NetworkError,
|
|
16
|
+
NotFoundError,
|
|
17
|
+
PaymentRequiredError,
|
|
18
|
+
PropertyRadarError,
|
|
19
|
+
PropertyRadarHTTPError,
|
|
20
|
+
RateLimitError,
|
|
21
|
+
RequestTimeoutError,
|
|
22
|
+
ServerError,
|
|
23
|
+
ValidationError,
|
|
24
|
+
)
|
|
25
|
+
from .types import (
|
|
26
|
+
Criterion,
|
|
27
|
+
ImportItem,
|
|
28
|
+
JSONDict,
|
|
29
|
+
JSONValue,
|
|
30
|
+
ResponseEnvelope,
|
|
31
|
+
StatusLabelsResponse,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
try:
|
|
35
|
+
__version__ = version("property-radar")
|
|
36
|
+
except PackageNotFoundError: # pragma: no cover - source tree without an install
|
|
37
|
+
__version__ = "0+unknown"
|
|
38
|
+
|
|
39
|
+
__all__ = [
|
|
40
|
+
"AuthenticationError",
|
|
41
|
+
"BadRequestError",
|
|
42
|
+
"ChargeNotAllowedError",
|
|
43
|
+
"ConfigurationError",
|
|
44
|
+
"ConflictError",
|
|
45
|
+
"Criterion",
|
|
46
|
+
"ForbiddenError",
|
|
47
|
+
"ImportItem",
|
|
48
|
+
"InvalidResponseError",
|
|
49
|
+
"JSONDict",
|
|
50
|
+
"JSONValue",
|
|
51
|
+
"MutationNotAllowedError",
|
|
52
|
+
"NetworkError",
|
|
53
|
+
"NotFoundError",
|
|
54
|
+
"PaymentRequiredError",
|
|
55
|
+
"PropertyRadarClient",
|
|
56
|
+
"PropertyRadarError",
|
|
57
|
+
"PropertyRadarHTTPError",
|
|
58
|
+
"RateLimitError",
|
|
59
|
+
"RequestTimeoutError",
|
|
60
|
+
"ResponseEnvelope",
|
|
61
|
+
"ServerError",
|
|
62
|
+
"StatusLabelsResponse",
|
|
63
|
+
"ValidationError",
|
|
64
|
+
"__version__",
|
|
65
|
+
]
|