polyswarm-api 3.13.2__tar.gz → 3.14.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.
@@ -1,26 +1,31 @@
1
- Metadata-Version: 2.1
2
- Name: polyswarm-api
3
- Version: 3.13.2
1
+ Metadata-Version: 2.4
2
+ Name: polyswarm_api
3
+ Version: 3.14.1
4
4
  Summary: Client library to simplify interacting with the PolySwarm consumer API
5
- Home-page: https://github.com/polyswarm/polyswarm-api
6
- Author: PolySwarm Developers
7
- Author-email: info@polyswarm.io
5
+ Author-email: PolySwarm Developers <info@polyswarm.io>
8
6
  License: MIT
7
+ Project-URL: Homepage, https://github.com/polyswarm/polyswarm-api
9
8
  Classifier: Intended Audience :: Developers
10
9
  Classifier: License :: OSI Approved :: MIT License
11
10
  Classifier: Operating System :: OS Independent
12
- Classifier: Programming Language :: Python :: 3.7
13
- Classifier: Programming Language :: Python :: 3.8
14
- Classifier: Programming Language :: Python :: 3.9
15
11
  Classifier: Programming Language :: Python :: 3.10
16
12
  Classifier: Programming Language :: Python :: 3.11
17
13
  Classifier: Programming Language :: Python :: 3.12
18
- Classifier: Programming Language :: Python :: Implementation :: PyPy
19
- Requires-Python: >=3.7,<4
14
+ Requires-Python: <4,>=3.10
20
15
  Description-Content-Type: text/markdown
21
16
  License-File: LICENSE
22
-
23
- # polyswarm-api
17
+ Requires-Dist: requests>=2.31
18
+ Requires-Dist: python-dateutil>=2.9
19
+ Provides-Extra: tests
20
+ Requires-Dist: bump-my-version~=1.2; extra == "tests"
21
+ Requires-Dist: pytest~=7.4; extra == "tests"
22
+ Requires-Dist: jsonschema~=3.0.2; extra == "tests"
23
+ Requires-Dist: responses~=0.23.3; extra == "tests"
24
+ Requires-Dist: python-dateutil~=2.9.0; extra == "tests"
25
+ Requires-Dist: vcrpy~=7.0; extra == "tests"
26
+ Dynamic: license-file
27
+
28
+ # polyswarm_api
24
29
 
25
30
  An interface to the PolySwarm Customer APIs.
26
31
  For an easy-to-use CLI tool, or as an example of how to use these APIs, please see [polyswarm-cli](https://github.com/polyswarm/polyswarm-cli)
@@ -31,7 +36,7 @@ Supports Python 3.7 and greater.
31
36
 
32
37
  From PyPI:
33
38
 
34
- pip install polyswarm-api
39
+ pip install polyswarm_api
35
40
 
36
41
  From source:
37
42
 
@@ -44,11 +49,11 @@ From source:
44
49
 
45
50
  ## Usage
46
51
 
47
- See the [polyswarm-api documentation](https://docs.polyswarm.io/docs/polyswarm-customer-api) for usage guidance.
52
+ See the [polyswarm_api documentation](https://docs.polyswarm.io/docs/polyswarm-customer-api) for usage guidance.
48
53
 
49
54
  ## API Reference
50
55
 
51
- See the [polyswarm-api reference](https://polyswarm-api.readthedocs.io/en/latest/autoapi/index.html) for API References.
56
+ See the [polyswarm_api reference](https://polyswarm-api.readthedocs.io/en/latest/autoapi/index.html) for API References.
52
57
 
53
58
  ## Questions? Problems?
54
59
 
@@ -1,4 +1,4 @@
1
- # polyswarm-api
1
+ # polyswarm_api
2
2
 
3
3
  An interface to the PolySwarm Customer APIs.
4
4
  For an easy-to-use CLI tool, or as an example of how to use these APIs, please see [polyswarm-cli](https://github.com/polyswarm/polyswarm-cli)
@@ -9,7 +9,7 @@ Supports Python 3.7 and greater.
9
9
 
10
10
  From PyPI:
11
11
 
12
- pip install polyswarm-api
12
+ pip install polyswarm_api
13
13
 
14
14
  From source:
15
15
 
@@ -22,11 +22,11 @@ From source:
22
22
 
23
23
  ## Usage
24
24
 
25
- See the [polyswarm-api documentation](https://docs.polyswarm.io/docs/polyswarm-customer-api) for usage guidance.
25
+ See the [polyswarm_api documentation](https://docs.polyswarm.io/docs/polyswarm-customer-api) for usage guidance.
26
26
 
27
27
  ## API Reference
28
28
 
29
- See the [polyswarm-api reference](https://polyswarm-api.readthedocs.io/en/latest/autoapi/index.html) for API References.
29
+ See the [polyswarm_api reference](https://polyswarm-api.readthedocs.io/en/latest/autoapi/index.html) for API References.
30
30
 
31
31
  ## Questions? Problems?
32
32
 
@@ -0,0 +1,83 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "polyswarm_api"
7
+ version = "3.14.1"
8
+ description = "Client library to simplify interacting with the PolySwarm consumer API"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10,<4"
11
+ authors = [{ name = "PolySwarm Developers", email = "info@polyswarm.io" }]
12
+ license = { text = "MIT" }
13
+ urls = { Homepage = "https://github.com/polyswarm/polyswarm-api" }
14
+ classifiers = [
15
+ "Intended Audience :: Developers",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Operating System :: OS Independent",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ ]
22
+ dependencies = [
23
+ "requests>=2.31",
24
+ "python-dateutil>=2.9",
25
+ ]
26
+
27
+ [project.optional-dependencies]
28
+ tests = [
29
+ "bump-my-version~=1.2",
30
+ "pytest~=7.4",
31
+ "jsonschema~=3.0.2",
32
+ "responses~=0.23.3",
33
+ "python-dateutil~=2.9.0",
34
+ 'vcrpy~=7.0',
35
+ ]
36
+
37
+ [tool.setuptools]
38
+ include-package-data = true
39
+ package-dir = { "" = "src" }
40
+
41
+ [tool.setuptools.packages.find]
42
+ where = ["src"]
43
+
44
+ [tool.bumpversion]
45
+ current_version = "3.14.1"
46
+ commit = true
47
+ tag = false
48
+ sign_tags = true
49
+ tag_name = "{new_version}"
50
+ parse = '^(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:\.dev(?P<dev>\d+))?(?:\+(?P<local>[a-z0-9]+(?:\.[a-z0-9]+)*))?$'
51
+ serialize = [
52
+ "{major}.{minor}.{patch}.dev{dev}+{short_commit_sha}",
53
+ "{major}.{minor}.{patch}"
54
+ ]
55
+
56
+ [tool.bumpversion.parts.dev]
57
+ first_value = "0"
58
+ optional_value = "0"
59
+
60
+ [[tool.bumpversion.files]]
61
+ filename = "src/polyswarm_api/__init__.py"
62
+ search = "__version__ = '{current_version}'"
63
+ replace = "__version__ = '{new_version}'"
64
+
65
+ [tool.pytest.ini_options]
66
+ log_cli = true
67
+ log_cli_level = "DEBUG"
68
+ log_format = "%(asctime)s %(levelname)-2s [%(name)s:%(filename)s:%(lineno)d:%(funcName)1s()] %(message)s"
69
+ python_files = ["test_*.py", "*_test.py"]
70
+ testpaths = ["test"]
71
+ norecursedirs = [
72
+ ".git",
73
+ ".idea",
74
+ ]
75
+ filterwarnings = [
76
+ "ignore::DeprecationWarning",
77
+ ]
78
+ addopts = [
79
+ "--continue-on-collection-errors",
80
+ "-v",
81
+ "-s",
82
+ "-rxXs",
83
+ ]
@@ -1,5 +1,5 @@
1
1
  # https://www.python.org/dev/peps/pep-0008/#module-level-dunder-names
2
- __version__ = '3.13.2'
2
+ __version__ = '3.14.1'
3
3
  __release_url__ = 'https://api.github.com/repos/polyswarm/polyswarm-api/releases/latest'
4
4
 
5
5
  from . import api
@@ -229,11 +229,14 @@ class PolyswarmAPI:
229
229
  :param scan_config: The scan configuration to be used, e.g.: "default", "more-time", "most-time"
230
230
  :param preprocessing: Preprocessing settings to be applied to the artifact, None means no preprocessing,
231
231
  otherwise a dict with the following attributes can be passed:
232
- - type (string): either "zip" or "qrcode", the first mean the file is a zip that
233
- the server has to decompress to then scan the content (only one file inside allowed).
234
- "qrcode" means the file is a QR Code image with a URL as payload, and you want
235
- to scan the URL, not the actual file (artifact_type has to be "URL").
236
- - password (string, optional): will use this password to decompress the zip file.
232
+ - type (string): either "zip", "base64", "7zip", or "qrcode". "zip" means the file is a
233
+ zip that the server has to decompress to then scan the content (only one file inside
234
+ allowed). "base64" means the file content is base64-encoded and the server has to
235
+ decode it before scanning. "7zip" means the file is a 7zip archive that the server
236
+ has to decompress to then scan the content (only one file inside allowed). "qrcode"
237
+ means the file is a QR Code image with a URL as payload, and you want to scan the URL,
238
+ not the actual file (artifact_type has to be "URL").
239
+ - password (string, optional): will use this password to decompress the zip or 7zip file.
237
240
  :return: An ArtifactInstance resource
238
241
  """
239
242
  logger.info('Submitting artifact of type %s', artifact_type)
@@ -757,10 +760,11 @@ class PolyswarmAPI:
757
760
  the list of VMs available.
758
761
  :param preprocessing: Preprocessing settings to be applied to the artifact, None means no preprocessing,
759
762
  otherwise a dict with the following attributes can be passed:
760
- - type (string): either "zip" or "qrcode", the first means the file is a zip that
763
+ - type (string): either "zip", "base64", or "qrcode". "zip" means the file is a zip that
761
764
  the server has to decompress to then scan the content (only one file inside allowed).
762
- "qrcode" means the file is a QR Code image with a URL as payload, and you want
763
- to scan the URL, not the actual file (artifact_type has to be "URL").
765
+ "base64" means the file content is base64-encoded and the server has to decode it
766
+ before scanning. "qrcode" means the file is a QR Code image with a URL as payload,
767
+ and you want to scan the URL, not the actual file (artifact_type has to be "URL").
764
768
  - password (string, optional): will use this password to decompress the zip file.
765
769
  :param arguments: The arguments to be passed to the sample being sandboxed, e.g. '--some-param="<PARAM VAL>"'
766
770
  :return: An ArtifactInstance resource
@@ -16,7 +16,7 @@ DEFAULT_HTTP_TIMEOUT = 30
16
16
  DEFAULT_RETRIES = 0
17
17
  DEFAULT_BACKOFF = 1
18
18
  DEFAULT_RETRY_CODES = (502, 504)
19
- DEFAULT_USER_AGENT = 'polyswarm-api/{} ({}-{}-{}-{})'.format(
19
+ DEFAULT_USER_AGENT = 'polyswarm_api/{} ({}-{}-{}-{})'.format(
20
20
  polyswarm_api.__version__, platform.machine(), platform.system(),
21
21
  platform.python_implementation(), platform.python_version(),
22
22
  )
@@ -1,26 +1,31 @@
1
- Metadata-Version: 2.1
2
- Name: polyswarm-api
3
- Version: 3.13.2
1
+ Metadata-Version: 2.4
2
+ Name: polyswarm_api
3
+ Version: 3.14.1
4
4
  Summary: Client library to simplify interacting with the PolySwarm consumer API
5
- Home-page: https://github.com/polyswarm/polyswarm-api
6
- Author: PolySwarm Developers
7
- Author-email: info@polyswarm.io
5
+ Author-email: PolySwarm Developers <info@polyswarm.io>
8
6
  License: MIT
7
+ Project-URL: Homepage, https://github.com/polyswarm/polyswarm-api
9
8
  Classifier: Intended Audience :: Developers
10
9
  Classifier: License :: OSI Approved :: MIT License
11
10
  Classifier: Operating System :: OS Independent
12
- Classifier: Programming Language :: Python :: 3.7
13
- Classifier: Programming Language :: Python :: 3.8
14
- Classifier: Programming Language :: Python :: 3.9
15
11
  Classifier: Programming Language :: Python :: 3.10
16
12
  Classifier: Programming Language :: Python :: 3.11
17
13
  Classifier: Programming Language :: Python :: 3.12
18
- Classifier: Programming Language :: Python :: Implementation :: PyPy
19
- Requires-Python: >=3.7,<4
14
+ Requires-Python: <4,>=3.10
20
15
  Description-Content-Type: text/markdown
21
16
  License-File: LICENSE
22
-
23
- # polyswarm-api
17
+ Requires-Dist: requests>=2.31
18
+ Requires-Dist: python-dateutil>=2.9
19
+ Provides-Extra: tests
20
+ Requires-Dist: bump-my-version~=1.2; extra == "tests"
21
+ Requires-Dist: pytest~=7.4; extra == "tests"
22
+ Requires-Dist: jsonschema~=3.0.2; extra == "tests"
23
+ Requires-Dist: responses~=0.23.3; extra == "tests"
24
+ Requires-Dist: python-dateutil~=2.9.0; extra == "tests"
25
+ Requires-Dist: vcrpy~=7.0; extra == "tests"
26
+ Dynamic: license-file
27
+
28
+ # polyswarm_api
24
29
 
25
30
  An interface to the PolySwarm Customer APIs.
26
31
  For an easy-to-use CLI tool, or as an example of how to use these APIs, please see [polyswarm-cli](https://github.com/polyswarm/polyswarm-cli)
@@ -31,7 +36,7 @@ Supports Python 3.7 and greater.
31
36
 
32
37
  From PyPI:
33
38
 
34
- pip install polyswarm-api
39
+ pip install polyswarm_api
35
40
 
36
41
  From source:
37
42
 
@@ -44,11 +49,11 @@ From source:
44
49
 
45
50
  ## Usage
46
51
 
47
- See the [polyswarm-api documentation](https://docs.polyswarm.io/docs/polyswarm-customer-api) for usage guidance.
52
+ See the [polyswarm_api documentation](https://docs.polyswarm.io/docs/polyswarm-customer-api) for usage guidance.
48
53
 
49
54
  ## API Reference
50
55
 
51
- See the [polyswarm-api reference](https://polyswarm-api.readthedocs.io/en/latest/autoapi/index.html) for API References.
56
+ See the [polyswarm_api reference](https://polyswarm-api.readthedocs.io/en/latest/autoapi/index.html) for API References.
52
57
 
53
58
  ## Questions? Problems?
54
59
 
@@ -1,8 +1,6 @@
1
1
  LICENSE
2
- MANIFEST.in
3
2
  README.md
4
- requirements.txt
5
- setup.py
3
+ pyproject.toml
6
4
  src/polyswarm_api/__init__.py
7
5
  src/polyswarm_api/api.py
8
6
  src/polyswarm_api/core.py
@@ -0,0 +1,10 @@
1
+ requests>=2.31
2
+ python-dateutil>=2.9
3
+
4
+ [tests]
5
+ bump-my-version~=1.2
6
+ pytest~=7.4
7
+ jsonschema~=3.0.2
8
+ responses~=0.23.3
9
+ python-dateutil~=2.9.0
10
+ vcrpy~=7.0
@@ -1 +0,0 @@
1
- include requirements.txt
@@ -1,7 +0,0 @@
1
- requests>=2.31
2
- pytest~=7.4
3
- jsonschema~=3.0.2
4
- responses==0.23.3
5
- python-dateutil==2.9.0
6
- vcrpy~=4.4; python_version == "3.7"
7
- vcrpy~=7.0; python_version > "3.7"
@@ -1,40 +0,0 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
- from setuptools import find_packages, setup
4
-
5
- # The README.md will be used as the content for the PyPi package details page on the Python Package Index.
6
- with open('README.md', 'r') as readme:
7
- long_description = readme.read()
8
-
9
-
10
- setup(
11
- name='polyswarm-api',
12
- version='3.13.2',
13
- description='Client library to simplify interacting with the PolySwarm consumer API',
14
- long_description=long_description,
15
- long_description_content_type='text/markdown',
16
- author='PolySwarm Developers',
17
- author_email='info@polyswarm.io',
18
- url='https://github.com/polyswarm/polyswarm-api',
19
- license='MIT',
20
- python_requires='>=3.7,<4',
21
- install_requires=[
22
- 'requests~=2.31',
23
- 'python-dateutil~=2.9',
24
- ],
25
- include_package_data=True,
26
- packages=find_packages('src'),
27
- package_dir={'': 'src'},
28
- classifiers=[
29
- 'Intended Audience :: Developers',
30
- 'License :: OSI Approved :: MIT License',
31
- 'Operating System :: OS Independent',
32
- 'Programming Language :: Python :: 3.7',
33
- 'Programming Language :: Python :: 3.8',
34
- 'Programming Language :: Python :: 3.9',
35
- 'Programming Language :: Python :: 3.10',
36
- 'Programming Language :: Python :: 3.11',
37
- 'Programming Language :: Python :: 3.12',
38
- 'Programming Language :: Python :: Implementation :: PyPy',
39
- ]
40
- )
@@ -1,2 +0,0 @@
1
- requests~=2.31
2
- python-dateutil~=2.9
File without changes
File without changes