54 lines
1.1 KiB
Markdown
54 lines
1.1 KiB
Markdown
# `Curator.py`
|
|
|
|
Application entry point. Creates the shared `FileManager` and `TagManager`, applies the OS certificate store for HTTPS, and starts the Qt main window.
|
|
|
|
Source: [`Curator.py`](../../Curator.py)
|
|
|
|
## Classes
|
|
|
|
### `State`
|
|
|
|
*class · line 21*
|
|
|
|
```python
|
|
class State:
|
|
```
|
|
|
|
Holds the application's shared services: one `TagManager` and one `FileManager` built on top of it. Created once in `main()`.
|
|
|
|
#### `State.__init__`
|
|
|
|
*method · line 22*
|
|
|
|
```python
|
|
__init__() -> None
|
|
```
|
|
|
|
Create the tag manager and the file manager that uses it.
|
|
|
|
## Functions
|
|
|
|
### `_use_system_certificates`
|
|
|
|
*function · line 7*
|
|
|
|
```python
|
|
_use_system_certificates() -> None
|
|
```
|
|
|
|
Make HTTPS (ČSFD fetching) use the OS certificate store.
|
|
|
|
Required behind corporate SSL inspection, where the proxy's root CA is in the
|
|
Windows trust store but not in certifi's bundle. Best-effort; ignored if the
|
|
optional `truststore` package is unavailable.
|
|
|
|
### `main`
|
|
|
|
*function · line 27*
|
|
|
|
```python
|
|
main() -> None
|
|
```
|
|
|
|
Program entry point: installs the system certificate store, builds the `State` and runs the Qt application on its file manager and tag manager.
|