Metadata-Version: 2.3
Name: calisum
Version: 1.1.4
Summary: A scraper and summarizer for caliap
Project-URL: Homepage, https://github.com/lpi-code/calisum
Project-URL: Issues, https://github.com/lpi-code/calisum/issues
Author-email: Loïc Piernas <lpi-code@piernas.fr>
License-File: LICENSE.md
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: aiohappyeyeballs==2.4.0
Requires-Dist: aiohttp==3.10.5
Requires-Dist: aiosignal==1.3.1
Requires-Dist: annotated-types==0.7.0
Requires-Dist: anyio==4.4.0
Requires-Dist: attrs==24.2.0
Requires-Dist: beautifulsoup4==4.12.3
Requires-Dist: breadability==0.1.20
Requires-Dist: bs4==0.0.2
Requires-Dist: bullet==2.2.0
Requires-Dist: certifi==2024.8.30
Requires-Dist: chardet==5.2.0
Requires-Dist: charset-normalizer==3.3.2
Requires-Dist: click==8.1.7
Requires-Dist: distro==1.9.0
Requires-Dist: docopt==0.6.2
Requires-Dist: frozenlist==1.4.1
Requires-Dist: gitdb==4.0.11
Requires-Dist: gitpython==3.1.41
Requires-Dist: h11==0.14.0
Requires-Dist: httpcore==1.0.5
Requires-Dist: httpx==0.27.2
Requires-Dist: idna==3.10
Requires-Dist: jiter==0.5.0
Requires-Dist: joblib==1.4.2
Requires-Dist: lxml==5.3.0
Requires-Dist: multidict==6.1.0
Requires-Dist: nltk==3.9.1
Requires-Dist: numpy==2.1.1
Requires-Dist: openai==1.46.0
Requires-Dist: pycountry==24.6.1
Requires-Dist: pydantic-core==2.23.4
Requires-Dist: pydantic==2.9.2
Requires-Dist: regex==2024.9.11
Requires-Dist: requests==2.32.3
Requires-Dist: setuptools==69.0.3
Requires-Dist: smmap==5.0.1
Requires-Dist: sniffio==1.3.1
Requires-Dist: soupsieve==2.6
Requires-Dist: sumy==0.11.0
Requires-Dist: tabulate==0.9.0
Requires-Dist: tqdm==4.66.5
Requires-Dist: typing-extensions==4.12.2
Requires-Dist: urllib3==2.2.3
Requires-Dist: yarl==1.11.1
Description-Content-Type: text/markdown

# 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

```bash
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
[GPL-3.0](LICENSE.md)
```