No description
  • Perl 96.4%
  • Makefile 3.6%
Find a file
Vincent Batts 1a41a69530
perl! a simple Tk app that might could call a REST endpoint
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2026-03-13 16:20:43 -04:00
app.pl perl! a simple Tk app that might could call a REST endpoint 2026-03-13 16:20:43 -04:00
cpanfile perl! a simple Tk app that might could call a REST endpoint 2026-03-13 16:20:43 -04:00
LICENSE Initial commit 2026-03-13 20:16:01 +00:00
Makefile perl! a simple Tk app that might could call a REST endpoint 2026-03-13 16:20:43 -04:00
README.md perl! a simple Tk app that might could call a REST endpoint 2026-03-13 16:20:43 -04:00

simple-perl-gui

Perl Tk REST Application A GUI application built with Perl/Tk that integrates with REST API endpoints.

Features

  • Configurable API endpoint URL
  • API key authentication (Bearer token)
  • Settings persisted to JSON config file
  • GET/POST request support
  • JSON request/response handling

Requirements

Debian/Ubuntu

Install cpanminus and the required system dependencies:

sudo apt-get install cpanminus libtk-perl libjson-perl libwww-perl libfile-homedir-perl

Then install any remaining Perl modules:

sudo cpanm Tk JSON LWP::UserAgent HTTP::Request::Common File::HomeDir

or

make deps

Other Linux/macOS

Install the required Perl modules:

cpan Tk JSON LWP::UserAgent HTTP::Request::Common File::HomeDir

Or with cpanm:

cpanm Tk JSON LWP::UserAgent HTTP::Request::Common File::HomeDir

Usage

perl app.pl

or

make run

Menu Options

  • File → Settings: Configure API URL and API key
  • File → Exit: Close the application
  • Help → About: Application information

Making Requests

  1. Configure your API endpoint URL and key in Settings
  2. Enter the endpoint path (e.g., /api/v1/resource)
  3. Select HTTP method (GET or POST)
  4. Click "Send Request"
  5. View the JSON response in the text area

Configuration

Settings are stored in:

  • Linux: ~/.local/share/perl_tk_app/config.json
  • macOS: ~/Library/Application Support/perl_tk_app/config.json
  • Windows: %LOCALAPPDATA%\perl_tk_app\config.json