fmind 2.0.5__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fmind-3.0.0/PKG-INFO +168 -0
- fmind-3.0.0/README.md +141 -0
- {fmind-2.0.5 → fmind-3.0.0}/pyproject.toml +39 -9
- {fmind-2.0.5 → fmind-3.0.0}/pyproject.toml.orig +47 -10
- fmind-3.0.0/src/fmind/__init__.py +11 -0
- {fmind-2.0.5 → fmind-3.0.0}/src/fmind/api.py +105 -27
- {fmind-2.0.5 → fmind-3.0.0}/src/fmind/articles.py +11 -6
- {fmind-2.0.5 → fmind-3.0.0}/src/fmind/cli.py +46 -10
- {fmind-2.0.5 → fmind-3.0.0}/src/fmind/mcp.py +0 -2
- fmind-3.0.0/src/fmind/news.py +43 -0
- {fmind-2.0.5 → fmind-3.0.0}/src/fmind/render.py +74 -26
- fmind-2.0.5/PKG-INFO +0 -157
- fmind-2.0.5/README.md +0 -132
- fmind-2.0.5/src/fmind/__init__.py +0 -11
- {fmind-2.0.5 → fmind-3.0.0}/LICENSE +0 -0
- {fmind-2.0.5 → fmind-3.0.0}/src/fmind/__main__.py +0 -0
fmind-3.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fmind
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Read Médéric Hurier's (Fmind) portfolio and daily news from the terminal.
|
|
5
|
+
Keywords: portfolio,cli,fmind,resume,articles,news,mcp
|
|
6
|
+
Author: Médéric Hurier
|
|
7
|
+
Author-email: Médéric Hurier <contact@fmind.dev>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
15
|
+
Classifier: Topic :: Utilities
|
|
16
|
+
Requires-Dist: typer>=0.26
|
|
17
|
+
Requires-Dist: rich>=13.9
|
|
18
|
+
Requires-Dist: httpx2>=2.12,<3 ; extra == 'mcp'
|
|
19
|
+
Requires-Dist: mcp>=2.2,<3 ; extra == 'mcp'
|
|
20
|
+
Requires-Dist: mcp-types>=2.2,<3 ; extra == 'mcp'
|
|
21
|
+
Requires-Python: >=3.14
|
|
22
|
+
Project-URL: Homepage, https://www.fmind.dev/
|
|
23
|
+
Project-URL: Source, https://github.com/fmind/cli
|
|
24
|
+
Project-URL: Issues, https://github.com/fmind/cli/issues
|
|
25
|
+
Provides-Extra: mcp
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# fmind
|
|
29
|
+
|
|
30
|
+
Read [Médéric Hurier's (Fmind)](https://www.fmind.dev/) portfolio and daily tech news from the terminal, or bridge its `/mcp` server over stdio.
|
|
31
|
+
|
|
32
|
+
[](https://github.com/fmind/cli/actions/workflows/ci.yml) [](https://pypi.org/project/fmind/) [](https://pypi.org/project/fmind/) [](https://github.com/fmind/cli/blob/main/LICENSE)
|
|
33
|
+
|
|
34
|
+
<a href="https://raw.githubusercontent.com/fmind/cli/main/docs/assets/overview.svg">
|
|
35
|
+
<img
|
|
36
|
+
src="https://raw.githubusercontent.com/fmind/cli/main/docs/assets/overview.svg"
|
|
37
|
+
alt="fmind overview: live endpoints on www.fmind.dev (/api/profile, /api/news, /articles/<slug>.md, and /mcp) flow through the stateless fmind CLI (strict validation, 15s / 8 MiB bounds, zero local cache) to Rich terminal cards, --json / --raw shell pipelines, and MCP over stdio."
|
|
38
|
+
width="960"
|
|
39
|
+
>
|
|
40
|
+
</a>
|
|
41
|
+
|
|
42
|
+
## Install
|
|
43
|
+
|
|
44
|
+
Run immediately with [uv](https://docs.astral.sh/uv/), or install persistently:
|
|
45
|
+
|
|
46
|
+
```console
|
|
47
|
+
$ uvx fmind
|
|
48
|
+
Name Médéric Hurier (Fmind)
|
|
49
|
+
Role Freelance AI Architect
|
|
50
|
+
Headline Freelance AI Architect • AI Agents, MLOps & Security
|
|
51
|
+
…
|
|
52
|
+
Contact contact@fmind.dev
|
|
53
|
+
Website https://www.fmind.dev
|
|
54
|
+
…
|
|
55
|
+
|
|
56
|
+
fmind --help lists every command.
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
uv tool install fmind # portfolio and news commands
|
|
61
|
+
uv tool install 'fmind[mcp]' # include the stdio MCP bridge
|
|
62
|
+
pipx install fmind # alternative
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Override `FMIND_PROFILE_URL` to point profile, news, article reads, and `/mcp` at another origin (such as local `mise run watch`):
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
FMIND_PROFILE_URL=http://127.0.0.1:8080/api/profile fmind whoami
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Commands
|
|
72
|
+
|
|
73
|
+
| Command | Shows |
|
|
74
|
+
| ---------------------------------------------- | --------------------------------------------------------- |
|
|
75
|
+
| `fmind` | The `whoami` card and a pointer to `--help` |
|
|
76
|
+
| `fmind whoami` | Name, headline, location, experience, availability, links |
|
|
77
|
+
| `fmind about` | The biography |
|
|
78
|
+
| `fmind skills` | Core expertise, as published on the site |
|
|
79
|
+
| `fmind experiences` | Engagements in website order |
|
|
80
|
+
| `fmind certifications` | Certifications, the PhD, specializations |
|
|
81
|
+
| `fmind community` | Ambassador and advisory roles |
|
|
82
|
+
| `fmind papers` | The doctorate and the peer-reviewed papers, with code |
|
|
83
|
+
| `fmind projects [--limit 6]` | Open-source projects and video series, with code |
|
|
84
|
+
| `fmind sites` | Interactive tools published alongside the writing |
|
|
85
|
+
| `fmind articles [--limit 6]` | The most recent writing |
|
|
86
|
+
| `fmind search [query...] [--tag] [--limit 10]` | Articles matching every term, newest first |
|
|
87
|
+
| `fmind read <slug> [--raw]` | One article, rendered in the terminal |
|
|
88
|
+
| `fmind tags` | The article tags, with counts and their `search --tag` |
|
|
89
|
+
| `fmind news [query...] [--limit]` | Daily curated links, newest edition first |
|
|
90
|
+
| `fmind hire` | What can be booked right now |
|
|
91
|
+
|
|
92
|
+
Commands mirror the website's `/api/profile` and `/api/news` sections and stay stable across visual redesigns.
|
|
93
|
+
|
|
94
|
+
- `--limit` (`1`–`200`) bounds `articles`, `search`, `news` editions, and each `projects` list (`open_source` and `youtube_series`).
|
|
95
|
+
- `--json` works before or after any portfolio command (`fmind --json experiences` or `fmind experiences --json`) and takes precedence over `read --raw` (storing the source in `markdown`). Pipe to `jq` for custom filters.
|
|
96
|
+
- Global `--color` / `--no-color` (auto-detected, respecting `NO_COLOR` and redirects) and `--version` go before the command.
|
|
97
|
+
- Output uses terminal-default text and a blue accent, stacked entries for narrow widths, unwrapped OSC 8 links, and no trailing whitespace when redirected.
|
|
98
|
+
|
|
99
|
+
### Reading
|
|
100
|
+
|
|
101
|
+
`fmind search` ANDs terms case-insensitively across titles, summaries, tags, and slugs. `--tag` restricts to a published site tag (unknown tags fail and list valid ones).
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
fmind search agent security
|
|
105
|
+
fmind search --tag MLOps --limit 3
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
`fmind read` accepts an exact or unambiguous partial slug. On interactive terminals with a known non-`dumb` `TERM`, it pages via `$PAGER` (`less` with `LESS=FRX` unless `LESS` is set); `PAGER=cat` or a missing/unparsable `PAGER` prints directly, and pager launch or exit failures report an error (`PAGER=cat` retries without paging). `--raw` prints the Markdown source.
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
slug="$(fmind articles --limit 1 --json | jq -r '.[0].slug')"
|
|
112
|
+
fmind read "$slug"
|
|
113
|
+
fmind read "$slug" --raw | glow -
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### News
|
|
117
|
+
|
|
118
|
+
`fmind news` shows the latest daily edition of curated AI agent, Python, security, and cloud links. Terms AND-match link titles, domains, summaries, URLs, and edition dates or topics (`2026-11-06`, `2026-11`); `--limit` defaults to `1` (`10` when searching).
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
fmind news # latest edition
|
|
122
|
+
fmind news --limit 7 # past week
|
|
123
|
+
fmind news agent security # matching links, newest edition first
|
|
124
|
+
fmind news 2026-11-06 # one edition
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Piping
|
|
128
|
+
|
|
129
|
+
`--json` writes undecorated JSON to stdout and errors to stderr:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
fmind articles --limit 20 --json | jq -r '.[] | "\(.date[:10]) \(.title)"'
|
|
133
|
+
fmind certifications --json | jq -r '.certifications[] | select(.active) | .title'
|
|
134
|
+
fmind news --limit 7 --json | jq -r '.[].items[] | "\(.domain) \(.title)"'
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
`whoami --json` returns `metadata`, `experience` (the featured engagement, or `[]`), and `services`. `certifications --json` groups `certifications`, `thesis`, and `specializations`. `projects --json` groups `open_source` and `youtube_series` (each bounded by `--limit`). `news --json` lists editions, keeping only matching `items` when searching.
|
|
138
|
+
|
|
139
|
+
## MCP over stdio
|
|
140
|
+
|
|
141
|
+
Portfolio commands require only Typer and Rich; the optional `mcp` extra adds the [official MCP Python SDK](https://py.sdk.modelcontextprotocol.io/) (`uv tool install 'fmind[mcp]'` or `uv run --extra mcp fmind mcp` from a checkout):
|
|
142
|
+
|
|
143
|
+
```json
|
|
144
|
+
{
|
|
145
|
+
"mcpServers": {
|
|
146
|
+
"fmind": {
|
|
147
|
+
"command": "uvx",
|
|
148
|
+
"args": ["--from", "fmind[mcp]", "fmind", "mcp"]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
`fmind mcp` bridges `https://www.fmind.dev/mcp` (or the `FMIND_PROFILE_URL` origin) from Streamable HTTP to protocol-only stdio without local caching (`--json` is rejected; startup errors go to stderr). Upstream MCP requests use finite JSON POSTs (`405` with `Allow: POST` on GET/HEAD; use `/health` for probes) and forward read-only tools, resources, and prompts (no subscriptions, sampling, or elicitation). Each exchange has a `15s` deadline and `8 MiB` response cap, failing individually without stopping the bridge.
|
|
155
|
+
|
|
156
|
+
## Development
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
mise install && mise run install # toolchain, locked venv, and git hooks
|
|
160
|
+
mise run all # format, check, test, build (CI gate)
|
|
161
|
+
mise run smoke # live API/article and MCP compatibility check
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
`mise tasks` lists individual `format`, `check` (`check:local` pre-commit; `check:network` + `test` pre-push), `test`, and `build` tasks. CI runs `mise run all` on Python 3.15, tests Python 3.14, and checks declared floors with `--resolution lowest-direct` on Python 3.14. Release tags (`vX.Y.Z` matching `pyproject.toml`) rerun CI and `mise run smoke` in CD before PyPI Trusted Publishing.
|
|
165
|
+
|
|
166
|
+
## License
|
|
167
|
+
|
|
168
|
+
[MIT](https://github.com/fmind/cli/blob/main/LICENSE) — © 2026 Médéric Hurier (Fmind).
|
fmind-3.0.0/README.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# fmind
|
|
2
|
+
|
|
3
|
+
Read [Médéric Hurier's (Fmind)](https://www.fmind.dev/) portfolio and daily tech news from the terminal, or bridge its `/mcp` server over stdio.
|
|
4
|
+
|
|
5
|
+
[](https://github.com/fmind/cli/actions/workflows/ci.yml) [](https://pypi.org/project/fmind/) [](https://pypi.org/project/fmind/) [](https://github.com/fmind/cli/blob/main/LICENSE)
|
|
6
|
+
|
|
7
|
+
<a href="https://raw.githubusercontent.com/fmind/cli/main/docs/assets/overview.svg">
|
|
8
|
+
<img
|
|
9
|
+
src="https://raw.githubusercontent.com/fmind/cli/main/docs/assets/overview.svg"
|
|
10
|
+
alt="fmind overview: live endpoints on www.fmind.dev (/api/profile, /api/news, /articles/<slug>.md, and /mcp) flow through the stateless fmind CLI (strict validation, 15s / 8 MiB bounds, zero local cache) to Rich terminal cards, --json / --raw shell pipelines, and MCP over stdio."
|
|
11
|
+
width="960"
|
|
12
|
+
>
|
|
13
|
+
</a>
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
Run immediately with [uv](https://docs.astral.sh/uv/), or install persistently:
|
|
18
|
+
|
|
19
|
+
```console
|
|
20
|
+
$ uvx fmind
|
|
21
|
+
Name Médéric Hurier (Fmind)
|
|
22
|
+
Role Freelance AI Architect
|
|
23
|
+
Headline Freelance AI Architect • AI Agents, MLOps & Security
|
|
24
|
+
…
|
|
25
|
+
Contact contact@fmind.dev
|
|
26
|
+
Website https://www.fmind.dev
|
|
27
|
+
…
|
|
28
|
+
|
|
29
|
+
fmind --help lists every command.
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
uv tool install fmind # portfolio and news commands
|
|
34
|
+
uv tool install 'fmind[mcp]' # include the stdio MCP bridge
|
|
35
|
+
pipx install fmind # alternative
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Override `FMIND_PROFILE_URL` to point profile, news, article reads, and `/mcp` at another origin (such as local `mise run watch`):
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
FMIND_PROFILE_URL=http://127.0.0.1:8080/api/profile fmind whoami
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Commands
|
|
45
|
+
|
|
46
|
+
| Command | Shows |
|
|
47
|
+
| ---------------------------------------------- | --------------------------------------------------------- |
|
|
48
|
+
| `fmind` | The `whoami` card and a pointer to `--help` |
|
|
49
|
+
| `fmind whoami` | Name, headline, location, experience, availability, links |
|
|
50
|
+
| `fmind about` | The biography |
|
|
51
|
+
| `fmind skills` | Core expertise, as published on the site |
|
|
52
|
+
| `fmind experiences` | Engagements in website order |
|
|
53
|
+
| `fmind certifications` | Certifications, the PhD, specializations |
|
|
54
|
+
| `fmind community` | Ambassador and advisory roles |
|
|
55
|
+
| `fmind papers` | The doctorate and the peer-reviewed papers, with code |
|
|
56
|
+
| `fmind projects [--limit 6]` | Open-source projects and video series, with code |
|
|
57
|
+
| `fmind sites` | Interactive tools published alongside the writing |
|
|
58
|
+
| `fmind articles [--limit 6]` | The most recent writing |
|
|
59
|
+
| `fmind search [query...] [--tag] [--limit 10]` | Articles matching every term, newest first |
|
|
60
|
+
| `fmind read <slug> [--raw]` | One article, rendered in the terminal |
|
|
61
|
+
| `fmind tags` | The article tags, with counts and their `search --tag` |
|
|
62
|
+
| `fmind news [query...] [--limit]` | Daily curated links, newest edition first |
|
|
63
|
+
| `fmind hire` | What can be booked right now |
|
|
64
|
+
|
|
65
|
+
Commands mirror the website's `/api/profile` and `/api/news` sections and stay stable across visual redesigns.
|
|
66
|
+
|
|
67
|
+
- `--limit` (`1`–`200`) bounds `articles`, `search`, `news` editions, and each `projects` list (`open_source` and `youtube_series`).
|
|
68
|
+
- `--json` works before or after any portfolio command (`fmind --json experiences` or `fmind experiences --json`) and takes precedence over `read --raw` (storing the source in `markdown`). Pipe to `jq` for custom filters.
|
|
69
|
+
- Global `--color` / `--no-color` (auto-detected, respecting `NO_COLOR` and redirects) and `--version` go before the command.
|
|
70
|
+
- Output uses terminal-default text and a blue accent, stacked entries for narrow widths, unwrapped OSC 8 links, and no trailing whitespace when redirected.
|
|
71
|
+
|
|
72
|
+
### Reading
|
|
73
|
+
|
|
74
|
+
`fmind search` ANDs terms case-insensitively across titles, summaries, tags, and slugs. `--tag` restricts to a published site tag (unknown tags fail and list valid ones).
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
fmind search agent security
|
|
78
|
+
fmind search --tag MLOps --limit 3
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
`fmind read` accepts an exact or unambiguous partial slug. On interactive terminals with a known non-`dumb` `TERM`, it pages via `$PAGER` (`less` with `LESS=FRX` unless `LESS` is set); `PAGER=cat` or a missing/unparsable `PAGER` prints directly, and pager launch or exit failures report an error (`PAGER=cat` retries without paging). `--raw` prints the Markdown source.
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
slug="$(fmind articles --limit 1 --json | jq -r '.[0].slug')"
|
|
85
|
+
fmind read "$slug"
|
|
86
|
+
fmind read "$slug" --raw | glow -
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### News
|
|
90
|
+
|
|
91
|
+
`fmind news` shows the latest daily edition of curated AI agent, Python, security, and cloud links. Terms AND-match link titles, domains, summaries, URLs, and edition dates or topics (`2026-11-06`, `2026-11`); `--limit` defaults to `1` (`10` when searching).
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
fmind news # latest edition
|
|
95
|
+
fmind news --limit 7 # past week
|
|
96
|
+
fmind news agent security # matching links, newest edition first
|
|
97
|
+
fmind news 2026-11-06 # one edition
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Piping
|
|
101
|
+
|
|
102
|
+
`--json` writes undecorated JSON to stdout and errors to stderr:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
fmind articles --limit 20 --json | jq -r '.[] | "\(.date[:10]) \(.title)"'
|
|
106
|
+
fmind certifications --json | jq -r '.certifications[] | select(.active) | .title'
|
|
107
|
+
fmind news --limit 7 --json | jq -r '.[].items[] | "\(.domain) \(.title)"'
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
`whoami --json` returns `metadata`, `experience` (the featured engagement, or `[]`), and `services`. `certifications --json` groups `certifications`, `thesis`, and `specializations`. `projects --json` groups `open_source` and `youtube_series` (each bounded by `--limit`). `news --json` lists editions, keeping only matching `items` when searching.
|
|
111
|
+
|
|
112
|
+
## MCP over stdio
|
|
113
|
+
|
|
114
|
+
Portfolio commands require only Typer and Rich; the optional `mcp` extra adds the [official MCP Python SDK](https://py.sdk.modelcontextprotocol.io/) (`uv tool install 'fmind[mcp]'` or `uv run --extra mcp fmind mcp` from a checkout):
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"mcpServers": {
|
|
119
|
+
"fmind": {
|
|
120
|
+
"command": "uvx",
|
|
121
|
+
"args": ["--from", "fmind[mcp]", "fmind", "mcp"]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`fmind mcp` bridges `https://www.fmind.dev/mcp` (or the `FMIND_PROFILE_URL` origin) from Streamable HTTP to protocol-only stdio without local caching (`--json` is rejected; startup errors go to stderr). Upstream MCP requests use finite JSON POSTs (`405` with `Allow: POST` on GET/HEAD; use `/health` for probes) and forward read-only tools, resources, and prompts (no subscriptions, sampling, or elicitation). Each exchange has a `15s` deadline and `8 MiB` response cap, failing individually without stopping the bridge.
|
|
128
|
+
|
|
129
|
+
## Development
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
mise install && mise run install # toolchain, locked venv, and git hooks
|
|
133
|
+
mise run all # format, check, test, build (CI gate)
|
|
134
|
+
mise run smoke # live API/article and MCP compatibility check
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
`mise tasks` lists individual `format`, `check` (`check:local` pre-commit; `check:network` + `test` pre-push), `test`, and `build` tasks. CI runs `mise run all` on Python 3.15, tests Python 3.14, and checks declared floors with `--resolution lowest-direct` on Python 3.14. Release tags (`vX.Y.Z` matching `pyproject.toml`) rerun CI and `mise run smoke` in CD before PyPI Trusted Publishing.
|
|
138
|
+
|
|
139
|
+
## License
|
|
140
|
+
|
|
141
|
+
[MIT](https://github.com/fmind/cli/blob/main/LICENSE) — © 2026 Médéric Hurier (Fmind).
|
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "fmind"
|
|
3
|
-
version = "
|
|
4
|
-
description = "Read Médéric Hurier's (Fmind) portfolio from the terminal."
|
|
3
|
+
version = "3.0.0"
|
|
4
|
+
description = "Read Médéric Hurier's (Fmind) portfolio and daily news from the terminal."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
7
7
|
license-files = ["LICENSE"]
|
|
8
|
-
requires-python = ">=3.
|
|
8
|
+
requires-python = ">=3.14"
|
|
9
9
|
keywords = [
|
|
10
10
|
"portfolio",
|
|
11
11
|
"cli",
|
|
12
12
|
"fmind",
|
|
13
13
|
"resume",
|
|
14
14
|
"articles",
|
|
15
|
+
"news",
|
|
16
|
+
"mcp",
|
|
15
17
|
]
|
|
16
18
|
classifiers = [
|
|
17
19
|
"Environment :: Console",
|
|
18
20
|
"Intended Audience :: Developers",
|
|
19
21
|
"Programming Language :: Python :: 3 :: Only",
|
|
22
|
+
"Programming Language :: Python :: 3.14",
|
|
23
|
+
"Programming Language :: Python :: 3.15",
|
|
20
24
|
"Topic :: Utilities",
|
|
21
25
|
]
|
|
22
26
|
dependencies = [
|
|
@@ -48,7 +52,7 @@ dev = [
|
|
|
48
52
|
"pytest>=8.3",
|
|
49
53
|
"pytest-cov>=6.0",
|
|
50
54
|
"ruff>=0.9",
|
|
51
|
-
"ty>=0.0.
|
|
55
|
+
"ty>=0.0.101,<0.1",
|
|
52
56
|
]
|
|
53
57
|
|
|
54
58
|
[build-system]
|
|
@@ -61,20 +65,39 @@ module-root = "src"
|
|
|
61
65
|
|
|
62
66
|
[tool.ruff]
|
|
63
67
|
line-length = 120
|
|
64
|
-
|
|
68
|
+
extend-exclude = ["*.md"]
|
|
65
69
|
|
|
66
70
|
[tool.ruff.lint]
|
|
67
71
|
select = [
|
|
72
|
+
"A",
|
|
73
|
+
"ASYNC",
|
|
74
|
+
"B",
|
|
75
|
+
"C4",
|
|
68
76
|
"E",
|
|
77
|
+
"ERA",
|
|
69
78
|
"F",
|
|
79
|
+
"FURB",
|
|
70
80
|
"I",
|
|
81
|
+
"ISC",
|
|
82
|
+
"LOG",
|
|
71
83
|
"N",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
84
|
+
"PERF",
|
|
85
|
+
"PGH",
|
|
86
|
+
"PIE",
|
|
87
|
+
"PT",
|
|
88
|
+
"PTH",
|
|
89
|
+
"Q",
|
|
90
|
+
"RET",
|
|
91
|
+
"RSE",
|
|
92
|
+
"RUF",
|
|
74
93
|
"S",
|
|
75
94
|
"SIM",
|
|
76
|
-
"
|
|
95
|
+
"SLF",
|
|
96
|
+
"T10",
|
|
97
|
+
"T20",
|
|
77
98
|
"TID",
|
|
99
|
+
"UP",
|
|
100
|
+
"W",
|
|
78
101
|
]
|
|
79
102
|
|
|
80
103
|
[tool.ruff.lint.flake8-tidy-imports]
|
|
@@ -89,16 +112,23 @@ banned-module-level-imports = [
|
|
|
89
112
|
"src/fmind/mcp.py" = ["TID253"]
|
|
90
113
|
"tests/**" = [
|
|
91
114
|
"S101",
|
|
115
|
+
"SLF001",
|
|
116
|
+
"T201",
|
|
92
117
|
"TID253",
|
|
93
118
|
]
|
|
94
119
|
|
|
95
120
|
[tool.ruff.format]
|
|
96
121
|
docstring-code-format = true
|
|
122
|
+
line-ending = "lf"
|
|
123
|
+
|
|
124
|
+
[tool.ty.rules]
|
|
125
|
+
blanket-ignore-comment = "error"
|
|
97
126
|
|
|
98
127
|
[tool.pytest.ini_options]
|
|
99
|
-
addopts = "-ra --strict-markers --cov=fmind --cov-branch --cov-fail-under=85"
|
|
128
|
+
addopts = "-ra --strict-config --strict-markers --cov=fmind --cov-branch --cov-fail-under=85"
|
|
100
129
|
testpaths = ["tests"]
|
|
101
130
|
filterwarnings = ["error"]
|
|
131
|
+
xfail_strict = true
|
|
102
132
|
|
|
103
133
|
[tool.coverage.report]
|
|
104
134
|
exclude_also = [
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
# https://packaging.python.org/en/latest/specifications/pyproject-toml/
|
|
1
|
+
# Docs: https://packaging.python.org/en/latest/specifications/pyproject-toml/
|
|
2
2
|
[project]
|
|
3
3
|
name = "fmind"
|
|
4
|
-
version = "
|
|
5
|
-
description = "Read Médéric Hurier's (Fmind) portfolio from the terminal."
|
|
4
|
+
version = "3.0.0"
|
|
5
|
+
description = "Read Médéric Hurier's (Fmind) portfolio and daily news from the terminal."
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
license = "MIT"
|
|
8
8
|
license-files = ["LICENSE"]
|
|
9
9
|
authors = [{ name = "Médéric Hurier", email = "contact@fmind.dev" }]
|
|
10
|
-
requires-python = ">=3.
|
|
11
|
-
keywords = ["portfolio", "cli", "fmind", "resume", "articles"]
|
|
10
|
+
requires-python = ">=3.14"
|
|
11
|
+
keywords = ["portfolio", "cli", "fmind", "resume", "articles", "news", "mcp"]
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Environment :: Console",
|
|
14
14
|
"Intended Audience :: Developers",
|
|
15
15
|
"Programming Language :: Python :: 3 :: Only",
|
|
16
|
+
"Programming Language :: Python :: 3.14",
|
|
17
|
+
"Programming Language :: Python :: 3.15",
|
|
16
18
|
"Topic :: Utilities",
|
|
17
19
|
]
|
|
18
20
|
dependencies = ["typer>=0.26", "rich>=13.9"]
|
|
@@ -37,7 +39,7 @@ dev = [
|
|
|
37
39
|
"pytest>=8.3",
|
|
38
40
|
"pytest-cov>=6.0",
|
|
39
41
|
"ruff>=0.9",
|
|
40
|
-
"ty>=0.0.
|
|
42
|
+
"ty>=0.0.101,<0.1",
|
|
41
43
|
]
|
|
42
44
|
|
|
43
45
|
[build-system]
|
|
@@ -50,22 +52,57 @@ module-root = "src"
|
|
|
50
52
|
|
|
51
53
|
[tool.ruff]
|
|
52
54
|
line-length = 120
|
|
53
|
-
|
|
55
|
+
extend-exclude = ["*.md"]
|
|
54
56
|
[tool.ruff.lint]
|
|
55
|
-
select = [
|
|
57
|
+
select = [
|
|
58
|
+
"A",
|
|
59
|
+
"ASYNC",
|
|
60
|
+
"B",
|
|
61
|
+
"C4",
|
|
62
|
+
"E",
|
|
63
|
+
"ERA",
|
|
64
|
+
"F",
|
|
65
|
+
"FURB",
|
|
66
|
+
"I",
|
|
67
|
+
"ISC",
|
|
68
|
+
"LOG",
|
|
69
|
+
"N",
|
|
70
|
+
"PERF",
|
|
71
|
+
"PGH",
|
|
72
|
+
"PIE",
|
|
73
|
+
"PT",
|
|
74
|
+
"PTH",
|
|
75
|
+
"Q",
|
|
76
|
+
"RET",
|
|
77
|
+
"RSE",
|
|
78
|
+
"RUF",
|
|
79
|
+
"S",
|
|
80
|
+
"SIM",
|
|
81
|
+
"SLF",
|
|
82
|
+
"T10",
|
|
83
|
+
"T20",
|
|
84
|
+
"TID",
|
|
85
|
+
"UP",
|
|
86
|
+
"W",
|
|
87
|
+
]
|
|
56
88
|
[tool.ruff.lint.flake8-tidy-imports]
|
|
57
89
|
# Portfolio commands run without the optional `mcp` extra; only the bridge loads it.
|
|
58
90
|
banned-module-level-imports = ["fmind.mcp", "httpx2", "mcp", "mcp_types"]
|
|
59
91
|
[tool.ruff.lint.per-file-ignores]
|
|
60
92
|
"src/fmind/mcp.py" = ["TID253"] # the bridge is the extra's only importer
|
|
61
|
-
"tests/**" = ["S101", "TID253"] #
|
|
93
|
+
"tests/**" = ["S101", "SLF001", "T201", "TID253"] # tests assert, inspect layer internals, and install every extra
|
|
62
94
|
[tool.ruff.format]
|
|
63
95
|
docstring-code-format = true
|
|
96
|
+
line-ending = "lf"
|
|
97
|
+
|
|
98
|
+
[tool.ty.rules]
|
|
99
|
+
blanket-ignore-comment = "error"
|
|
64
100
|
|
|
65
101
|
[tool.pytest.ini_options]
|
|
66
|
-
addopts = "-ra --strict-markers --cov=fmind --cov-branch --cov-fail-under=85"
|
|
102
|
+
addopts = "-ra --strict-config --strict-markers --cov=fmind --cov-branch --cov-fail-under=85"
|
|
67
103
|
testpaths = ["tests"]
|
|
68
104
|
filterwarnings = ["error"]
|
|
105
|
+
xfail_strict = true
|
|
69
106
|
|
|
70
107
|
[tool.coverage.report]
|
|
71
108
|
exclude_also = ["if __name__ == .__main__.:", "raise NotImplementedError"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""Read Médéric Hurier's (Fmind) portfolio and daily news from the terminal.
|
|
2
|
+
|
|
3
|
+
Every command renders live documents published by https://www.fmind.dev, so this
|
|
4
|
+
package carries no copy of its own and needs no release when the content changes.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from importlib.metadata import version
|
|
8
|
+
|
|
9
|
+
__all__ = ["__version__"]
|
|
10
|
+
|
|
11
|
+
__version__ = version("fmind")
|