Skip to main content

An average platinum price calculator for tradeable items in Warframe.

Project description

WarMAC Version 0.0.4

GitHub last commit (branch) Documentation Status pre-commit.ci status
PyPI PyPI - Python Version
Ruff MIT License PyPI - Downloads

WarMAC is a command-line Python script that can calculate the average market price of items in Warframe.

WarMAC compiles orders from the fan website https://warframe.market/ and can be used to find the average prices of prime parts, tradeable parts, relics, mods, and arcane enhancements.

Features

  • 🎮Target PC, PlayStation, XBOX, or Nintendo Switch platforms.
  • 📈Calculate the median, mean, mode, harmonic mean, or geometric means of items.
  • 🕜Restrict orders to specific time ranges.
  • 💰Utilize either seller or buyer orders.
  • ⛏️Find averages for intact or radiant relics.
  • ✨Find averages for unranked or max-ranked mods and arcane enhancements.

Table of Contents

Installation

WarMAC only supports Python versions 3.8 to 3.12. There are currently no plans to add support to Python 3.7

Using pipx

Currently, the primary method of installing WarMAC is by installing it through pipx. This keeps WarMAC and its dependencies separate from your global Python packages. Installation can be done using the following command:

Platform Command
UNIX/MacOS python -m pipx install warmac
Windows py -m pipx install warmac

You can ensure that you've installed WarMAC correctly by calling its help page like so:

warmac --version

Using Pip

Using pip alone to install WarMAC will work just as well. Installation can be done using the following command:

Platform Command
UNIX/MacOS python -m pip install warmac
Windows py -m pip install warmac

You can ensure that you've installed WarMAC correctly by calling its help page like so:

warmac --version

Using Poetry

WarMAC can also be installed using Poetry either through the provided poetry.lock file (recommended) or by building a lock of your own.

To obtain the source code, you can either download the latest version from Releases or by cloning the repository using git with the following command:

git clone https://github.com/Eutropios/WarMAC.git ./some/directory

WarMAC can then be built by navigating to the directory you cloned WarMAC into, and running the poetry build and poetry install commands.

Usage

General Usage

Full usage instructions as well as examples can be found in the official documentation.

WarMAC has a variety of commands for users to select from. Each command has its own unique options and arguments. Wherever possible, options that perform similar functions for different commands will share the same name.

Every WarMAC command is preceded by warmac. The general help section of the program can be viewed by running warmac --help.

To view a specific command's usage from the command line, simply run: warmac <command> --help

For example, to view the usage for the average command, users should run: warmac average --help

Handling WarMAC Output

WarMAC accepts outgoing pipes just like any other tool:

$ warmac average -p=ps4 -t=5 -v "bite" | grep "Time Range"
Time Range Used:             10 days

WarMAC output can also be redirected to a file:

$ warmac average -p PC -t 2 -v "vengeful revenant" > warmacOut.txt
$ cat warmacOut.txt
Item:                  Vengeful Revenant
Statistic Found:       Median
Time Range Used:       2 days
Median Price:          5.0 platinum
Max Price:             30 platinum
Min Price:             4 platinum
Number of Orders:      38

Examples

Calculating the median price of the mod "Primed Continuity" on PS4. Note that the median is calculated as it's the default.

warmac average -p ps4 "primed continuity"

Calculating the mode price of the mod "Bite" when it's at max rank on PC. Note that the PC price is calculated as it's the default.

warmac average -s mode -m bite

Documentation

Full documentation for installation, usage, and contribution guidelines can be found here.

Upcoming Features

  • Adding file input
  • Adding even more commands to WarMAC!

Contributing

Contributions are welcome. The expected development stack that you will use consists of docformatter, mypy, and ruff. Please see pyproject.toml for the appropriate configuration of each tool.

Testing

There are currently no tests or intrusive GitHub Actions, but that is expected to change in the future.

Acknowledgements

In addition to the tools listed in .pre-commit-config.yaml and pyproject.toml, this project uses the following tools in its development:

WarMAC is packaged using Poetry.

Licensing

This project is NOT affiliated with Warframe, Digital Extremes, or Warframe Market

Copyright (c) 2023 Noah Jenner under MIT License

For additional licensing information, please see LICENSE.txt
For licensing regarding urllib3, please see LICENSE-urllib3.txt

Authors

WarMAC is authored by:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

warmac-0.0.4.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

warmac-0.0.4-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file warmac-0.0.4.tar.gz.

File metadata

  • Download URL: warmac-0.0.4.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/11

File hashes

Hashes for warmac-0.0.4.tar.gz
Algorithm Hash digest
SHA256 333bab01ef493426edb00bb71de29ae1a80f08e64328b51a52d1cd56e7ffeec1
MD5 c54b0bda272c0d0255ef724e258fb67a
BLAKE2b-256 73c51ccab3c490d2bb58fe3a075dede8f01d62381728195b5c906c61e862a45f

See more details on using hashes here.

File details

Details for the file warmac-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: warmac-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/11

File hashes

Hashes for warmac-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 42913aea704446e19f93890add55335d94dbf241e2e3af768a54fe4476ba0792
MD5 81251a45b52243741798657e2367cb1c
BLAKE2b-256 2351ac9a8d00189a612259d9c2f709858960a8b631447304d88233ba1b740bd4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page