Giter Site home page Giter Site logo

philipp-meier / gw2-cli Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 38 KB

:pager: Simple neofetch-like command line tool for displaying Guild Wars 2 stats by using the official GW2 API.

License: MIT License

Rust 99.40% Shell 0.60%
cli cli-app guildwars2 gw2 gw2-api gw2api rust rust-lang gw2-cli gw2cli

gw2-cli's Introduction

gw2-cli

Build MIT License

Simple neofetch-like command line tool for displaying Guild Wars 2 stats by using the official API.

Preview

Note: This is a learning project I set up to familiarize myself with Rust, since I did not have any prior experience with this tech stack. Feel free to contribute to this project.

Usage

Set your GW2 API-key to a environment variable named Gw2Cli_ApiKey. After that, gw2-cli can be used as described below:

Usage: gw2cli [OPTIONS] [COMMAND]

Commands:
  characters  Character information
  help        Print this message or the help of the given subcommand(s)

Options:
  -l, --lang <LANG>  [default: en]
  -h, --help         Print help information

List characters

gw2cli characters list

Character details

gw2cli characters <character_name> 

Preview

Development

Performance tests

# sudo apt install linux-tools-generic

# Stats
perf stat -r 10 ./target/release/gw2cli
# List characters
perf stat -r 10 ./target/release/gw2cli characters list

Linter

cargo clippy

Further ideas / goals

  • Localizing static texts
  • Achievement points (APs)
  • Hall of Monuments points
  • In-game currency to collect on the TP
  • Number of unlocked character slots
  • Available content (PoF, HoT,..)
  • Different views (PvP, WvW, Rewards...) using clap arguments
  • Character with the most playtime (incl. profession and specialization)
  • Different ascii logos based on the main character or other statistics

gw2-cli's People

Contributors

philipp-meier avatar

Stargazers

 avatar  avatar

Watchers

 avatar

gw2-cli's Issues

Improve "stats" performance

The "v2/characters/{NAME}/core" endpoint takes a long time to respond.
Since this endpoint will be called for every character to get the oldest character, the requests should be parallelized to save time.

"Age" is currently misinterpreted

"Oldest char" currently fetches the character with the most playtime ("age") and not the oldest character, which also unlocks the "oldest character"-achievements.

Solution:
Show the age as "playtime" so that it doesn't get confused with the actual age of the character, which is based on the create date.
(The official API also interprets "age" as the playtime.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.