inpsNuGet Package Documentation
A NuGet package for .NET that simplifies validation through a custom Check class, a custom Convert class for data conversion, and a dedicated class that simplifies file I/O through SimpleFileHandler.
Select a component to begin
Email validation, PH mobile number verification, string content tests, and connectivity checks.
Embed Python 3.13 into .NET with automatic environment setup, pip management, and script execution.
Check
Utility class for email domain validation, Philippine mobile number matching, string analysis, countdown calculations, and network connection testing.
Methods
Validates Philippine mobile numbers matching formats starting with 09, +639, or 639.
Evaluates whether a string consists strictly of numeric digits, or contains numbers, symbols, or whitespace characters.
Calculates total remaining time between two DateTime instances.
Performs a network connection test by requesting Google's network test endpoint.
Check.Email
Evaluates email addresses using split domain mode (checking name and extension separately) or full domain mode.
// Split Mode
Check.Email.AddValidDomainName("gmail");
Check.Email.AddValidDomainExtension("com");
bool isValid = Check.Email.IsValid("[email protected]");
// Full Domain Mode
Check.Email.AddValidDomain("company.org");
Check.Email.ShouldUseFullDomain(true);
bool matches = Check.Email.IsValid("[email protected]");
Cipher
Class providing classic text encryption algorithms operating on uppercase alphabetic characters.
Methods
Strips spaces and splits text characters by even and odd indices.
Shifts alphabet characters along index bounds using a positive offset value.
Substitutes characters against an alphabet re-ordered by a unique keyword.
Keyword cipher variation applying an alphabet shift derived from a key letter index.
Usage Example
string encryptedCaesar = Cipher.CaesarCipher("HELLO WORLD", 3);
string encryptedKeyword = Cipher.KeywordCipher("SECRET TEXT", "MYKEY");
Convert
Utility class supporting string reversals, Base64 encoding/decoding, Hex, Binary, byte array transformations, and numeric parsing.
Methods
Reverses the character sequence of the string.
Encodes or decodes text using UTF-8 Base64 formats.
Converts text to and from Hexadecimal and 8-bit padded Binary formats.
Converts strings to UTF-8 byte arrays and vice versa.
Parses strings into C# primitive numeric types.
PyCS
Embedded Python 3.13 interop engine that extracts an embedded Python environment, installs pip, manages packages, and executes Python scripts from C#.
Constructors
PyCS py = new PyCS(); // Show console log output
PyCS pyQuiet = new PyCS(false); // Hide console output
Methods
Installs pip into the embedded Python directory structure if not present.
Executes pip install operations (remote, upgrade, or offline wheel directory installation).
Executes a Python code block or script file and outputs results to the console.
Executes Python code or file script and returns standard output/error as a string.
Gracefully terminates or kills the currently executing Python process.
Usage Example
PyCS py = new PyCS();
py.InstallPip();
py.Pip(new string[] { "requests" });
string result = py.GetOutput("import requests\nprint(requests.get('https://api.github.com').status_code)");
SimpleFileHandler
Utility class for reading, writing, appending files, and projecting assembly embedded resources directly to disk.
Methods
Writes or appends text content to a target file path.
Reads all text content from a file path.
Extracts an embedded resource file from the specified assembly and projects it to a target disk location.
Sort
Utility class containing 18 high-performance sorting algorithm implementations for int[] and double[] arrays.
Methods
In-place bubble sort swapping elements in adjacent order.
Bidirectional bubble sort variant.
Parallel-friendly comparison sort alternating odd/even index passes.
Divide-and-conquer quicksort using pivot partitioning.
Stable divide-and-conquer merge sort.
PriorityQueue-backed binary heap sort.
Hybrid sort switching from QuickSort to HeapSort based on recursion depth.
Hybrid stable sort derived from MergeSort and InsertionSort.
Distribution sort for uniformly distributed floating-point numbers in [0.0, 1.0).
Binary Search Tree insertion and in-order traversal sort.
Piles-based sorting utilizing PriorityQueue dequeues.
Gravity/bead sort for positive integers.
Text
Utility class for string parsing and extraction routines.
Methods
Extracts and returns the substring contained within the first and last double quotation marks of a line.
VerticalFlowLayoutPanel
Custom Windows Forms FlowLayoutPanel control that suppresses horizontal scrollbar styles for vertical-only layout flows.
Usage Example
VerticalFlowLayoutPanel panel = new VerticalFlowLayoutPanel();
panel.AutoScroll = true;
this.Controls.Add(panel);