Commit Graph

  • 9043a9dc8e Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into dev-extensions-proposal Emmanuelle Vargas-Gonzalez 2021-02-19 21:54:46 -0500
  • 173575205a
    Merge pull request #493 from oasis-open/equivalence-guide Chris Lenk 2021-02-19 17:04:31 -0500
  • 4825f5e303 Small touchups Chris Lenk 2021-02-19 16:57:15 -0500
  • ecf952c07b it updated itself... Emmanuelle Vargas-Gonzalez 2021-02-19 14:50:52 -0500
  • 2308528957 add text and example for equivalence.ipynb Emmanuelle Vargas-Gonzalez 2021-02-19 14:48:23 -0500
  • 5067a3ff76 couple of changes after merging against master Emmanuelle Vargas-Gonzalez 2021-02-19 10:05:56 -0500
  • 35f4bb0443 Update the semantic equivalence user guide page Differentiate between similarity and equivalence, and update functions to their new names and locations. Chris Lenk 2021-02-18 23:42:06 -0500
  • 4bccfd26bd
    Merge pull request #492 from oasis-open/drop-six Chris Lenk 2021-02-18 23:45:13 -0500
  • 64608e7bea
    Merge pull request #491 from emmanvg/graph-eq-changes Chris Lenk 2021-02-18 23:44:39 -0500
  • b7b1b54afb Remove 'six' from config Chris Lenk 2021-02-18 23:39:24 -0500
  • 528d956f4a Specify lowest supported Python version Chris Lenk 2021-02-18 20:45:38 -0500
  • a8b6fa2100 Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into dev-extensions-proposal Emmanuelle Vargas-Gonzalez 2021-02-18 16:04:30 -0500
  • b4a0a9ea10 Remove six dependency (backwards breaking) We've already removed Python 2 from our test harness, but this removes all python 2 compatibility code left in. Chris Lenk 2021-02-18 12:26:54 -0500
  • 490251dd85 Revert JSON canonicalization code Undo our Python 2 compatibility fixes Chris Lenk 2021-02-18 12:21:52 -0500
  • 99453770cf doctring changes, _versioned_checks changes Emmanuelle Vargas-Gonzalez 2021-02-18 10:37:34 -0500
  • fa6978969b removing unused imports (backwards breaking) Emmanuelle Vargas-Gonzalez 2021-02-18 10:20:42 -0500
  • 010593345c
    Update stix2/environment.py Emmanuelle Vargas-Gonzalez 2021-02-18 09:16:19 -0500
  • 75b411df85
    Update stix2/environment.py Emmanuelle Vargas-Gonzalez 2021-02-18 09:15:26 -0500
  • 75574c9427
    Update stix2/equivalence/object/__init__.py Emmanuelle Vargas-Gonzalez 2021-02-18 09:15:09 -0500
  • 34feac6ae7
    Update stix2/environment.py Emmanuelle Vargas-Gonzalez 2021-02-18 09:14:47 -0500
  • 154fc4e236
    Update stix2/equivalence/object/__init__.py Emmanuelle Vargas-Gonzalez 2021-02-18 09:14:34 -0500
  • 52c5f3ad29
    Update stix2/equivalence/object/__init__.py Emmanuelle Vargas-Gonzalez 2021-02-18 09:14:10 -0500
  • 702c80bd53 add styling changes Emmanuelle Vargas-Gonzalez 2021-02-17 21:47:56 -0500
  • ee63e9faf4 resolve issue regarding reference_check or list_reference_check, remove redundant object_similarity call Emmanuelle Vargas-Gonzalez 2021-02-17 21:30:14 -0500
  • c656d35da5 add more test coverage for new functions Emmanuelle Vargas-Gonzalez 2021-02-16 13:40:42 -0500
  • d2d85badb2 make some functions internal, add some docs for them Emmanuelle Vargas-Gonzalez 2021-02-16 11:01:07 -0500
  • 09fd8c060b clear debug message Emmanuelle Vargas-Gonzalez 2021-02-16 10:23:02 -0500
  • fbea229004 add styling changes Emmanuelle Vargas-Gonzalez 2021-02-16 09:44:03 -0500
  • ef610ec8d3 small docstring fix Emmanuelle Vargas-Gonzalez 2021-02-16 09:36:09 -0500
  • f966c64b40 update test suite for environments Emmanuelle Vargas-Gonzalez 2021-02-16 01:05:46 -0500
  • 690a515f00 add methods to environment.py Emmanuelle Vargas-Gonzalez 2021-02-16 00:58:33 -0500
  • 02b076b3bb resolve issues with graph similarity Emmanuelle Vargas-Gonzalez 2021-02-16 00:57:26 -0500
  • f9ca68458a
    Merge pull request #490 from chisholm/rename_canonical Chris Lenk 2021-02-14 21:08:10 -0500
  • 745696cba1 Remove "canonical" from a couple more places in docstrings which I missed. Michael Chisholm 2021-02-14 19:25:59 -0500
  • ccaa8b62ae pre-commit stylistic fix Michael Chisholm 2021-02-11 19:35:28 -0500
  • 631460f45f Rename various symbols and change various comments to refer to normalization instead of canonicalization. Michael Chisholm 2021-02-11 19:33:57 -0500
  • e513081100
    Merge pull request #458 from chisholm/versioning_refinements Chris Lenk 2021-02-06 22:59:18 -0500
  • 5971129b7c
    Avoid potential KeyError in _is_versionable_type() Chris Lenk 2021-02-05 17:42:04 -0500
  • 58b79597b6
    Merge pull request #489 from chisholm/fix_xform_followedby_order Chris Lenk 2021-02-05 10:00:48 -0500
  • 5a210192bd pre-commit stylistic fix Michael Chisholm 2021-02-04 17:33:25 -0500
  • 9e9a61c71c Fix bug with observation expression DNF transformer, where it was not preserving operand order when distributing FOLLOWEDBY. Michael Chisholm 2021-02-04 16:45:39 -0500
  • 30fd8c3464 compact calls Emmanuelle Vargas-Gonzalez 2021-02-02 00:08:11 -0500
  • a7eb4113de minor change to align API Emmanuelle Vargas-Gonzalez 2021-02-02 00:04:04 -0500
  • 489970718f WIP: changes to graph_similarity Emmanuelle Vargas-Gonzalez 2021-02-01 22:35:37 -0500
  • 24374e7a5f
    Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into main chrisr3d 2021-01-29 19:19:04 +0100
  • bfc47e73f5
    Merge pull request #485 from oasis-open/emmanvg-patch-1 Chris Lenk 2021-01-29 09:52:00 -0500
  • 624d71ed53 pre-commit stylistic fixes Michael Chisholm 2021-01-26 21:24:10 -0500
  • 0dd6462d60 Add some unit tests which try to version marking-definitions. Michael Chisholm 2020-08-24 18:58:53 -0400
  • a97645abc3 Add some missing docstrings on a few exception classes. Michael Chisholm 2020-08-24 17:04:56 -0400
  • c74d06aadc Improve versioning.new_version() to better handle custom objects and dicts, and add better raised exception types if versioning couldn't be done. I changed workbench monkeypatching a bit, to copy some class attributes over to the workbench wrapper class-like callables, since some code expected those attributes to be there (e.g. the versioning code). Michael Chisholm 2020-08-24 16:57:40 -0400
  • 5e2d888d1c
    Merge pull request #483 from chisholm/is_functions Chris Lenk 2021-01-28 22:59:46 -0500
  • 3878788da4
    Update is_sro docstring Chris Lenk 2021-01-28 22:54:52 -0500
  • 98b0b2ed41 pre-commit stylistic fix Michael Chisholm 2021-01-28 19:32:27 -0500
  • 83abf78af5 Remove old compatibility code regarding importing the old stix2.core module. Michael Chisholm 2021-01-28 19:21:57 -0500
  • eead72aabc Fix docstring typo in is_marking(). Made a minor docstring update to is_sro() as well, so it doesn't talk as if you can register custom SROs. That didn't actually make sense. Michael Chisholm 2021-01-27 22:25:41 -0500
  • 77d20c787a
    Update observables.py Emmanuelle Vargas-Gonzalez 2021-01-27 11:31:14 -0500
  • a62dfbb41b missing common properties on CustomObservable decorator Emmanuelle Vargas-Gonzalez 2021-01-26 22:17:03 -0500
  • f9b9e0d2d7 pre-commit stylistic fixes Michael Chisholm 2021-01-20 20:59:10 -0500
  • 404fcd04ca Remove some ugly python2 compatibilty code from stix2.versioning module, since we no longer support python2. Michael Chisholm 2021-01-20 20:58:13 -0500
  • 38067a6ec7 pre-commit stylistic fixes Michael Chisholm 2021-01-20 20:49:01 -0500
  • 92a478b39b A minor revision to stix2.versioning: it's silly to look up a class in the registry when you have an instance of one of those classes. Because in that case, you can just get the class of the instance and not deal with the registry at all. Michael Chisholm 2021-01-20 19:42:06 -0500
  • 5aadf1ae91 Add some unit tests for attempting to change ID contributing properties of a 2.1 SCO with UUIDv5 ID, when creating a new version. Michael Chisholm 2021-01-20 19:16:22 -0500
  • 473e7d0068 Change versioning module to use some of the is_* utility functions. Changed some ">= 2.1" stix version semantics to be "== 2.1", because we don't have any version >= 2.1, so they are currently equivalent, and the is_*() functions don't support STIX version ranges. They only support exact versions. We can look at this again if a newer STIX version ever emerges. Michael Chisholm 2021-01-19 23:08:55 -0500
  • fe2330af07 Improve is_sdo() et al utility functions with respect to dict/mapping values: do a simple verification of the value's STIX version, not just its type. Added a lot more unit tests to test behavior on dicts. To make the implementation work, I had to move the detect_spec_version() function out of the parsing module and into utils. So that required small changes at all its previous call sites. Michael Chisholm 2021-01-19 19:57:05 -0500
  • f8c86f7352 Fixups after a rebase. There were several conflict resolutions and I probably forgot some stuff... Michael Chisholm 2021-01-15 19:12:14 -0500
  • bf284d0a0b Fix silly docstring copy-paste typo Michael Chisholm 2021-01-14 20:55:38 -0500
  • db1d0b736b Remove registry.get_stix2_class_maps(), since now that the class map structure is keyed by normal "X.Y" style versions, the convenience that function provided is no longer necessary. So it no longer makes sense to have the function (at least, not for that reason). Change users of that function to use the STIX2_OBJ_MAPS structure directly. Michael Chisholm 2021-01-13 21:46:32 -0500
  • f88fba6751 Change the stix2 class map structure to be keyed at the top level with STIX versions in the same format as is used everywhere else in the API: "X.Y", as opposed to the "vXY" format used by the version-specific python packages. This eliminates all of the awkward conversion from public API format to "vXX" format. Michael Chisholm 2021-01-13 21:09:40 -0500
  • 188f704b28 Remove a "this needs to be moved into the stix2 library" comment, since this *is* in the stix2 library! Michael Chisholm 2021-01-12 21:17:34 -0500
  • 24307626b0 Move get_stix2_class_maps() from .utils to .registry (since it's really just a simple accessor into the class maps table), and change other code to use it, in places where it was simple and made sense. Michael Chisholm 2021-01-12 16:30:26 -0500
  • 0f2ce0ac72 Add unit tests for the is_*() utility type checking functions. Michael Chisholm 2021-01-11 20:38:31 -0500
  • 51937232db Fix to an import statement which was necessary due to the circular import refactoring. I think I just forgot to include this in the previous commit... Michael Chisholm 2021-01-11 20:35:41 -0500
  • fa6cff8a34 WIP adding is_sdo() et al functions to this library. On hold while I address circular import problems. Michael Chisholm 2021-01-06 18:59:48 -0500
  • 03b3423cbb
    Merge pull request #481 from chisholm/parsing_refactoring Chris Lenk 2021-01-20 10:47:36 -0500
  • a48af17cf9 styling fixes Emmanuelle Vargas-Gonzalez 2021-01-15 16:05:57 -0500
  • 367b485fcd write some tests to check new MarkingDefinition constraints Emmanuelle Vargas-Gonzalez 2021-01-15 16:01:36 -0500
  • b696f14560 add content for basic incident testing Emmanuelle Vargas-Gonzalez 2021-01-15 15:13:30 -0500
  • be0ebbad65 add test_incident.py Emmanuelle Vargas-Gonzalez 2021-01-15 13:53:43 -0500
  • 82390ba648 Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into dev-extensions-proposal Emmanuelle Vargas-Gonzalez 2021-01-15 13:01:30 -0500
  • a0d535336e Merge 'master' and fix imports for consistency Chris Lenk 2021-01-15 12:34:10 -0500
  • 7de5c458bb Fix import sort order Chris Lenk 2021-01-15 10:27:39 -0500
  • a3f20dde7a Use consistent import style in parsing.py Chris Lenk 2021-01-15 10:27:23 -0500
  • 9ed62699ca
    Merge pull request #482 from emmanvg/migrate-to-gh-actions Chris Lenk 2021-01-14 15:38:01 -0500
  • 70d36f5aba
    Update tox.ini Chris Lenk 2021-01-14 15:36:45 -0500
  • 0004ef1861 update Python build matrix Emmanuelle Vargas-Gonzalez 2021-01-14 14:39:46 -0500
  • e4d68e634d assign a name to the jobs Emmanuelle Vargas-Gonzalez 2021-01-13 19:54:31 -0500
  • 983f931ecd some missing fixes... Emmanuelle Vargas-Gonzalez 2021-01-13 19:48:33 -0500
  • 85c14d1502 all changes from add-trailing-commas v2.0.2 Emmanuelle Vargas-Gonzalez 2021-01-13 17:52:15 -0500
  • acc90c2f4c changes brought by isort and add-trailing-commas Emmanuelle Vargas-Gonzalez 2021-01-13 17:50:21 -0500
  • 7c46cda9a2 update .pre-commit-config.yaml Emmanuelle Vargas-Gonzalez 2021-01-13 17:49:26 -0500
  • e980b5d9e6 test harness changes Emmanuelle Vargas-Gonzalez 2021-01-13 17:20:21 -0500
  • adbcd80a1d delete .travis.yml Emmanuelle Vargas-Gonzalez 2021-01-13 17:12:47 -0500
  • d5df655c08 add initial workflow configuration Emmanuelle Vargas-Gonzalez 2021-01-13 17:09:30 -0500
  • 233ea59df7 add python-ci-tests.yml Emmanuelle Vargas-Gonzalez 2021-01-13 17:07:53 -0500
  • 5d016142cf Small tweaks: move the definition of DEFAULT_VERSION from the top-level stix2 package to stix2.version but import it into stix2. This makes it possible for someone to get the symbol without needing to import all of stix2. Michael Chisholm 2021-01-13 11:22:34 -0500
  • f51e309775 Refactor stix2.parsing into more focused modules: - stix2.registry, which contains the class mapping structure and code for scanning stix2 modules for its initial population - stix2.registration, which contains code used to register custom STIX types with the registry - stix2.parsing, which contains code for creating instances of registered stix2 classes from raw dicts. Michael Chisholm 2021-01-08 22:08:33 -0500
  • a86b21dbf7 add checks for MarkingDefinition requirements Emmanuelle Vargas-Gonzalez 2020-12-23 16:15:31 -0500
  • 6a6f13c37b rename the Class auto-naming from 'STIXExtension' to 'ExtensionDefinition' Emmanuelle Vargas-Gonzalez 2020-12-23 16:07:30 -0500
  • a3fce3686a Merge branch 'master' of github.com:oasis-open/cti-python-stix2 into dev-extensions-proposal Emmanuelle Vargas-Gonzalez 2020-12-23 15:08:10 -0500
  • ef2ef95c3a `stix-extension` to `extension-definition` Emmanuelle Vargas-Gonzalez 2020-12-22 21:59:18 -0500