Skip to content

CLI tool to parse backpacking gear lists into useful information

License

Notifications You must be signed in to change notification settings

zimmertr/Better-Lighter-Pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better Ligher Pack

Summary

I was frustrated with https://lighterpack.com so I made this CLI tool. Your exported ligherpack CSVs should be compatible.


Instructions

  1. Create a CSV file following this format. Reference examples in ./trips/ if necessary:

    Description: 	name,description,quantity,weight,unit,url,price,worn,consumable
    Example: 	Running Tights,Clothing,Nike Dri-Fit Challenger - L,1,259.97,g,https://www.nike.com/t/dri-fit-challenger-mens-running-tights-CF4RdW,60.00,Worn,
    
  2. Execute the script against a CSV file or directory containing CSV files:

    # With Python
    ./python main.py trips/Alpine_Lakes_Grand_Slam.csv
    
    # With Python
    ./python main.py trips/
    
    # With Docker
    ./docker run -it $(docker build -q .)

Examples:

$> python main.py trips/Alpine_Lakes_Grand_Slam.csv
Trip: trips/Alpine_Lakes_Grand_Slam.csv

Category     Count
----------  -------
Base          59
Worn          15
Food          22
Total         96

Category     Weight (lbs)
----------  --------------
Base            19.04
Worn             5.73
Food             9.32
Total           34.08
No Data: 20

Category    Value
----------  ---------
Base        $2,388.72
Worn        $2,218.51
Food        $561.13
Total       $5,168.36
No Data: 36

Category        Count    Weight (lbs)   Value
-------------  -------  --------------  ---------
Clothing          7          3.4        $349.42
Electronics       9          2.41       $2,160.90
Feet              3          1.59       $136.70
Food             22          5.28       $224.01
Hiking            5          5.37       $349.92
Human Flaws       6          0.08       $104.28
Kitchen           9          2.32       $363.20
Medicine          9          1.55       $21.16
Miscellaneous     8          0.41       $43.21
Sanitation       11          0.11       $7.99
Sleeping          7          6.39       $921.53

TODO

  • Add configurable sorting
  • Support configurable weight units
  • Add configurable lists (EG: top 3 heaviest per category)
  • Configure Dockerfile to receive file by argument instead of volume mount

About

CLI tool to parse backpacking gear lists into useful information

Topics

Resources

License

Stars

Watchers

Forks