-
-
13 Apr 2019 21:53:04 UTC
- Distribution: CPAN-Index-API
- Module version: 0.008
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (285 / 11 / 0)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Perl: v5.8.1
- Activity
24 month- Tools
- Download (31.44KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Peter Shangov
- Dependencies
- Carp
- Class::Load
- Compress::Zlib
- File::Basename
- File::Temp
- LWP::Simple
- List::Util
- Moose
- Moose::Role
- Moose::Util::TypeConstraints
- MooseX::ClassAttribute
- Path::Class
- Path::Tiny
- Scalar::Util
- Symbol
- Text::Template
- URI
- URI::file
- XML::Twig
- base
- namespace::autoclean
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
CPAN::Index::File::PackagesDetails - Interface to
02packages.details.txt
.SYNOPSIS
my $pckdetails = CPAN::Index::File::PackagesDetails->parse_from_repo_uri( 'http://cpan.perl.org' ); foreach my $package ($pckdetails->packages) { ... # do something }
DESCRIPTION
This is a class to read and write
03modlist.data
.METHODS
package
First package in the list.
packages
List of hashrefs representing packages indexed in the file. Each hashref has the following structure:
- name
-
Package name, e.g.
Foo::Bar
. - version
-
Package version, e.g.
0.001
. - distribution
-
Distribution the package belongs to, e.g.
Foo-Bar-0.001
.
package_count
Number of packages indexed in the file.
filename
Name of this file - defaults to
02packages.details.txt.gz
;description
Short description of the file.
intended_for
Target consumers of the file.
uri
Absolute URI pointing to the file location.
parse
Parses the file and returns its representation as a data structure.
default_location
Default file location -
modules/02packages.details.txt.gz
.sorted_packages
The list of packages sorted by name.
METHODS FROM ROLES
- <CPAN::Index::API::Role::Readable/read_from_string>
- <CPAN::Index::API::Role::Readable/read_from_file>
- <CPAN::Index::API::Role::Readable/read_from_tarball>
- <CPAN::Index::API::Role::Readable/read_from_repo_path>
- <CPAN::Index::API::Role::Readable/read_from_repo_uri>
- "tarball_is_default" in CPAN::Index::API::Role::Writable
- "repo_path" in CPAN::Index::API::Role::Writable
- "template" in CPAN::Index::API::Role::Writable
- "content" in CPAN::Index::API::Role::Writable
- "write_to_file" in CPAN::Index::API::Role::Writable
- "write_to_tarball" in CPAN::Index::API::Role::Writable
- "clone" in CPAN::Index::API::Role::Clonable
- "filename" in CPAN::Index::API::Role::HavingFilename
- "generated_by" in CPAN::Index::API::Role::HavingGeneratedBy
- "last_generated" in CPAN::Index::API::Role::HavingGeneratedBy
Module Install Instructions
To install CPAN::Index::API, copy and paste the appropriate command in to your terminal.
cpanm CPAN::Index::API
perl -MCPAN -e shell install CPAN::Index::API
For more information on module installation, please visit the detailed CPAN module installation guide.