A scraper and summarizer for caliap
Project description
calisum - A caliap activity scraper and summarizer
This is a simple Python script that scraps Caliap and allow to you tu summarize your activity using the LLM of your choice.
Installation
pip install calisum
Usage
usage: calisum [-h] [--version] [-v] [-O OUTPUT] [-o] [-j] [-e EMAIL] [-p PASSWORD] [-c COOKIE] [-l LLM_URL] [-t LLM_TOKEN] [-n] [-m MODEL_ID] [-g] [url_to_scrape]
Summarize Caliap activity data.
options:
-h, --help show this help message and exit
--version Display the version of the package.
-v, --verbose Increase the verbosity of the output.
-O OUTPUT, --output OUTPUT
Output file to save the summary to. default to stdout
-o, --original-output
Output the original data instead of the summary.
-j, --json Output the result as json
Scraper options:
url_to_scrape URL to scrape the data from.
-e EMAIL, --email EMAIL
Email address to use for authentication. Must be used together with --password.
-p PASSWORD, --password PASSWORD
Password to use for authentication. Must be used together with --email.
-c COOKIE, --cookie COOKIE
Cookie to use for authentication (PHPSESSID). Mutually exclusive with --email and --password.
LLM options:
-l LLM_URL, --llm-url LLM_URL
URL to the LLM page open api endpoint (compatible with openai api standard).
-t LLM_TOKEN, --llm-token LLM_TOKEN
LLM token (usefull with openai)
-n, --jan-ai Use localhost default jan-ai config.
-m MODEL_ID, --model-id MODEL_ID
OpenAI form model id (eg: mistral-ins-7b-q4)
-g, --global-summary Do a global summary of individual activity (works only if original output is not selected)
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
calisum-1.1.4.tar.gz
(22.7 kB
view details)
Built Distribution
calisum-1.1.4-py3-none-any.whl
(23.8 kB
view details)
File details
Details for the file calisum-1.1.4.tar.gz
.
File metadata
- Download URL: calisum-1.1.4.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08bb3b9f527cc3e401e1ad706b1be46ba544f6d698cc60efc0d43208ca5e4500 |
|
MD5 | 5af030fa8565040585ef14a6a12c0d7a |
|
BLAKE2b-256 | a4cfe0b628c3bd098f0208f570d85f35f733edf786d76f041074bc5dc6d93556 |
File details
Details for the file calisum-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: calisum-1.1.4-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb79137e0b22c78eeb46cd778e4578564488168bf11f1c99e375a12bec3235b5 |
|
MD5 | a4ed73a41efe9f26bfcc7ba52905a1e5 |
|
BLAKE2b-256 | c1b5717cb2169f3ad1a2b7144360831ea61ceac7ec0b2e69e5f887cb35cddf66 |