fathom-python 0.0.23__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 (47) hide show
  1. fathom_python-0.0.23/PKG-INFO +151 -0
  2. fathom_python-0.0.23/README.md +123 -0
  3. fathom_python-0.0.23/pyproject.toml +85 -0
  4. fathom_python-0.0.23/src/fathom/__init__.py +57 -0
  5. fathom_python-0.0.23/src/fathom/base_client.py +453 -0
  6. fathom_python-0.0.23/src/fathom/client.py +25 -0
  7. fathom_python-0.0.23/src/fathom/core/__init__.py +52 -0
  8. fathom_python-0.0.23/src/fathom/core/api_error.py +23 -0
  9. fathom_python-0.0.23/src/fathom/core/client_wrapper.py +76 -0
  10. fathom_python-0.0.23/src/fathom/core/datetime_utils.py +28 -0
  11. fathom_python-0.0.23/src/fathom/core/file.py +67 -0
  12. fathom_python-0.0.23/src/fathom/core/force_multipart.py +16 -0
  13. fathom_python-0.0.23/src/fathom/core/http_client.py +543 -0
  14. fathom_python-0.0.23/src/fathom/core/http_response.py +55 -0
  15. fathom_python-0.0.23/src/fathom/core/jsonable_encoder.py +100 -0
  16. fathom_python-0.0.23/src/fathom/core/pydantic_utilities.py +255 -0
  17. fathom_python-0.0.23/src/fathom/core/query_encoder.py +58 -0
  18. fathom_python-0.0.23/src/fathom/core/remove_none_from_dict.py +11 -0
  19. fathom_python-0.0.23/src/fathom/core/request_options.py +35 -0
  20. fathom_python-0.0.23/src/fathom/core/serialization.py +276 -0
  21. fathom_python-0.0.23/src/fathom/environment.py +7 -0
  22. fathom_python-0.0.23/src/fathom/errors/__init__.py +8 -0
  23. fathom_python-0.0.23/src/fathom/errors/bad_request_error.py +10 -0
  24. fathom_python-0.0.23/src/fathom/errors/unauthorized_error.py +10 -0
  25. fathom_python-0.0.23/src/fathom/py.typed +0 -0
  26. fathom_python-0.0.23/src/fathom/raw_base_client.py +512 -0
  27. fathom_python-0.0.23/src/fathom/types/__init__.py +45 -0
  28. fathom_python-0.0.23/src/fathom/types/action_item.py +29 -0
  29. fathom_python-0.0.23/src/fathom/types/assignee.py +21 -0
  30. fathom_python-0.0.23/src/fathom/types/crm_company_match.py +20 -0
  31. fathom_python-0.0.23/src/fathom/types/crm_contact_match.py +21 -0
  32. fathom_python-0.0.23/src/fathom/types/crm_deal_match.py +21 -0
  33. fathom_python-0.0.23/src/fathom/types/crm_matches.py +30 -0
  34. fathom_python-0.0.23/src/fathom/types/fathom_user.py +21 -0
  35. fathom_python-0.0.23/src/fathom/types/invitee.py +22 -0
  36. fathom_python-0.0.23/src/fathom/types/list_meetings_request_meeting_type.py +5 -0
  37. fathom_python-0.0.23/src/fathom/types/meeting.py +51 -0
  38. fathom_python-0.0.23/src/fathom/types/meeting_list_response.py +22 -0
  39. fathom_python-0.0.23/src/fathom/types/meeting_meeting_type.py +5 -0
  40. fathom_python-0.0.23/src/fathom/types/meeting_summary.py +20 -0
  41. fathom_python-0.0.23/src/fathom/types/team.py +21 -0
  42. fathom_python-0.0.23/src/fathom/types/team_list_response.py +22 -0
  43. fathom_python-0.0.23/src/fathom/types/team_member.py +22 -0
  44. fathom_python-0.0.23/src/fathom/types/team_member_list_response.py +22 -0
  45. fathom_python-0.0.23/src/fathom/types/transcript_item.py +25 -0
  46. fathom_python-0.0.23/src/fathom/types/transcript_item_speaker.py +20 -0
  47. fathom_python-0.0.23/src/fathom/version.py +3 -0
@@ -0,0 +1,151 @@
1
+ Metadata-Version: 2.1
2
+ Name: fathom-python
3
+ Version: 0.0.23
4
+ Summary:
5
+ Requires-Python: >=3.8,<4.0
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: Operating System :: MacOS
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Operating System :: POSIX
11
+ Classifier: Operating System :: POSIX :: Linux
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Classifier: Typing :: Typed
21
+ Requires-Dist: httpx (>=0.21.2)
22
+ Requires-Dist: pydantic (>=1.9.2)
23
+ Requires-Dist: pydantic-core (>=2.18.2,<3.0.0)
24
+ Requires-Dist: svix (==1.65.0)
25
+ Requires-Dist: typing_extensions (>=4.0.0)
26
+ Description-Content-Type: text/markdown
27
+
28
+ # Fathom Python Library
29
+
30
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Ffathom-video%2Ffathom-python)
31
+ [![pypi](https://img.shields.io/pypi/v/fathom)](https://pypi.python.org/pypi/fathom)
32
+
33
+ The Fathom Python library provides convenient access to the Fathom API from Python.
34
+
35
+ ## Installation
36
+
37
+ ```sh
38
+ pip install fathom
39
+ ```
40
+
41
+ ## Reference
42
+
43
+ A full reference for this library is available [here](./reference.md).
44
+
45
+ ## Usage
46
+
47
+ Instantiate and use the client with the following:
48
+
49
+ ```python
50
+ from fathom import FathomApi
51
+ client = FathomApi(api_key="YOUR_API_KEY", )
52
+ client.list_meetings()
53
+ ```
54
+
55
+ ## Async Client
56
+
57
+ The SDK also exports an `async` client so that you can make non-blocking calls to our API.
58
+
59
+ ```python
60
+ from fathom import AsyncFathomApi
61
+ import asyncio
62
+ client = AsyncFathomApi(api_key="YOUR_API_KEY", )
63
+ async def main() -> None:
64
+ await client.list_meetings()
65
+ asyncio.run(main())
66
+ ```
67
+
68
+ ## Exception Handling
69
+
70
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
71
+ will be thrown.
72
+
73
+ ```python
74
+ from fathom.core.api_error import ApiError
75
+ try:
76
+ client.list_meetings(...)
77
+ except ApiError as e:
78
+ print(e.status_code)
79
+ print(e.body)
80
+ ```
81
+
82
+ ## Advanced
83
+
84
+ ### Access Raw Response Data
85
+
86
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
87
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
88
+
89
+ ```python
90
+ from fathom import FathomApi
91
+ client = FathomApi(..., )
92
+ response = client.with_raw_response.list_meetings(...)
93
+ print(response.headers) # access the response headers
94
+ print(response.data) # access the underlying object
95
+ ```
96
+
97
+ ### Retries
98
+
99
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
100
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
101
+ retry limit (default: 2).
102
+
103
+ A request is deemed retryable when any of the following HTTP status codes is returned:
104
+
105
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
106
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
107
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
108
+
109
+ Use the `max_retries` request option to configure this behavior.
110
+
111
+ ```python
112
+ client.list_meetings(..., request_options={
113
+ "max_retries": 1
114
+ })
115
+ ```
116
+
117
+ ### Timeouts
118
+
119
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
120
+
121
+ ```python
122
+
123
+ from fathom import FathomApi
124
+ client = FathomApi(..., timeout=20.0, )
125
+
126
+ # Override timeout for a specific method
127
+ client.list_meetings(..., request_options={
128
+ "timeout_in_seconds": 1
129
+ })
130
+ ```
131
+
132
+ ### Custom Client
133
+
134
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
135
+ and transports.
136
+
137
+ ```python
138
+ from fathom import FathomApi
139
+ import httpx
140
+ client = FathomApi(..., httpx_client=httpx.Client(proxies="http://my.test.proxy.example.com", transport=httpx.HTTPTransport(local_address="0.0.0.0"), ))```
141
+
142
+ ## Contributing
143
+
144
+ While we value open-source contributions to this SDK, this library is generated programmatically.
145
+ Additions made directly to this library would have to be moved over to our generation code,
146
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
147
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
148
+ an issue first to discuss with us!
149
+
150
+ On the other hand, contributions to the README are always very welcome!
151
+
@@ -0,0 +1,123 @@
1
+ # Fathom Python Library
2
+
3
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Ffathom-video%2Ffathom-python)
4
+ [![pypi](https://img.shields.io/pypi/v/fathom)](https://pypi.python.org/pypi/fathom)
5
+
6
+ The Fathom Python library provides convenient access to the Fathom API from Python.
7
+
8
+ ## Installation
9
+
10
+ ```sh
11
+ pip install fathom
12
+ ```
13
+
14
+ ## Reference
15
+
16
+ A full reference for this library is available [here](./reference.md).
17
+
18
+ ## Usage
19
+
20
+ Instantiate and use the client with the following:
21
+
22
+ ```python
23
+ from fathom import FathomApi
24
+ client = FathomApi(api_key="YOUR_API_KEY", )
25
+ client.list_meetings()
26
+ ```
27
+
28
+ ## Async Client
29
+
30
+ The SDK also exports an `async` client so that you can make non-blocking calls to our API.
31
+
32
+ ```python
33
+ from fathom import AsyncFathomApi
34
+ import asyncio
35
+ client = AsyncFathomApi(api_key="YOUR_API_KEY", )
36
+ async def main() -> None:
37
+ await client.list_meetings()
38
+ asyncio.run(main())
39
+ ```
40
+
41
+ ## Exception Handling
42
+
43
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
44
+ will be thrown.
45
+
46
+ ```python
47
+ from fathom.core.api_error import ApiError
48
+ try:
49
+ client.list_meetings(...)
50
+ except ApiError as e:
51
+ print(e.status_code)
52
+ print(e.body)
53
+ ```
54
+
55
+ ## Advanced
56
+
57
+ ### Access Raw Response Data
58
+
59
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
60
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
61
+
62
+ ```python
63
+ from fathom import FathomApi
64
+ client = FathomApi(..., )
65
+ response = client.with_raw_response.list_meetings(...)
66
+ print(response.headers) # access the response headers
67
+ print(response.data) # access the underlying object
68
+ ```
69
+
70
+ ### Retries
71
+
72
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
73
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
74
+ retry limit (default: 2).
75
+
76
+ A request is deemed retryable when any of the following HTTP status codes is returned:
77
+
78
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
79
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
80
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
81
+
82
+ Use the `max_retries` request option to configure this behavior.
83
+
84
+ ```python
85
+ client.list_meetings(..., request_options={
86
+ "max_retries": 1
87
+ })
88
+ ```
89
+
90
+ ### Timeouts
91
+
92
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
93
+
94
+ ```python
95
+
96
+ from fathom import FathomApi
97
+ client = FathomApi(..., timeout=20.0, )
98
+
99
+ # Override timeout for a specific method
100
+ client.list_meetings(..., request_options={
101
+ "timeout_in_seconds": 1
102
+ })
103
+ ```
104
+
105
+ ### Custom Client
106
+
107
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
108
+ and transports.
109
+
110
+ ```python
111
+ from fathom import FathomApi
112
+ import httpx
113
+ client = FathomApi(..., httpx_client=httpx.Client(proxies="http://my.test.proxy.example.com", transport=httpx.HTTPTransport(local_address="0.0.0.0"), ))```
114
+
115
+ ## Contributing
116
+
117
+ While we value open-source contributions to this SDK, this library is generated programmatically.
118
+ Additions made directly to this library would have to be moved over to our generation code,
119
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
120
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
121
+ an issue first to discuss with us!
122
+
123
+ On the other hand, contributions to the README are always very welcome!
@@ -0,0 +1,85 @@
1
+ [project]
2
+ name = "fathom-python"
3
+
4
+ [tool.poetry]
5
+ name = "fathom-python"
6
+ version = "0.0.23"
7
+ description = ""
8
+ readme = "README.md"
9
+ authors = []
10
+ keywords = []
11
+
12
+ classifiers = [
13
+ "Intended Audience :: Developers",
14
+ "Programming Language :: Python",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.8",
17
+ "Programming Language :: Python :: 3.9",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Operating System :: OS Independent",
22
+ "Operating System :: POSIX",
23
+ "Operating System :: MacOS",
24
+ "Operating System :: POSIX :: Linux",
25
+ "Operating System :: Microsoft :: Windows",
26
+ "Topic :: Software Development :: Libraries :: Python Modules",
27
+ "Typing :: Typed"
28
+ ]
29
+ packages = [
30
+ { include = "fathom", from = "src"}
31
+ ]
32
+
33
+ [project.urls]
34
+ Repository = 'https://github.com/fathom-video/fathom-python'
35
+
36
+ [tool.poetry.dependencies]
37
+ python = "^3.8"
38
+ httpx = ">=0.21.2"
39
+ pydantic = ">= 1.9.2"
40
+ pydantic-core = "^2.18.2"
41
+ svix = "1.65.0"
42
+ typing_extensions = ">= 4.0.0"
43
+
44
+ [tool.poetry.group.dev.dependencies]
45
+ mypy = "==1.13.0"
46
+ pytest = "^7.4.0"
47
+ pytest-asyncio = "^0.23.5"
48
+ python-dateutil = "^2.9.0"
49
+ types-python-dateutil = "^2.9.0.20240316"
50
+ ruff = "==0.11.5"
51
+
52
+ [tool.pytest.ini_options]
53
+ testpaths = [ "tests" ]
54
+ asyncio_mode = "auto"
55
+
56
+ [tool.mypy]
57
+ plugins = ["pydantic.mypy"]
58
+
59
+ [tool.ruff]
60
+ line-length = 120
61
+
62
+ [tool.ruff.lint]
63
+ select = [
64
+ "E", # pycodestyle errors
65
+ "F", # pyflakes
66
+ "I", # isort
67
+ ]
68
+ ignore = [
69
+ "E402", # Module level import not at top of file
70
+ "E501", # Line too long
71
+ "E711", # Comparison to `None` should be `cond is not None`
72
+ "E712", # Avoid equality comparisons to `True`; use `if ...:` checks
73
+ "E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
74
+ "E722", # Do not use bare `except`
75
+ "E731", # Do not assign a `lambda` expression, use a `def`
76
+ "F821", # Undefined name
77
+ "F841" # Local variable ... is assigned to but never used
78
+ ]
79
+
80
+ [tool.ruff.lint.isort]
81
+ section-order = ["future", "standard-library", "third-party", "first-party"]
82
+
83
+ [build-system]
84
+ requires = ["poetry-core"]
85
+ build-backend = "poetry.core.masonry.api"
@@ -0,0 +1,57 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .types import (
6
+ ActionItem,
7
+ Assignee,
8
+ CrmCompanyMatch,
9
+ CrmContactMatch,
10
+ CrmDealMatch,
11
+ CrmMatches,
12
+ FathomUser,
13
+ Invitee,
14
+ ListMeetingsRequestMeetingType,
15
+ Meeting,
16
+ MeetingListResponse,
17
+ MeetingMeetingType,
18
+ MeetingSummary,
19
+ Team,
20
+ TeamListResponse,
21
+ TeamMember,
22
+ TeamMemberListResponse,
23
+ TranscriptItem,
24
+ TranscriptItemSpeaker,
25
+ )
26
+ from .errors import BadRequestError, UnauthorizedError
27
+ from .client import AsyncFathomApi, FathomApi
28
+ from .environment import ClientEnvironment
29
+ from .version import __version__
30
+
31
+ __all__ = [
32
+ "ActionItem",
33
+ "Assignee",
34
+ "AsyncFathomApi",
35
+ "BadRequestError",
36
+ "FathomApi",
37
+ "ClientEnvironment",
38
+ "CrmCompanyMatch",
39
+ "CrmContactMatch",
40
+ "CrmDealMatch",
41
+ "CrmMatches",
42
+ "FathomUser",
43
+ "Invitee",
44
+ "ListMeetingsRequestMeetingType",
45
+ "Meeting",
46
+ "MeetingListResponse",
47
+ "MeetingMeetingType",
48
+ "MeetingSummary",
49
+ "Team",
50
+ "TeamListResponse",
51
+ "TeamMember",
52
+ "TeamMemberListResponse",
53
+ "TranscriptItem",
54
+ "TranscriptItemSpeaker",
55
+ "UnauthorizedError",
56
+ "__version__",
57
+ ]