Migrate from Poetry and pyenv to uv
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
# `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.
|
||||
Reference in New Issue
Block a user