Net::OBS::Client(3)

πŸ“¦ version 0.1.3, in opensuse-leap 16.0

🌸 NAME 🌸

Okay bestie, this is Net::OBS::Client(3) β€” the manual page for Net::OBS::Client - simple OBS API calls. It's giving handy Perl energy and I'm obsessed. πŸ’…


✨ SYNOPSIS ✨

Here's the whole vibe in code, no cap:

#
use Net::OBS::Client;
my $client = Net::OBS::Client->new(
  apiurl     => $apiurl,
  use_oscrc  => 0,
);

my $prj = $client->project(
  name       => $project,
);

my $pkg = $client->package(
  project    => 'OBS:Server:Unstable',
  name       => 'obs-server',
  repository => 'openSUSE_Factory',
  arch       => 'x86_64',
);

my $res = $client->buildresults(
  project    => $project,
  package    => $package,
  repository => $repo,
  arch       => $arch,
);

#
use Net::OBS::Client::Project;
use Net::OBS::Client::Package;

my $prj = Net::OBS::Client::Project->new(
  apiurl     => $apiurl,
  name       => $project,
  use_oscrc  => 0,
);

my $s = $prj->fetch_resultlist(package => $package);

my $pkg = Net::OBS::Client::Package->new(
  project    => 'OBS:Server:Unstable',
  name       => 'obs-server',
  repository => 'openSUSE_Factory',
  arch       => 'x86_64',
  use_oscrc  => 0,
  apiurl     => 'https://api.opensuse.org/public'
);

my $state = $pkg->fetch_status();

πŸ’– DESCRIPTION πŸ’–

Net::OBS::Client aims to simplify usage of OBS (https://openbuildservice.org) API calls in perl. That's the whole mission, bestie: make the OBS API less "what is happening" and more "oh yes, we love a clean little Perl wrapper." ✨


πŸŽ€ SUBROUTINES/METHODS πŸŽ€

  • $client->project β€” Returns a Net::OBS::Client::Project object. Iconic little constructor behavior, honestly. 🫢
  • $client->package β€” Returns a Net::OBS::Client::Package object. Slay. πŸŽ€
  • $client->buildresults β€” Returns a Net::OBS::Client::BuildResults object. Build results bestie, yup. πŸ”₯

πŸ¦‹ AUTHOR πŸ¦‹

Frank Schreiner, "<frank at samaxi.de>" β€” exact author credit, exact at spelling, preserved with love. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

Net::OBS::Client::Package, Net::OBS::Client::Project, Net::OBS::Client::BuildResults β€” go peek at these too, they're part of the squad. πŸ‘‘

You can find some examples in the "" in contrib directory β€” yes, the empty quotes are part of the lore. πŸ™ˆ


Copyright 2016 Frank Schreiner <frank@samaxi.de>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Open-source royalty behavior, periodt. πŸ’–

🌸 Cute footer moment: this page is from perl v5.42.0, dated 2024-04-26, and it's Net::OBS::Client(3) β€” mwah, bye bestie! πŸ’…

πŸ“¦ where this page comes from