revengai 2.0.4__py3-none-any.whl → 2.3.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.

Potentially problematic release.


This version of revengai might be problematic. Click here for more details.

revengai/__init__.py CHANGED
@@ -13,7 +13,7 @@
13
13
  """ # noqa: E501
14
14
 
15
15
 
16
- __version__ = "v2.0.4"
16
+ __version__ = "v2.3.0"
17
17
 
18
18
  # Define package exports
19
19
  __all__ = [
revengai/api_client.py CHANGED
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/v2.0.4/python'
93
+ self.user_agent = 'OpenAPI-Generator/v2.3.0/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
revengai/configuration.py CHANGED
@@ -529,8 +529,8 @@ conf = revengai.Configuration(
529
529
  return "Python SDK Debug Report:\n"\
530
530
  "OS: {env}\n"\
531
531
  "Python Version: {pyversion}\n"\
532
- "Version of the API: v2.0.4\n"\
533
- "SDK Package Version: v2.0.4".\
532
+ "Version of the API: v2.3.0\n"\
533
+ "SDK Package Version: v2.3.0".\
534
534
  format(env=sys.platform, pyversion=sys.version)
535
535
 
536
536
  def get_host_settings(self) -> List[HostSetting]:
@@ -17,7 +17,7 @@ import re # noqa: F401
17
17
  import json
18
18
 
19
19
  from pydantic import BaseModel, ConfigDict, Field, StrictInt
20
- from typing import Any, ClassVar, Dict, List
20
+ from typing import Any, ClassVar, Dict, List, Optional
21
21
  from typing import Optional, Set
22
22
  from typing_extensions import Self
23
23
 
@@ -25,7 +25,7 @@ class AppApiRestV2FunctionsResponsesFunction(BaseModel):
25
25
  """
26
26
  Function schema used in function strings response.
27
27
  """ # noqa: E501
28
- function_id: StrictInt
28
+ function_id: Optional[StrictInt] = None
29
29
  function_vaddr: StrictInt = Field(description="Function virtual address")
30
30
  __properties: ClassVar[List[str]] = ["function_id", "function_vaddr"]
31
31
 
@@ -68,6 +68,11 @@ class AppApiRestV2FunctionsResponsesFunction(BaseModel):
68
68
  exclude=excluded_fields,
69
69
  exclude_none=True,
70
70
  )
71
+ # set to None if function_id (nullable) is None
72
+ # and model_fields_set contains the field
73
+ if self.function_id is None and "function_id" in self.model_fields_set:
74
+ _dict['function_id'] = None
75
+
71
76
  return _dict
72
77
 
73
78
  @classmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: revengai
3
- Version: 2.0.4
3
+ Version: 2.3.0
4
4
  Summary: RevEng.AI API
5
5
  Project-URL: Repository, https://github.com/RevEngAI/sdk-python
6
6
  License-Expression: MIT
@@ -1,7 +1,7 @@
1
- revengai/__init__.py,sha256=cDp3MAHbJUuaQ0ISc1IzdL94LiYvdPGmgETIGM3RNQk,42410
2
- revengai/api_client.py,sha256=M6OlFg9vvYbeAsXLoay4HcsUp98c2UwKHa-tzaLJNCw,27669
1
+ revengai/__init__.py,sha256=TYfLVOeLbKDJA6hG_MWx-sV0l9PzhA06GqZcAr6K7q4,42410
2
+ revengai/api_client.py,sha256=R80AzL7caA-jKA3Y5o41s2__Qd39WcjbAVaK9rohcTI,27669
3
3
  revengai/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- revengai/configuration.py,sha256=6N2lvNxI5YNAmTp1nHGYnpfXHklHvPOEYlWJk81Nu5k,18747
4
+ revengai/configuration.py,sha256=UQbLuThD1QQTS2BofAzwJyVqiy2atRMQ-NXhjEAdSlA,18747
5
5
  revengai/exceptions.py,sha256=IvdI9ZIZ9b2lSSKtIKMQDlG-5UPAedrjm3U4xfmGkso,6385
6
6
  revengai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  revengai/rest.py,sha256=T6Q2dcazhntqm288H33BKC1hf8NVdvmQWgaymlJo158,9376
@@ -49,7 +49,7 @@ revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py,sha25
49
49
  revengai/models/app_api_rest_v2_analyses_enums_order_by.py,sha256=Wpv3tfyAeBzN5_jkk4tBtYlJvUn8h0qudg4bvzBtKh8,739
50
50
  revengai/models/app_api_rest_v2_analyses_responses_tag_item.py,sha256=Clh9pPBQKqeqeRiOZG4Fbh77pLPyKMCH3r3nU8Ej0Pc,2921
51
51
  revengai/models/app_api_rest_v2_collections_enums_order_by.py,sha256=IVV9Auj0-HwTYYI0ZvJv-P3ciLOkq0l7MOyy0A5s92I,846
52
- revengai/models/app_api_rest_v2_functions_responses_function.py,sha256=yGl8xqqkAfIPWNlT5IT2ICeUOlwr_mIKH4Irb7qr9XU,2682
52
+ revengai/models/app_api_rest_v2_functions_responses_function.py,sha256=DYRGwkWhrmdjgQQ13SFRwkcEF7VyaJnsJWLrcZiQkvc,2936
53
53
  revengai/models/app_api_rest_v2_functions_types_function.py,sha256=t3BttHuPogip0-MMl85lmIcc3wi_1dBcU1Ci-kEteTc,4071
54
54
  revengai/models/app_services_binary_ann_schema_tag_item.py,sha256=m25sIz8KEsPES0XGjmOZFhmLNLmB-jsakfRUpRfiMks,2977
55
55
  revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py,sha256=9e3LDnw0iNCbowQPFTkNyIqkzsCQyJLZrx6tqRska6o,2562
@@ -329,7 +329,7 @@ revengai/models/vulnerabilities.py,sha256=9t6uoZd3svWyfcZJjmj6zP731Dp47Apb25y8Qt
329
329
  revengai/models/vulnerability.py,sha256=P7rAOAYU5JLLpcRr824-YJgZba5kPb_J9ALV3tSNfLQ,3688
330
330
  revengai/models/vulnerability_type.py,sha256=SyOgfMmELYYc_H84oPkikBpjwngtG5Qw9Q_86a2TPr8,866
331
331
  revengai/models/workspace.py,sha256=chjU62GFvByEmaNd6luMNQVQLP3wlPx1zJgGJ_yyMLA,676
332
- revengai-2.0.4.dist-info/METADATA,sha256=Q3H7rt8cWozwws35NmmyR1FEyEiFPiDrPA7wPCS7aO4,40938
333
- revengai-2.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
334
- revengai-2.0.4.dist-info/licenses/LICENSE.md,sha256=z1S-x9w52sZDqbFdJi0kL5-FLP5CR2aQA0kW8m6scaw,1052
335
- revengai-2.0.4.dist-info/RECORD,,
332
+ revengai-2.3.0.dist-info/METADATA,sha256=1KsMBvQpIlEoya9vZQ2ccmTLqoLscnT-e_7D3Ryyr2Q,40938
333
+ revengai-2.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
334
+ revengai-2.3.0.dist-info/licenses/LICENSE.md,sha256=z1S-x9w52sZDqbFdJi0kL5-FLP5CR2aQA0kW8m6scaw,1052
335
+ revengai-2.3.0.dist-info/RECORD,,