aryanpy
v1.0.0
Published
Display Data Visualization with Python (4th sem) lab programs by their program number from the command line.
Maintainers
Readme
aryanpy
Display Data Visualization with Python (4th Semester) lab programs by their program number, straight from your terminal.
A zero-dependency command line tool that ships every program from the Data Visualization with Python Laboratory Manual (Dept. of CSE, Atria Institute of Technology). Type a program number, get the Python code.
Install
Use it instantly without installing:
npx aryanpy 4aOr install globally so the aryanpy command is always available:
npm install -g aryanpyUsage
aryanpy <number> # Display a program by its number
aryanpy list # List all available programs
aryanpy all # Display every program
aryanpy help # Show help
aryanpy version # Show versionThe program number is flexible — 4a, 4A, 4-a and 4 a all work.
Examples
aryanpy 1a # Best of two test average marks
aryanpy 4a # Bar Plot using Matplotlib
aryanpy 7 # Customizing Seaborn plots
aryanpy 10b # Time Series using PlotlySave a program directly to a file:
aryanpy 4a > program4a.py
python program4a.pyAvailable programs
| No. | Program | |-----|---------| | 1A | Best of two test average marks out of three tests | | 1B | Check palindrome number and count digit occurrences | | 2A | Fibonacci using a function with input validation | | 2B | Binary to decimal and octal to hexadecimal using functions | | 3A | Count words, digits, uppercase and lowercase letters | | 3B | String similarity between two given strings | | 4A | Bar Plot using Matplotlib | | 4B | Scatter Plot using Matplotlib | | 5A | Histogram Plot using Matplotlib | | 5B | Pie Chart using Matplotlib | | 6A | Linear Plotting using Matplotlib (Simple) | | 6B | Linear Plotting with line formatting using Matplotlib | | 7 | Customizing Seaborn plots with Aesthetic functions | | 8A | Bokeh line graph using Annotations and Legends | | 8B | Plotting different types of plots using Bokeh | | 9A | 3D Scatter Plot using Plotly | | 9B | 3D Surface Plot using Plotly | | 10A | Creating Maps using Plotly | | 10B | Drawing Time Series using Plotly |
Programmatic use
const { getProgram, listKeys } = require('aryanpy');
console.log(getProgram('4a').code); // the Python source
console.log(listKeys()); // ['1a', '1b', '2a', ...]License
MIT
