Skip to main content

Script to retrieve the program for WeAreDevelopers 2023 conference

Project description

WeAreDevelopers 2023 - Program CLI

In less then a month, the WeAreDevelopers 2023 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 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:

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 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.
  • --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), or csv for CSV output.
  • --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}

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

wad2023-program-1.2.0.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

wad2023_program-1.2.0-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page