studylife-cli 1.9.68__tar.gz → 1.9.70__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.
Files changed (35) hide show
  1. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/CONTRIBUTING.md +2 -2
  2. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/PKG-INFO +7 -5
  3. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/README.md +5 -3
  4. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/pyproject.toml +1 -1
  5. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/src/studylife_cli/_version.py +2 -2
  6. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/src/studylife_cli/cli.py +3 -3
  7. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/src/studylife_cli/client.py +1 -1
  8. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/src/studylife_cli/login.py +6 -6
  9. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/src/studylife_cli/tui.py +1 -1
  10. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/uv.lock +3 -3
  11. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  12. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  13. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  14. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  15. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/dependabot.yml +0 -0
  16. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/lktec-bot.yml +0 -0
  17. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/workflows/ci.yml +0 -0
  18. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/workflows/dependabot-auto-merge.yml +0 -0
  19. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/workflows/dependabot-lockfiles.yml +0 -0
  20. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/workflows/dependency-review.yml +0 -0
  21. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.github/workflows/scorecard.yml +0 -0
  22. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/.gitignore +0 -0
  23. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/CHANGELOG.md +0 -0
  24. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/CODE_OF_CONDUCT.md +0 -0
  25. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/LICENSE +0 -0
  26. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/SECURITY.md +0 -0
  27. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/fuzz/fuzz_models_and_callback.py +0 -0
  28. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/socket.yml +0 -0
  29. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/src/studylife_cli/__init__.py +0 -0
  30. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/src/studylife_cli/credentials.py +0 -0
  31. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/src/studylife_cli/models.py +0 -0
  32. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/tests/test_cli.py +0 -0
  33. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/tests/test_client.py +0 -0
  34. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/tests/test_login.py +0 -0
  35. {studylife_cli-1.9.68 → studylife_cli-1.9.70}/tests/test_tui.py +0 -0
@@ -1,6 +1,6 @@
1
- # Contributing to StudyLife CLI
1
+ # Contributing to StudyAtrium CLI
2
2
 
3
- Thanks for taking the time. StudyLife CLI is a single-maintainer project, so the process is
3
+ Thanks for taking the time. StudyAtrium CLI is a single-maintainer project, so the process is
4
4
  deliberately small - but it is the same for every change, including the maintainer's own.
5
5
 
6
6
  ## How changes get in
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: studylife-cli
3
- Version: 1.9.68
4
- Summary: Command-line client for StudyLife (self-hosted study organizer) - notes, sessions, course goals, and webhooks from your terminal.
3
+ Version: 1.9.70
4
+ Summary: Command-line client for StudyAtrium (self-hosted study organizer) - notes, sessions, course goals, and webhooks from your terminal.
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.12
7
7
  Requires-Dist: httpx>=0.27
@@ -12,14 +12,16 @@ Requires-Dist: textual>=0.85
12
12
  Requires-Dist: typer>=0.15
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- # studylife-cli
15
+ # StudyAtrium CLI
16
+
17
+ (formerly StudyLife)
16
18
 
17
19
  [![CI](https://github.com/lukislp/studylife-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/lukislp/studylife-cli/actions/workflows/ci.yml) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/lukislp/studylife-cli/badge)](https://scorecard.dev/viewer/?uri=github.com/lukislp/studylife-cli) [![CodeQL](https://github.com/lukislp/studylife-cli/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/lukislp/studylife-cli/security/code-scanning)
18
20
  [![Release](https://img.shields.io/github/v/release/lukislp/studylife-cli)](https://github.com/lukislp/studylife-cli/releases)
19
21
  [![License: AGPL-3.0](https://img.shields.io/github/license/lukislp/studylife-cli)](LICENSE)
20
22
  [![Python](https://img.shields.io/badge/Python-3.12-3776AB)](https://www.python.org/)
21
23
 
22
- A command-line client for [StudyLife](https://github.com/lukislp/studylife), the self-hosted
24
+ A command-line client for [StudyAtrium](https://github.com/lukislp/studylife), the self-hosted
23
25
  study organizer. Manage notes, sessions, course goals, and webhooks from your terminal, get study
24
26
  time reports and exports, or watch a live dashboard - scripts and shells welcome.
25
27
 
@@ -33,7 +35,7 @@ pip install studylife-cli
33
35
 
34
36
  ## Register the CLI on your instance
35
37
 
36
- `studylife-cli` connects to your StudyLife instance through the same add-on mechanism any
38
+ `studylife-cli` connects to your StudyAtrium instance through the same add-on mechanism any
37
39
  third-party integration uses - there is no special-cased server support to set up. Register it
38
40
  once via your own [studylife-developers](https://github.com/lukislp/studylife-developers) portal:
39
41
 
@@ -1,11 +1,13 @@
1
- # studylife-cli
1
+ # StudyAtrium CLI
2
+
3
+ (formerly StudyLife)
2
4
 
3
5
  [![CI](https://github.com/lukislp/studylife-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/lukislp/studylife-cli/actions/workflows/ci.yml) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/lukislp/studylife-cli/badge)](https://scorecard.dev/viewer/?uri=github.com/lukislp/studylife-cli) [![CodeQL](https://github.com/lukislp/studylife-cli/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/lukislp/studylife-cli/security/code-scanning)
4
6
  [![Release](https://img.shields.io/github/v/release/lukislp/studylife-cli)](https://github.com/lukislp/studylife-cli/releases)
5
7
  [![License: AGPL-3.0](https://img.shields.io/github/license/lukislp/studylife-cli)](LICENSE)
6
8
  [![Python](https://img.shields.io/badge/Python-3.12-3776AB)](https://www.python.org/)
7
9
 
8
- A command-line client for [StudyLife](https://github.com/lukislp/studylife), the self-hosted
10
+ A command-line client for [StudyAtrium](https://github.com/lukislp/studylife), the self-hosted
9
11
  study organizer. Manage notes, sessions, course goals, and webhooks from your terminal, get study
10
12
  time reports and exports, or watch a live dashboard - scripts and shells welcome.
11
13
 
@@ -19,7 +21,7 @@ pip install studylife-cli
19
21
 
20
22
  ## Register the CLI on your instance
21
23
 
22
- `studylife-cli` connects to your StudyLife instance through the same add-on mechanism any
24
+ `studylife-cli` connects to your StudyAtrium instance through the same add-on mechanism any
23
25
  third-party integration uses - there is no special-cased server support to set up. Register it
24
26
  once via your own [studylife-developers](https://github.com/lukislp/studylife-developers) portal:
25
27
 
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "studylife-cli"
3
3
  dynamic = ["version"]
4
- description = "Command-line client for StudyLife (self-hosted study organizer) - notes, sessions, course goals, and webhooks from your terminal."
4
+ description = "Command-line client for StudyAtrium (self-hosted study organizer) - notes, sessions, course goals, and webhooks from your terminal."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
7
7
  dependencies = [
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '1.9.68'
22
- __version_tuple__ = version_tuple = (1, 9, 68)
21
+ __version__ = version = '1.9.70'
22
+ __version_tuple__ = version_tuple = (1, 9, 70)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -170,7 +170,7 @@ def _run(ctx: typer.Context, fn: object) -> object:
170
170
  @app.command()
171
171
  def login(
172
172
  instance_url: str = typer.Argument(
173
- ..., help="Base URL of your StudyLife instance, e.g. https://studylife.example.com"
173
+ ..., help="Base URL of your StudyAtrium instance, e.g. https://studylife.example.com"
174
174
  ),
175
175
  client_id: str = typer.Option(
176
176
  DEFAULT_CLIENT_ID, help="ClientId this CLI was registered under via studylife-developers."
@@ -194,7 +194,7 @@ def logout() -> None:
194
194
 
195
195
  @app.command()
196
196
  def whoami(ctx: typer.Context, as_json: bool = JSON_OPTION) -> None:
197
- """Show which StudyLife account and instance the stored credential belongs to."""
197
+ """Show which StudyAtrium account and instance the stored credential belongs to."""
198
198
  result = _run(ctx, lambda c: c.whoami())
199
199
  credentials = load_credentials()
200
200
  payload = {
@@ -582,7 +582,7 @@ def report(
582
582
  return
583
583
 
584
584
  period_label = "this week" if period == "week" else "this month"
585
- console.print(f"[bold]StudyLife report - {period_label}[/bold]")
585
+ console.print(f"[bold]StudyAtrium report - {period_label}[/bold]")
586
586
  console.print(f"Total study time: {_report_format_duration(total_minutes)}")
587
587
  if summary is not None:
588
588
  console.print(f"Current streak: {summary.streak.current} days")
@@ -28,7 +28,7 @@ class ApiError(Exception):
28
28
  """Raised for any non-2xx response, carrying the status code and response body."""
29
29
 
30
30
  def __init__(self, status_code: int, body: str) -> None:
31
- super().__init__(f"StudyLife API returned {status_code}: {body.strip()}")
31
+ super().__init__(f"StudyAtrium API returned {status_code}: {body.strip()}")
32
32
  self.status_code = status_code
33
33
  self.body = body
34
34
 
@@ -187,14 +187,14 @@ def run_login(
187
187
  )
188
188
  connect_url = f"{base_url}/connect/client/{client_id}?{connect_query}"
189
189
 
190
- print(f"Opening your browser to log in to StudyLife:\n {connect_url}")
190
+ print(f"Opening your browser to log in to StudyAtrium:\n {connect_url}")
191
191
  print("Waiting for you to finish logging in and approving the connection...")
192
192
  open_browser(connect_url)
193
193
 
194
194
  result = callback_server.wait_for_callback(timeout_seconds)
195
195
  if result is None:
196
196
  raise LoginError(
197
- f"Timed out after {int(timeout_seconds)}s waiting for StudyLife to redirect back. "
197
+ f"Timed out after {int(timeout_seconds)}s waiting for StudyAtrium to redirect back. "
198
198
  "Either the login/approval wasn't completed in the browser tab, or this client "
199
199
  f"isn't registered on that instance yet - see the README for how to register "
200
200
  f"'{client_id}' via studylife-developers first."
@@ -208,7 +208,7 @@ def run_login(
208
208
 
209
209
  if not result.assertion:
210
210
  raise LoginError(
211
- "StudyLife's callback didn't include a login assertion - the connection may have "
211
+ "StudyAtrium's callback didn't include a login assertion - the connection may have "
212
212
  "been denied."
213
213
  )
214
214
 
@@ -239,18 +239,18 @@ def _exchange_assertion(
239
239
  timeout=10.0,
240
240
  )
241
241
  except httpx.HTTPError as exc:
242
- raise LoginError(f"Could not reach StudyLife: {exc}") from exc
242
+ raise LoginError(f"Could not reach StudyAtrium: {exc}") from exc
243
243
 
244
244
  if response.status_code != 200:
245
245
  raise LoginError(
246
- f"StudyLife rejected the login ({response.status_code}): {response.text.strip()}"
246
+ f"StudyAtrium rejected the login ({response.status_code}): {response.text.strip()}"
247
247
  )
248
248
 
249
249
  try:
250
250
  data = response.json()
251
251
  return int(data["userId"]), str(data["apiKey"])
252
252
  except (KeyError, TypeError, ValueError) as exc:
253
- raise LoginError("StudyLife returned an unexpected response shape.") from exc
253
+ raise LoginError("StudyAtrium returned an unexpected response shape.") from exc
254
254
 
255
255
 
256
256
  def login_and_save(instance_url: str, client_id: str = DEFAULT_CLIENT_ID) -> Credentials:
@@ -132,7 +132,7 @@ class CreateNoteScreen(ModalScreen[tuple[str, str] | None]):
132
132
 
133
133
 
134
134
  class StudyLifeTUI(App[None]):
135
- TITLE = "StudyLife"
135
+ TITLE = "StudyAtrium"
136
136
  CSS = """
137
137
  Screen { background: $background; }
138
138
  #stats { grid-size: 2; grid-gutter: 1 2; padding: 1 2; }
@@ -316,7 +316,7 @@ wheels = [
316
316
 
317
317
  [[package]]
318
318
  name = "pydantic-settings"
319
- version = "2.16.2"
319
+ version = "2.16.3"
320
320
  source = { registry = "https://pypi.org/simple" }
321
321
  dependencies = [
322
322
  { name = "pydantic" },
@@ -324,9 +324,9 @@ dependencies = [
324
324
  { name = "typing-extensions" },
325
325
  { name = "typing-inspection" },
326
326
  ]
327
- sdist = { url = "https://files.pythonhosted.org/packages/d0/31/21d21e0e38a8f5f7a7f0cde22820117b6d17d6bc36f348129527f915d7f4/pydantic_settings-2.16.2.tar.gz", hash = "sha256:3dc08ffabed2bbd5dc2dd55ead7b78b4e4c5cd776aecd04310db5f1224caaf46", size = 309225, upload-time = "2026-10-28T11:14:28.066Z" }
327
+ sdist = { url = "https://files.pythonhosted.org/packages/59/28/227c843eedd29bd78e132e5aafa420d83154b10465c312f9c21ff2eaf77d/pydantic_settings-2.16.3.tar.gz", hash = "sha256:10e36f616623ebb586c05ca3d3cd22927146869db413d4f14c20c514442a1337", size = 311716, upload-time = "2026-11-13T11:18:30.102Z" }
328
328
  wheels = [
329
- { url = "https://files.pythonhosted.org/packages/39/88/4131c51ff87b7cd7f82a1194d0c0a2b7ca68c72d9da04c3b7e69ab91a79f/pydantic_settings-2.16.2-py3-none-any.whl", hash = "sha256:8d523e5c129b097686bde019bd6109bff53f4c8c3f63f1ddf9933ffa42e5ab4f", size = 81994, upload-time = "2026-10-28T11:14:26.716Z" },
329
+ { url = "https://files.pythonhosted.org/packages/4c/26/3e68379ca313b6aa58e11fbd8b28d5c6f1b9f4428d70222ba021a76797ec/pydantic_settings-2.16.3-py3-none-any.whl", hash = "sha256:d1db16a2d34006323a1b42c0640898da58adfbad7ec30baaa9e2b18aafc08999", size = 82679, upload-time = "2026-11-13T11:18:28.73Z" },
330
330
  ]
331
331
 
332
332
  [[package]]
File without changes