Commit Graph
33 Commits
Author SHA1 Message Date
retoor 637fdf19c7 feat: add mention-specific LLM and switch logging to INFO in princess bot
- Add `reset_llms` method to initialize separate `mention_llm` and `llm` instances
- Change logging level from DEBUG to INFO for reduced verbosity
- Reorder imports and add `json`, `re`, `Dict`, `List` for future type hints
2025-09-01 16:37:32 +00:00
retoor bad5767e7d chore: strip trailing whitespace and leftover assistant prompt from README.md 2025-08-12 23:41:43 +00:00
retoor 4c77bf1eb9 chore: reorder import and add rant_id field plus auto-comment posting in princess bot 2025-08-12 22:22:00 +00:00
retoor 364de14682 chore: remove trailing whitespace from README.md formatting in examples/princess directory 2025-08-12 22:12:38 +00:00
retoor a551b80bc2 chore: add .env and *.db to gitignore and reformat imports in crawler examples 2025-08-12 22:06:44 +00:00
retoor e2369265d7 chore: add devrant crawler example project and update README formatting
- Add new examples/crawler directory with Makefile, README, crawler.py, database.py, and main.py
- Include devranta-1.1.0 distribution packages and api_test_results.json
- Remove trailing whitespace and blank lines from README.md for consistent formatting
2025-08-02 22:40:34 +00:00
retoor 7110efd8dd chore: add typed dicts for api responses and refactor api class with future annotations 2025-08-02 06:03:19 +00:00
retoor febebe48cb chore: remove trailing whitespace from README.md line 42 and update project description 2025-08-02 05:11:03 +00:00
retoor 06bea6ccff feat: add Api class with devRant authentication and user registration methods 2025-04-23 22:58:42 +00:00
retoor 4f8fc9f242 feat: add synchronous api_requests module with auth and voting for devRant
Introduce a dedicated synchronous API client module in src/devranta/api_requests.py that encapsulates request formatting, authentication via username/password login, and voting functionality for devRant interactions. The module provides an Api class with methods for login, URL patching, auth dict injection, and vote submission using the requests library, centralizing input preprocessing and reducing duplication across callers.
2025-04-23 13:59:14 +00:00
retoor 7d8e23e5b6 feat: add async delete_comment method to Api class for removing comments by id 2025-01-06 18:00:45 +00:00
retoor e60895a855 fix: correct endpoint path from devrant comments to users in Api.patch_url call 2024-12-14 03:40:22 +00:00
retoor d12027474c feat: add register_user method to Api class for account creation with email, username, password
Implements POST request to devrant/rants/{rant_id}/comments endpoint with email, username, password, and platform field. Returns boolean success based on JSON response 'success' key. Includes async session handling and URL patching with auth data.
2024-12-14 03:17:48 +00:00
retoor bb5e809ace fix: switch comment update request from GET to POST and remove debug print 2024-12-03 18:50:30 +00:00
retoor 89b8c6b14e chore: add debug print of auth response json in patch_auth method 2024-12-03 18:46:09 +00:00
retoor b5fec97682 fix: parse response json before checking success field in comment update
The fix ensures the response object is deserialized via `await response.json()` before accessing the `"success"` key, preventing an `AttributeError` when the raw response lacks a `.get()` method. This corrects the empty reply issue when input is missing or malformed.
2024-12-03 18:15:48 +00:00
retoor 7a01fa4dc9 chore: rename build configuration file from build.yml to build.yaml for consistency 2024-12-03 18:00:28 +00:00
retoor d4fde2a8ec fix: guard against null avatarUrl in UserProfileAvatarLoader component 2024-12-03 17:58:28 +00:00
retoor f33b12f262 chore: rename build config files and update CI pipeline references to new paths 2024-12-03 17:56:51 +00:00
retoor ec7a091cec chore: remove deprecated build step for legacy deployment pipeline
- Delete the "Build legacy artifacts" step from .gitea/workflows/build.yaml
- Add a "Pull repo" step before listing files to ensure fresh checkout
- Simplify pipeline by removing unused legacy build logic
2024-12-03 17:52:46 +00:00
retoor d0b03e4cbc chore: add update_comment method and clean up whitespace in api.py 2024-12-03 17:49:12 +00:00
retoor a9654c715d fix: correct YAML indentation for step run directives in build workflow 2024-12-03 03:08:16 +00:00
retoor 2289f5926e chore: add build, install, run, test, and push steps to CI workflow 2024-12-03 03:02:36 +00:00
retoor d2b1228141 feat: add initial package build artifacts for devranta version 1.0.0 2024-12-03 02:55:27 +00:00
retoor 50f52b7281 fix: replace async generator with direct await to handle empty input array in main_async
The previous implementation used an async generator `api.get_rants()` which would raise a `StopAsyncIteration` error when the input array was empty. By switching to `await api.get_rants()` which returns a list, the code now correctly handles the edge case where no rants are available, allowing the for loop to iterate over an empty list without raising an exception.
2024-12-03 02:54:31 +00:00
retoor 933c5afb0b feat: add get_comments_from_user method to Api class and corresponding async test case 2024-12-03 02:52:56 +00:00
retoor e669166696 refactor: replace async generators with direct list returns in Api methods and tests
The commit removes all async generator functions from the Api class, converting `get_rants`, `search`, `mentions`, and `notifs` to return lists directly instead of yielding items. This eliminates the need for the `async_list` and `async_len` test helper utilities, simplifying the test assertions to use standard `len()` calls. The change reduces code complexity by removing generator overhead and dead helper code that was only used to consume the generators.
2024-12-02 23:57:59 +00:00
retoor 75541cb388 docs: add link to prebuilt packages archive in README overview section 2024-12-02 16:55:22 +00:00
retoor 44424f6ba9 chore: remove outdated dist artifacts for retoorded 1.3.37 wheel and tarball 2024-12-02 16:51:03 +00:00
retoor 046ecb16eb chore: add auto-commit and push steps to build workflow after tests 2024-12-02 16:49:20 +00:00
retoor d848352189 docs: add project description and setup instructions to README
- Replace vague "About" heading with direct project description
- Add setup instructions for installing via pip and configuring authentication
- Include usage examples for basic API calls and error handling
2024-12-02 16:46:23 +00:00
retoor 713347f22c docs: add make install step to build workflow and update README with todo list 2024-12-02 16:43:40 +00:00
retoor 7ab84098cc chore: scaffold devranta project with Makefile, CI workflow, and async API client stub 2024-12-02 16:41:02 +00:00