Commit Graph

605 Commits (176eed77bfbd30ddffce58744c0e5028d6c53835)

Author SHA1 Message Date
Raphaël Vinot b5b4a5ef52 fix: More fixes to support responses from MISP 2024-02-01 17:24:24 +01:00
Raphaël Vinot c3a3868f42 fix: handle list responses properly 2024-02-01 15:32:00 +01:00
Raphaël Vinot 1da0d5adc1 chg: Add more strict typing, not done yet. 2024-02-01 14:40:12 +01:00
Raphaël Vinot 298e2f9035 chg: First batch of changes for strict typing 2024-01-30 12:51:23 +01:00
Raphaël Vinot d8850c59ea
Merge pull request #1134 from JakubOnderka/orjson
orjson and small fixes and optimizations
2024-01-17 13:43:21 +01:00
Raphaël Vinot a298245fd2 fix: Python < 3.10 support on typing, for good. 2024-01-17 13:40:10 +01:00
Raphaël Vinot f11681af52 fix: Python < 3.10 support on typing 2024-01-17 13:38:00 +01:00
Raphaël Vinot 0562c63cec chg: Initial changes to use new annotations 2024-01-17 13:28:51 +01:00
Jakub Onderka 292948aa58 chg: [internal] Simplify code 2024-01-16 21:57:30 +01:00
Raphaël Vinot d329a5e095 new: relationship_type in tag
Fix https://github.com/MISP/MISP/issues/9483
2024-01-10 14:08:48 +01:00
Jakub Onderka fca0b233cd new: [internal] Add support for orjson
orjson is much faster library for decoding and encoding JSON formats
2024-01-07 18:34:20 +01:00
Steven 00df6e23fb
Fix api ssl verify typing 2023-12-15 11:19:28 +01:00
Steven 51433ff08a
Add HTTPS Adapter
Add the ability to provide a custom HTTPS adapter to the PyMISP class. With M2Crypto and m2requests, this can enable mutual TLS with hardware tokens.
2023-12-15 10:38:01 +01:00
Raphaël Vinot 09f55f5167 fix: Avoid confusing error when an auth key is limited to an IP
Fix #1099
2023-11-14 12:26:23 +01:00
Raphaël Vinot 5d39d81152 chg: Bump version, make __version__ dynamic 2023-10-24 15:09:25 +02:00
Raphaël Vinot 507b8195ae chg: Make mypy happy 2023-10-04 15:13:44 +02:00
Raphaël Vinot 0a63ab8cc8 fix: Avoid exception when data is an empty iterator
Fix #1053
2023-09-04 17:33:28 +02:00
Raphaël Vinot 1597669ea6 fix: Update Sharing group info from full object
Fix #1049
2023-08-23 10:52:57 +02:00
Raphaël Vinot 4085e0faef fix: maybe fixing a CakePHP issue
Maybe fixing #1014
2023-06-15 10:55:20 +02:00
Raphaël Vinot c8989c2ab2 fix: Use proper endpoint to unpublish event
Fix #1012
2023-06-13 14:47:31 +02:00
Stefano Ortolani 565447ce36 Allow search by 'event_tags' and improve the handling of galaxy clusters.
Changes:
- Add 'event_tags' parameter when searching for events
- Add new method to search for galaxies by value
- Add new parameter to fetch cluster information when retrieving clusters
- Add new parameter to hard-delete object references
2023-05-16 11:15:46 +01:00
Raphaël Vinot 0ac719fd7c chg: Remove old setup files, bump deps. 2023-05-11 17:48:01 +02:00
Luciano Righetti d3c304a844 add: support breakOnDuplicate option for attributes:add() 2023-03-23 16:34:46 +01:00
Raphaël Vinot cca73e4c4e fix: invalid check if taxo is enabled 2023-03-17 15:44:03 +01:00
Raphaël Vinot a40d91666b fix: Use proper parameter to trigger the request in search_galaxy_clusters 2023-03-17 14:02:29 +01:00
Raphaël Vinot 4363b3f43b fix: use POST in search galaxy cluster 2023-03-17 13:32:40 +01:00
Raphaël Vinot 8b1ae28cc9 fix: undefined variable in event delegation 2023-02-10 13:44:30 +01:00
Raphaël Vinot 8da684aad3
Merge pull request #877 from dragsu/feat/exception-when-tag-without-name
Graceful handling of tagging when name attribute is missing
2022-12-22 11:03:16 +01:00
Raphaël Vinot 2de22871d1 new: Basic support for listing, enabling and disabling decaying models 2022-11-22 14:48:23 +01:00
Sura De Silva 0f79e760c6 Graceful handling of tagging when name attribute is missing 2022-11-17 21:06:59 +11:00
Raphaël Vinot fd05292d7c chg: Bump mypy 2022-11-09 13:29:06 +01:00
Raphaël Vinot f1517dbf22 chg: Add links to doc 2022-11-07 15:04:15 +01:00
Tom King b438c27b5e new: Add in ability to set a taxonomies required status 2022-09-14 10:29:38 +01:00
Raphaël Vinot c47e235a4e
Merge pull request #858 from tomking2/feature/index_sort_limit
Sort/desc for sorting results and limit/page for pagination
2022-09-09 11:16:26 +02:00
Raphaël Vinot e2f9a7c6f9 new: Pass arbitrary headers to a PyMISP request. 2022-09-08 10:54:54 +02:00
Tom King eb33a9deb9 chg: Add in sort/desc for sorting results and limit/page for pagination 2022-09-06 16:29:22 +01:00
Raphaël Vinot a5f9ac996c fix: make keepalive configuration linux only
Bump deps
2022-08-09 21:27:47 +02:00
Raphaël Vinot 5a0080289f fix: Improper json check on non-json responses
Fix #854
2022-08-03 11:38:24 +02:00
Raphaël Vinot 58976dc35c fix: make flake8 happy 2022-07-28 15:12:40 +02:00
Derekt2 b36d1ba89f
Update api.py 2022-07-25 09:13:28 -05:00
Philipp Hauswirth 4e4e82d0c9 fix typo in logging message 2022-07-21 13:40:37 +02:00
Raphaël Vinot 3882ade918 chg: Bump deps 2022-07-21 11:18:00 +02:00
Raphaël Vinot 56a70265a0 new: Enable TCP keepalive
Related: https://github.com/MISP/PyMISP/issues/848
2022-07-21 11:18:00 +02:00
Tom King 31958dd160 chg: Add ability to filter by sharing group for RestSearch for MISP >= v2.4.158 2022-04-21 10:38:52 +01:00
Raphaël Vinot 883889c9c5 fix: Incorrect call when requesting a new API key 2022-03-03 19:09:58 +01:00
Raphaël Vinot 24e79c8340 new: get_new_authkey for a user 2022-03-03 15:07:28 +01:00
Raphaël Vinot 75cb39e0ca fix: Make mypy happy 2022-01-13 08:32:30 +01:00
Raphaël Vinot f85ccb3e19
Merge pull request #802 from MISP/JakubOnderka-patch-2
fix: PyMISP.get_user_setting method
2021-10-28 16:34:43 -04:00
Raphaël Vinot 2bc689e3c7 chg: Slight changes regarding timezones 2021-10-28 16:11:46 -04:00
Jakub Onderka 74196ee96f
fix: PyMISP.get_user_setting method 2021-10-25 22:51:28 +02:00