All Projects β†’ hrbrmstr β†’ Iptools

hrbrmstr / Iptools

Licence: other
🍴 A toolkit for manipulating, validating and testing IP addresses and ranges, along with datasets relating to IP addresses. While it primarily has support for the IPv4 address space, more extensive IPv6 support is intended.

Programming Languages

r
7636 projects

Labels

Projects that are alternatives of or similar to Iptools

Ggcats
The geom you always wished for adding cats to ggplot2
Stars: ✭ 34 (-22.73%)
Mutual labels:  rstats
Advanced R
One day course covering functions, functional programming and tidy evaluation
Stars: ✭ 38 (-13.64%)
Mutual labels:  rstats
Dance
tibble() dancing πŸ’ƒ
Stars: ✭ 41 (-6.82%)
Mutual labels:  rstats
Worldtilegrid
πŸ”²πŸ—Ί World Tile Grid Geom for ggplot2 [WIP]
Stars: ✭ 35 (-20.45%)
Mutual labels:  rstats
Leaflet.extras2
Extra functionality for leaflet R package.
Stars: ✭ 37 (-15.91%)
Mutual labels:  rstats
Chirp
πŸ”¬Visualise Twitter Interactions
Stars: ✭ 40 (-9.09%)
Mutual labels:  rstats
Graphql
Bindings to libgraphqlparser for R
Stars: ✭ 31 (-29.55%)
Mutual labels:  rstats
Ndjson
♨️ Wicked-Fast Streaming 'JSON' ('ndjson') Reader in R
Stars: ✭ 44 (+0%)
Mutual labels:  rstats
Webmockr
R library for stubbing and setting expectations on HTTP requests
Stars: ✭ 37 (-15.91%)
Mutual labels:  rstats
Inferregex
Infer the regular expression (regex) of a string πŸ”€ πŸ”’ πŸ”
Stars: ✭ 41 (-6.82%)
Mutual labels:  rstats
Cricketdata
International cricket data for men and women, Tests, ODIs and T20s
Stars: ✭ 35 (-20.45%)
Mutual labels:  rstats
Mactheknife
🦈 Various β€˜macOS’-oriented Tools and Utilities in R
Stars: ✭ 36 (-18.18%)
Mutual labels:  rstats
Hexagon
◀️⏹▢️ R package for creating hexagon shaped xy data frames.
Stars: ✭ 40 (-9.09%)
Mutual labels:  rstats
Cld2
R Wrapper for Google's Compact Language Detector 2
Stars: ✭ 34 (-22.73%)
Mutual labels:  rstats
Rtweet Workshop
Slides and code for the rtweet workshop
Stars: ✭ 41 (-6.82%)
Mutual labels:  rstats
Rstudioconf tweets
πŸ–₯ A repository for tracking tweets about rstudio::conf
Stars: ✭ 32 (-27.27%)
Mutual labels:  rstats
Ggplot Courses
πŸ‘¨β€πŸ« ggplot2 Teaching Material
Stars: ✭ 40 (-9.09%)
Mutual labels:  rstats
Liger
Lightweight Iterative Gene set Enrichment in R
Stars: ✭ 44 (+0%)
Mutual labels:  rstats
Soccergraphr
Soccer Analytics in R using OPTA data
Stars: ✭ 42 (-4.55%)
Mutual labels:  rstats
Globe4r
🌎 Interactive globe visualisations
Stars: ✭ 41 (-6.82%)
Mutual labels:  rstats

DOI Travis-CI Build Status Project Status: Active - The project has reached a stable, usable state and is being actively developed. CRAN_Status_Badge downloads

Easy IP address handling with iptools

iptools is a set of tools for working with IP addresses. The aim is to provide functionality not presently available with any existing R package and to do so with as much speed as possible. To that end, many of the operations are written in Rcpp and require installation of the AsioHeaders package. A current, lofty goal is to mimic most of the functionality of the Python iptools module and make IP addresses first class R objects.

Available on CRAN

NEW FOR 0.3.0.x+!

Thanks to @eddelbuettel we’ve thinned down this version of iptools and it should also work on Windows now!

Functionality

The package primarily supports IPv4 addresses due to deficiencies in R’s support for large numbers, but there is IPv6 support for some functionality, and we plan to build more in as R improves and as we do. Functionality includes:

  • Converting IP addresses to their numeric form, and then back to strings, with ip_to_numeric and numeric_to_ip;
  • Validating and classifying IP addresses with ip_classify;
  • Range generation and checking with range_boundaries, range_generate and validate_range, country_ranges, and;
  • Several inbuilt IP-related datasets.

For more information, see the vignettes on the functionality and the datasets within iptools.

Installation

To install the development version:

devtools::install_github("hrbrmstr/iptools")
# or
install.packages("iptools")

iptools depends on the AsioHeaders package which is now in CRAN.

Test Results

library(iptools)
library(testthat)

date()
#> [1] "Sun Oct 14 11:29:55 2018"

test_dir("tests/")
#> βœ” | OK F W S | Context
#> ══ testthat results  ══════════════════════════════════════════════════════
#> OK: 82 SKIPPED: 0 FAILED: 0
#> 
#> ══ Results ════════════════════════════════════════════════════════════════
#> Duration: 0.4 s
#> 
#> OK:       0
#> Failed:   0
#> Warnings: 0
#> Skipped:  0

iptools Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
C++ 4 0.13 846 0.52 167 0.38 375 0.28
R 20 0.67 444 0.27 133 0.31 638 0.47
HTML 2 0.07 228 0.14 47 0.11 2 0.00
Rmd 3 0.10 60 0.04 57 0.13 109 0.08
C/C++ Header 1 0.03 37 0.02 30 0.07 223 0.17

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].