Metadata-Version: 2.1
Name: wad2023-program
Version: 1.2.2
Summary: Script to retrieve the program for WeAreDevelopers 2023 conference
Author-email: Daryl Stark <daryl@dstark.nl>
License: MIT License
        
        Copyright (c) 2023 Daryl Stark
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: homepage, https://github.com/DarylStark/WeAreDevelopers_2023_Program
Project-URL: repository, https://github.com/DarylStark/WeAreDevelopers_2023_Program
Keywords: conference,program,wearedevelopers,wearedevs
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests (>=2.27.0)
Requires-Dist: pydantic (>=1.10.0)
Requires-Dist: beautifulsoup4 (>=4.12.0)
Requires-Dist: python-dateutil (>=2.8.0)
Requires-Dist: rich (>=13.4.0)
Requires-Dist: typer (>=0.9.0)
Requires-Dist: pytz (>=2023.3)
Provides-Extra: dev
Requires-Dist: pytest (>=7.3.0) ; extra == 'dev'
Requires-Dist: pycodestyle (==2.10.0) ; extra == 'dev'
Requires-Dist: autopep8 (==2.0.0) ; extra == 'dev'
Requires-Dist: pylint (==2.17.0) ; extra == 'dev'
Requires-Dist: mypy (==1.3.0) ; extra == 'dev'
Requires-Dist: flake8 (==6.0.0) ; extra == 'dev'
Requires-Dist: pydocstyle (==6.3.0) ; extra == 'dev'

# WeAreDevelopers 2023 - Program CLI

In less then a month, the [WeAreDevelopers 2023](https://www.wearedevelopers.com/world-congress) conference is finally starting! Two days of being with like-minded people, talking about code and infrastructure! If you're like me, you're very excited about this, but a bit overwhelmed by the 236 session that are planned. It's difficult to pick the sessions that are right for me. The [programpage](https://www.wearedevelopers.com/world-congress/program) on the website is not really to my liking, so I decided to create a small CLI script to browse through the sessions.

# Installation

Installation can be done using `pip`:

```bash
pip install wad2023-program
```

## Usage

After installing, the CLI script can be executed by executing the `wad23` command in your browser. By executing it without arguments, you get a complete list of all sessions. the first time you run the script, it will download these sessions from the program page (from [Sessionize](https://sessionize.com/api/v2/tx3wi18f/view/Sessions) to be precise) and save the page to your `.cache` folder in your homefolder (the folder will be created if it doesn't exist). All subsequent requests will be done using the cache the original page is not flooded with requests.

The script has a few command line arguments you can use to sort and filter the list. You can use `--help` to see these. Here is a list of the command line options:

-   `--sort=<sort_field>`: specify a field to sort on. Can be `start`, `end`, `title`, `speaker` or `stage`.
-   `--in-title=<text>`: shows only session with a specific word in the title field. For example, the command line argument `--in-title=python` will only display sessions with the word Python in it.
-   `--in-speaker=<text>`: shows only sessions with a specific word in the speaker field.
-   `--in-description=<text>`: shows only sessions with a specific word in the description field.
-   `--stage=<stage_name>`: filters on stage. The stage has to match exactly, like `--stage="Stage 2"`, for instance.
-   `--output=<output_format>`: let's you specify a output format. Can be either `table` (default), `csv` for CSV output or `details` for detailed output. The detailed output will also display the description.
-   `--cache` and `--no-cache`: specifies if the script should use the cache. By default, it uses the cache file, but if you want to skip that, you can specify `--no-cache`. Be warned though: do _not_ flood the webserver of Sessionize with requests!

## Configuration

There is not much to configure for the application, but there are a few configuration options you have. These configuration options are set with environment variables:

-   `CACHE_FILE`: specifies where the cache file should be placed. Default: `~/.cache/program.html`
-   `PROGRAM_URL`: specifies where to download the program from. Default: `https://sessionize.com/api/v2/tx3wi18f/view/Sessions`
-   `PROGRAM_PARAMS`: dictionary that sets specific parameters to the web URL. Default: `dict = {'under': True}`
