Bio::WebAgent(3pm)
π Bio::WebAgent β a base class for Web (any protocol) access π
okay so bestie, welcome to Bio::WebAgent, a User Contributed Perl Documentation page, and honestly? she's giving foundation. the whole vibe here is: she doesn't do the work herself, she's the β¨ blueprint β¨ that all the bioperl net-touching modules inherit from. let's get into it π«Ά
β¨ NAME β¨
Bio::WebAgent β a base class for Web (any protocol) access π
π¦ SYNOPSIS π¦
# This is a abstract superclass for bioperl modules accessing web
# resources - normally you do not instantiate it but one of its
# subclasess.
not me showing up to the party as an abstract superclass π you literally do not instantiate her directly, bestie, you instantiate one of her subclasses. she's the mom, not the main character.
πΈ DESCRIPTION πΈ
so this abstract superclass is a subclass of LWP::UserAgent, and what she does is give you protocol independent access of remote locations over the Net. π no cap.
she handles the whole situation for you: error handling, proxies, and various net protocols. any BioPerl class that's going to touch the net should inherit from her. iykyk. for the deep details, go look at LWP::UserAgent β she's the blueprint's blueprint.
the interface is still evolving, ngl. for now, two public methods have been copied over from Bio::DB::WebDBSeqI: delay() and delay_policy. these exist to prevent overwhelming the server by rapidly repeated . βπ (yes that sentence is incomplete in the original, i'm not fixing it, i'm just reporting the tea). ideally there should be a common abstract superclass with these. see delay.
π SEE ALSO π
LWP::UserAgentBio::DB::WebDBSeqI
π FEEDBACK π
π¬ Mailing Lists
user feedback is an integral part of the evolution of this and other Bioperl modules, fr fr. send your comments and suggestions preferably to the Bioperl mailing list. your participation is much appreciated. π«Ά
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π Support
please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
and not to the module maintainer directly, bestie, please π there are so many experienced and reponsive experts who will be able look at the problem and quickly address it. if at all possible, include a thorough description of the problem with code and data examples β the more receipts the better.
π Reporting Bugs
report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolution. bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
βοΈ AUTHOR βοΈ
Heikki Lehvaslaiho, heikki-at-bioperl-dot-org
Β©οΈ COPYRIGHT Β©οΈ
Copyright (c) 2003, Heikki Lehvaslaiho and EMBL-EBI. All Rights Reserved.
this module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π slay.
β οΈ DISCLAIMER β οΈ
this software is provided "as is" without warranty of any kind.
periodt. no warranty, no promises, that's the deal π
π APPENDIX π
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ (the underscore is the "don't touch, that's private" energy π).
π url
Usage : $agent->url
Returns : URL to reach out to Net
Args : string
β³ delay
Title : delay
Usage : $secs = $self->delay([$secs])
Function: get/set number of seconds to delay between fetches
Returns : number of seconds to delay
Args : new value
NOTE: the default is to use the value specified bydelay_policy(). this can be overridden by calling this method, or by passing the-delayargument tonew().
π°οΈ delay_policy
Title : delay_policy
Usage : $secs = $self->delay_policy
Function: return number of seconds to delay between calls to remote db
Returns : number of seconds to delay
Args : none
NOTE: the default delay policy is3s. override in subclasses to implement other delays. the timer has only second resolution, so the delay will actually be+/- 1s. π precision is not her thing and that's okay.
π΄ sleep
Title : sleep
Usage : $self->sleep
Function: sleep for a number of seconds indicated by the delay policy
Returns : none
Args : none
NOTE: this method keeps track of the last time it was called and only imposes a sleep if it was called more recently than the delay_policy() allows.
and that's the whole page bestie, no crumbs left π this was Bio::WebAgent(3pm) from perl v5.32.1, dated 2021-08-15 β go forth and inherit responsibly, mwah π
β¨
π¦ where this page comes from
- debian bookworm: libbio-perl-perl 1.7.8-1 Β· Perl
- debian trixie: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu noble: libbio-perl-perl 1.7.8-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms