Skip to content

Commit

Permalink
went ahead and renamed the Clas sObject
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsdevera committed Jul 27, 2022
1 parent 0ed413b commit 6027ce4
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 235 deletions.
19 changes: 0 additions & 19 deletions docs/Makefile

This file was deleted.

62 changes: 0 additions & 62 deletions docs/conf.py

This file was deleted.

25 changes: 0 additions & 25 deletions docs/index.rst

This file was deleted.

35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

40 changes: 0 additions & 40 deletions docs/mwdbexc.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/mwdblib.rst

This file was deleted.

11 changes: 0 additions & 11 deletions docs/mwdbsecondary.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/mwdbtypes.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
setup(
name="vxdb",
version=version_info["__version__"],
description="MWDB API bindings for Python",
description="virus.exchange API bindings for Python, based on MWDB.",
author="psrok1",
packages=["vxdb", "vxdb.api", "vxdb.cli", "vxdb.cli.formatters"],
package_data={"vxdb": ["py.typed"]},
Expand Down
2 changes: 1 addition & 1 deletion tests/e2etest_mwdblib.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from vxdb import MWDB
from vxdb import VXDB
import unittest
from itertools import islice
from tests.request_counter import RequestsCounter
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mwdblib.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def test_public_api(self):
"""
This imports are a part of the public API and should never be removed
"""
from vxdb import MWDB # noqa
from vxdb import VXDB # noqa
from vxdb import APIClient # noqa
from vxdb import MWDBFile # noqa
from vxdb import MWDBObject # noqa
Expand Down
4 changes: 2 additions & 2 deletions vxdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from .blob import MWDBBlob
from .comment import MWDBComment
from .config import MWDBConfig
from .core import MWDB
from .core import VXDB
from .file import MWDBFile
from .object import MWDBObject
from .util import config_dhash

__all__ = [
"MWDB",
"VXDB",
"APIClient",
"APIClientOptions",
"MWDBFile",
Expand Down
2 changes: 1 addition & 1 deletion vxdb/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.2.1"
__version__ = "4.3.0"
4 changes: 2 additions & 2 deletions vxdb/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from click.globals import get_current_context

from .. import __version__
from ..core import MWDB
from ..core import VXDB
from ..exc import MWDBError, NotAuthenticatedError


Expand All @@ -23,7 +23,7 @@ def wrapper(*args, **kwargs):
config_path = kwargs.pop("config_path")
if config_path:
mwdb_options["config_path"] = config_path
mwdb = MWDB(**mwdb_options)
mwdb = VXDB(**mwdb_options)
try:
return fn(mwdb=mwdb, *args, **kwargs)
except NotAuthenticatedError:
Expand Down
10 changes: 5 additions & 5 deletions vxdb/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
MWDBObjectVar = TypeVar("MWDBObjectVar", bound=MWDBObject)


class MWDB:
class VXDB:
"""
Main object used for communication with MWDB REST API
Expand Down Expand Up @@ -82,7 +82,7 @@ class MWDB:
.. code-block:: python
from mwdblib import MWDB
from mwdblib import VXDB
mwdb = MWDB()
mwdb.login("example", "<password>")
Expand Down Expand Up @@ -186,7 +186,7 @@ def recent_objects(self) -> Iterator[MWDBObject]:
.. code-block:: python
from mwdblib import MWDB
from mwdblib import VXDB
from itertools import islice
mwdb = MWDB()
Expand Down Expand Up @@ -588,7 +588,7 @@ def search(self, query: str) -> Iterator[MWDBObject]:
.. code-block:: python
from mwdblib import MWDB
from mwdblib import VXDB
# Search for samples tagged as evil and with size less than 100kB
results = mwdb.search_files("tag:evil AND file.size:[0 TO 100000]")
Expand Down Expand Up @@ -656,7 +656,7 @@ def count(self, query: Optional[str] = None) -> int:
.. code-block:: python
from mwdblib import MWDB
from mwdblib import VXDB
mwdb = MWDB()
Expand Down

0 comments on commit 6027ce4

Please # to comment.