{"id":18318559,"url":"https://github.com/maxmind/net-works","last_synced_at":"2025-04-05T21:32:55.474Z","repository":{"id":5695208,"uuid":"6905706","full_name":"maxmind/Net-Works","owner":"maxmind","description":"Sane APIs for IP addresses and networks","archived":false,"fork":false,"pushed_at":"2025-03-20T20:26:36.000Z","size":243,"stargazers_count":5,"open_issues_count":7,"forks_count":6,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-03-21T12:12:34.461Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/release/Net-Works/","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxmind.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-11-28T16:48:11.000Z","updated_at":"2025-02-14T20:21:59.000Z","dependencies_parsed_at":"2025-01-29T21:22:51.962Z","dependency_job_id":"26321551-3656-4c4e-b431-ca095b741c10","html_url":"https://github.com/maxmind/Net-Works","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmind%2FNet-Works","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmind%2FNet-Works/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmind%2FNet-Works/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxmind%2FNet-Works/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxmind","download_url":"https://codeload.github.com/maxmind/Net-Works/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406078,"owners_count":20933803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T18:10:01.769Z","updated_at":"2025-04-05T21:32:55.221Z","avatar_url":"https://github.com/maxmind.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nNet::Works - Sane APIs for IP addresses and networks\n\n# VERSION\n\nversion 0.23\n\n# DESCRIPTION\n\nThe [NetAddr::IP](https://metacpan.org/pod/NetAddr::IP) module is very complete, correct, and useful. However, its\nAPI design is a bit crufty. This distro provides an alternative API that aims\nto address the biggest problems with that module's API, as well as adding some\nadditional features.\n\nThis distro contains two modules, [Net::Works::Address](https://metacpan.org/pod/Net::Works::Address) and\n[Net::Works::Network](https://metacpan.org/pod/Net::Works::Network).\n\n**NOTE: This distro's APIs are still in flux. Use at your own risk.**\n\n# Net::Works VERSUS NetAddr::IP\n\nHere are some of the key differences between the two distributions:\n\n- Separation of address from network\n\n    `Net::Works` provides two classes, one for single IP addresses and one for\n    networks (and subnets). With [NetAddr::IP](https://metacpan.org/pod/NetAddr::IP) a single address is represented as\n    a /32 or /128 subnet. This is technically correct but can make the API harder\n    to use. Whenever you want a single IP you're always stuck checking that the\n    object you're working with is the size of a single address subnet.\n\n- Multiple constructors\n\n    [Net::Works](https://metacpan.org/pod/Net::Works) allows you to construct an IP address from a string (\"192.0.2.1\")\n    or an integer (3221225985) using separate constructors.\n\n- Next \u0026 previous IP\n\n    You can get the next and previous address from [Net::Works::Address](https://metacpan.org/pod/Net::Works::Address) object,\n    regardless of whether or not that address is in the same subnet.\n\n- Constructors throw exceptions\n\n    If you pass bad data to a constructor you'll get an exception.\n\n- Sane iterator and first/last\n\n    The iterator provided by [Net::Works::Network](https://metacpan.org/pod/Net::Works::Network) has no confusing special\n    cases. It always returns all the addresses in a network, including the network\n    and broadcast addresses. Similarly, the `$network-\u003efirst()` and `$network-\u003elast()` do not return different results for different sized networks.\n\n- Split a range into subnets\n\n    The [Net::Works::Network](https://metacpan.org/pod/Net::Works::Network) class provides a `Net::Works::Network-\u003erange_as_subnets` method that takes a start and end IP\n    address and splits this into a set of subnets that include all addresses in\n    the range.\n\n- Does less\n\n    This distro does not support every method provided by [NetAddr::IP](https://metacpan.org/pod/NetAddr::IP). Patches\n    to add more features are welcome, however.\n\n# BUGS\n\nPlease report any bugs or feature requests to `bug-net-works@rt.cpan.org`, or\nthrough the web interface at [http://rt.cpan.org](http://rt.cpan.org).  I will be notified, and\nthen you'll automatically be notified of progress on your bug as I make\nchanges.\n\nBugs may be submitted through [https://github.com/maxmind/Net-Works/issues](https://github.com/maxmind/Net-Works/issues).\n\n# AUTHORS\n\n- Dave Rolsky \u003cautarch@urth.org\u003e\n- Greg Oschwald \u003coschwald@cpan.org\u003e\n- Olaf Alders \u003coalders@wundercounter.com\u003e\n\n# CONTRIBUTORS\n\n- Alexander Hartmaier \u003cabraxxa@cpan.org\u003e\n- Dave Rolsky \u003cdrolsky@maxmind.com\u003e\n- Greg Oschwald \u003cgoschwald@maxmind.com\u003e\n- Mark Fowler \u003cmark@twoshortplanks.com\u003e\n- TJ Mather \u003ctjmather@maxmind.com\u003e\n- William Stevenson \u003cwstevenson@maxmind.com\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2017 by MaxMind, Inc.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmind%2Fnet-works","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxmind%2Fnet-works","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmind%2Fnet-works/lists"}