Commit Graph
342 Commits
Author SHA1 Message Date
David Sangrey 1425432abd [#2615] Prevent Linux NONE Toml Config Crash 2026-05-28 21:37:05 -04:00
Giampiero L. eda76f5476 Fix: Added missing #LANG comments to lines 672 and 67 2026-02-15 00:53:42 +01:00
Giampiero L. 4aa1efcf33 Localize authentication success message
Updated message box title and content to use translation functions.
2026-02-12 21:53:16 +01:00
David Sangrey 0d689a3c7d Centralize IS_FROZEN check 2026-01-27 23:30:49 -05:00
David Sangrey 4cd1e7e0bb Add Additional JSON Hardening 2026-01-07 21:58:58 -05:00
David Sangrey ad021560c5 Add Smart Retry to Session Requests 2026-01-06 22:09:29 -05:00
David Sangrey 4e1e9137c6 Add Back Important Logging Notes 2026-01-06 21:32:09 -05:00
David Sangrey cebf32264e [#1633] Add Refresh Trace_If Handlers 2026-01-06 21:18:02 -05:00
David Sangrey f0f26fb275 Revert Context Manager Run 2026-01-04 21:10:15 -05:00
David Sangrey ede9d6e04c Use Context Manager for Auth() 2026-01-04 20:02:01 -05:00
David Sangrey 6b20defed7 Add Backoff for Auth 2026-01-04 19:48:08 -05:00
David Sangrey 5a81c89341 Add Context Manager Support, Endpoint Enum 2026-01-04 19:26:43 -05:00
David Sangrey abe5f54be1 Refactor Companion 2026-01-04 19:19:07 -05:00
David Sangrey beb68efae8 [2568] Fix Ships JSON Typo 2025-12-25 01:36:24 -05:00
David Sangrey 2041b3d3d3 [Minor] Update Type Hints and Alias Usages 2025-12-01 22:04:28 -05:00
David Sangrey 5f70a8d7a4 [Minor] Replace Dep'd Functions, Minor Type Hinting 2025-11-09 13:41:07 -05:00
David Sangrey 34e73dcfb2 Updated Linter Suppression for Existing 2025-10-16 16:34:16 -04:00
David Sangrey f63774ebc6 [#1318] Update Lagging Message 2025-05-03 20:12:10 -04:00
David Sangrey 4c334835f2 [Minor] Simplify if-else statements 2025-04-11 19:57:18 -04:00
David Sangrey f8b7a8b919 [2114] Cleanup Initial Commit
Some of these are already paths.
2024-06-10 17:49:13 -04:00
David Sangrey fe8818d187 [2114] Apply PathLib Handover 2024-06-10 17:21:06 -04:00
David Sangrey 3209b4e1fb [2251] ResPath Update 2024-06-06 17:25:51 -04:00
David Sangrey d4960efa8c [Lang] Update Translations
Also corrects fleetcarrier to proper Fleet Carrier
2024-06-03 16:44:18 -04:00
David Sangrey 080d9f98f2 [1812] Handover Translations 2024-04-22 17:33:28 -04:00
David Sangrey 0b90ca7708 [Minor] More Type Hints 2024-01-05 15:39:26 -05:00
David Sangrey 7cac00b2e8 [635] Remove Ordered Dict 2024-01-03 23:55:12 -05:00
Phoebe 17e740d3ee [1801] Check for files at output generation
Adds a check to see if the FDevID files exist to the output file generation process. If they don't generate a warning log entry and continue without them.
2023-12-16 02:10:55 +01:00
David Sangrey 95f2ea40b6 [#1843] Fix URL Parameter Bug
Replaces vague space with properly encoded %20. This SHOULD solve the issue, but I can't replicate the original issue.
2023-12-12 21:28:56 -05:00
David Sangrey f30fb56f6e [2051] Re-add missing context
It's not a refactor if I don't accidentally nuke a lang comment
2023-11-30 22:05:59 -05:00
David Sangrey cb2a18025c [2051] First Pass Remaining Files 2023-11-30 21:30:18 -05:00
David Sangrey 3b679c1556 #2048 Validate RegKeys, Auth Flow 2023-08-06 17:40:04 -04:00
Athanasius 468a9effe5 companion.py: Minor typing cleanup 2022-12-30 16:47:02 +00:00
Athanasius 0fe5e17b65 CAPI: Fix dump_capi_data() for /fleetcarrier
Still produces the system/station:

    `HIP 10792.Crimson Exchange.2022-12-30T16.22.39.json`

But now also the FC:

    `FleetCarrier.X3F-N5Z.2022-12-30T16.24.01.json`
2022-12-30 16:25:25 +00:00
aussig e22fa7c23b Store cmdr name at request time in CAPIData instead of passing into EDMCCAPIRequest and EDMCCAPIResponse 2022-12-24 09:32:45 +00:00
aussig 41962663d8 Merge branch 'develop' into feature/847/capi-fleetcarrier 2022-12-24 08:21:18 +00:00
Athanasius 7fe86c5862 companion.py: Minor typing fixes 2022-12-23 14:47:15 +00:00
aussig 7e726e606a Store original request cmdr name in 'request_cmdr' in CAPIData 2022-12-23 12:47:35 +00:00
aussig 3e295db061 Typing of return values from killswitch.check_killswitch() 2022-12-22 17:39:20 +00:00
aussig 9e17c46b25 Implement suggestions from PR #1773. 2022-12-22 16:21:42 +00:00
aussig cb2a6b6995 Merge branch 'develop' into feature/847/capi-fleetcarrier 2022-12-22 15:32:17 +00:00
Athanasius 292b449cf6 Fix up companion.Session.close() refactor
* When PyCharm made a mess I accidentally undid two renames in
  EDMarketConnector.py...
* ... but one of those actually *does* need to only close the session.  So
  made a new Session.close() that performs only the closing, with
  Session.reinit_session() now utilising that.
2022-12-22 09:15:16 +00:00
aussig 6ebdea1a6c Fleetcarrier CAPI now triggered by certain carrier journal events, and throttled on its own cooldown (15 mins) 2022-12-21 23:00:36 +00:00
aussig eedf4febdf Initial implementation of CAPI /fleetcarrier endpoint 2022-12-21 23:00:35 +00:00
Athanasius d6c74c269d companion: Cite endpoint in capi_single_query() logging 2022-12-21 13:41:07 +00:00
Athanasius df384c73a1 companion: Refactor Session.close() to Session.reinit_session()
This way it's *never* `None`, and the type can be tightend up as well.
2022-12-21 13:36:39 +00:00
Athanasius e65a1e6afa companion: Have Session.close() actually open a new one by default
Both current callers to this are in code paths where it is expected that
Session.requests_session will be valid later.  Rather than assign a new
session at the call sites just make this by default open a new session.
2022-12-21 13:27:53 +00:00
Athanasius 5070c3686f companion.Session: Don't double-initaliase requests_session
I forgot to remove the `requests.Session()` call in `start_frontier_auth()`.
And upon removing that we need a `None` trap to make mypy happy.
2022-12-16 15:40:48 +00:00
Athanasius 729016cf38 companion.py: Fix exception type & initialise a requests_session
* Use `Exception` not `BaseException` for `EDMCCAPIFailedRequest.exception`.
* Initialise Auth.request_session in its `__init__()`.  This *should* fix
  #1727 - as there'll then be no way for a `Session` to have methods invoked
  without this set up.
2022-12-16 15:35:59 +00:00
Athanasius ba68397b3f CAPI killswitches: endpoint killswitches & eddn export ones too
* Added `capi.request.<endpoint>` killswitches at appropriate call points.
* Added `eddn.capi_export.<type>` killswitches.  This allows for killing
  just the EDDN export of such CAPI-derived data, without stopping the actual
  queries, as other plugins/functionality might still have harmless use of
  the data.
* PLUGINS.md: Actually describe the contents of `data` passed to plugins, and
  point out it might not always contain market or shipyard data.  This is
  not only because of the new killswitches, but could already have happened
  if the station/port docked at didn't have the services.
* Some misc typing cleanups.
2022-12-16 15:06:01 +00:00
Athanasius f789ad6e24 companion: A start on adding CAPI killswitches 2022-12-16 13:22:30 +00:00