Net::OBS::Client(3)
πΈ 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 aNet::OBS::Client::Projectobject. Iconic little constructor behavior, honestly. π«Ά$client->packageβ Returns aNet::OBS::Client::Packageobject. Slay. π$client->buildresultsβ Returns aNet::OBS::Client::BuildResultsobject. 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 π
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
- opensuse-leap 16.0: perl-Net-OBS-Client 0.1.3-bp160.1.10 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms