Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Jeklah/priceCheck
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.331
Choose a base ref
...
head repository: Jeklah/priceCheck
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 17 commits
  • 4 files changed
  • 2 contributors

Commits on Apr 30, 2022

  1. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    bcba6a7 View commit details

Commits on May 7, 2022

  1. Copy the full SHA
    5323920 View commit details
  2. Copy the full SHA
    89143c2 View commit details
  3. Copy the full SHA
    dd47816 View commit details

Commits on May 10, 2022

  1. Copy the full SHA
    59597b5 View commit details
  2. Minor fstring formatting.

    Jeklah committed May 10, 2022
    Copy the full SHA
    b91cdd9 View commit details

Commits on May 12, 2022

  1. Update pcheck.py

    Jeklah authored May 12, 2022
    Copy the full SHA
    ec1e632 View commit details

Commits on May 20, 2022

  1. Update pcheck.py

    Update comment at the top for new project/filename/purpose.
    Jeklah authored May 20, 2022
    Copy the full SHA
    b0058a0 View commit details
  2. Update pcheck.py

    Jeklah authored May 20, 2022
    Copy the full SHA
    e788311 View commit details

Commits on Oct 20, 2022

  1. Code optimising.

    Jeklah committed Oct 20, 2022
    Copy the full SHA
    87b6fc6 View commit details
  2. Removing merge markers

    Jeklah committed Oct 20, 2022
    Copy the full SHA
    32e74da View commit details

Commits on Feb 28, 2023

  1. Copy the full SHA
    54cdfeb View commit details

Commits on Mar 2, 2023

  1. Copy the full SHA
    051b023 View commit details

Commits on Mar 3, 2023

  1. Copy the full SHA
    efb9776 View commit details
  2. Update pcheck.py

    Jeklah authored Mar 3, 2023
    Copy the full SHA
    37219c3 View commit details
  3. Adding type annotations for main()

    ArthurB committed Mar 3, 2023
    Copy the full SHA
    816e5fa View commit details
  4. Copy the full SHA
    044b6f9 View commit details
Showing with 344 additions and 276 deletions.
  1. +14 −14 README.md
  2. +59 −50 scripts/eveConsts.py
  3. +271 −0 scripts/pcheck.py
  4. +0 −212 scripts/ships.py
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -20,46 +20,46 @@ Push the Windows button and type `git`.
Launch the Git Bash app.
Run the following commands in the Git Bash app to clone the git repository and find out what directory it's in.

`git clone https://github.com/Jeklah/shipCostCalc.git`
`git clone https://github.com/Jeklah/priceCheck.git`
`pwd`

You should get an output of a directory path, for me its:`/d/Projects/shipCostCalc`
You should get an output of a directory path, for me its:`/d/Projects/priceCheck`

Push the Windows button and type `cmd` and launch as administrator (if you aren't already).
Go to the directory path found out using `pwd`.

**Navigation in cmd**
Use `cd` to change directories. e.g `cd C:\test\shipCostCalc`. Notice that the slashes are backwards in cmd and
Use `cd` to change directories. e.g `cd C:\test\priceCheck`. Notice that the slashes are backwards in cmd and
forwards when using Git Bash app. Using the wrong slash will result in an error.
If you need to change drives (you're in C:\ and its been cloned somewhere in D:\ ) just type the letter of the drive
then colon to change drives. e.g to change from C:\ to D:\ type: `d:` and push enter.

Once you're in the shipCostCalc directory in cmd we're ready to install the dependencies.
Once you're in the priceCheck directory in cmd we're ready to install the dependencies.
Run the following command to install dependencies

`pip3 install -r requirements.txt`

**Using the Tool**
Run the script by running the following command from the shipCostCalc folder in cmd.
You could also run it directly from the scripts folder using `./ships.py`.
Run the script by running the following command from the priceCheck folder in cmd.
You could also run it directly from the scripts folder using `./pcheck.py`.

Run it directly using:
`scripts/ships.py`
`scripts/pcheck.py`

If that doesn't work try using python directly:
`python3 scripts/ships.py`
`python3 scripts/pcheck.py`

I've now added a few options as well as a help menu.
`--help` for the help menu. e.g `scripts/ships.py --help`
`-m` or`--market` to select your market ahead of the menu. e.g `scripts/ships.py -m rens`
`--help` for the help menu. e.g `scripts/pcheck.py --help`
`-m` or`--market` to select your market ahead of the menu. e.g `scripts/pcheck.py -m rens`
`-s` or `--single` for a single item price check. **__This works with any item!__** Just be sure to spell it correctly and if it has
spaces enclose it in single quotes. e.g `scripts/ships.py -s 'hobgoblin ii'`
These options can be used together. e.g `scripts/ships.py -s 'hobgoblin ii' -m rens` for a quick price check.
spaces enclose it in single quotes. e.g `scripts/pcheck.py -s 'hobgoblin ii'`
These options can be used together. e.g `scripts/pcheck.py -s 'hobgoblin ii' -m rens` for a quick price check.

I hope this will be useful for everyone and not just those wishing to build ships now.

Use the `--help` flag for help:
`scripts/ships.py --help`
`scripts/pcheck.py --help`

**Notes**
`python3` and `pip3` executable name may rely on your version installed.
@@ -72,7 +72,7 @@ If `python3`/`pip3` does not work, the following are worth trying:

**For the Future**
Please make an issue on what ship people would most like to see added next using
the [templates](https://github.com/Jeklah/shipCostCalc/tree/master/.github/ISSUE_TEMPLATE) in the .github folder and make an issue on [the issue page](https://github.com/Jeklah/shipCostCalc/issues) using it so I can keep track of what's most wanted.
the [templates](https://github.com/Jeklah/priceCheck/tree/master/.github/ISSUE_TEMPLATE) in the .github folder and make an issue on [the issue page](https://github.com/Jeklah/priceCheck/issues) using it so I can keep track of what's most wanted.
Just add your name to an open ship issue to vote, to avoid duplicate ship threads.
I plan on adding research time into this, how deep would everyone like me to go? Add your name to the issue I will create along with
any comments regarding this.
109 changes: 59 additions & 50 deletions scripts/eveConsts.py
Original file line number Diff line number Diff line change
@@ -4,59 +4,68 @@
# Author: Jeklah
# Date: 10/05/2020

ptIndex = 1 # Index for the indicator value of partindex in shipPartCounts
countIndex = 1 # Index for the indicator value of countindex in shipPartCounts
shipIndex = 0 # Index for the name of the ship in shipPartCounts
partIndex = 2 # Index for when partIndex is 2 in shipPartCounts.
minPrice = 2 # Index for minimum price at a market.i
shipList = [] # Initalising shipList.
pt_index = 1 # Index for the indicator value of partindex in ship_part_counts
count_index = 1 # Index for the indicator value of countindex in ship_part_counts
ship_index = 0 # Index for the name of the ship in ship_part_counts
part_index = 2 # Index for when part_index is 2 in ship_part_counts.
min_price = 2 # Index for minimum price at a market.i
ship_list = [] # Initalising ship_list.

oreList = [
'Tritanium',
'Pyerite',
'Isogen',
'Megacyte',
'Mexallon',
'Nocxium',
'Zydrine'
]
ore_list = [
'Tritanium',
'Pyerite',
'Isogen',
'Megacyte',
'Mexallon',
'Nocxium',
'Zydrine'
]

marketList = [
'jita',
'hek',
'amarr',
'rens',
'dodixie'
]
market_list = [
'jita',
'hek',
'amarr',
'rens',
'dodixie'
]

capitalPartsList = [
'Capital Armor Plates',
'Capital Capacitor Battery',
'Capital Cargo Bay',
'Capital Computer System',
'Capital Construction Parts',
'Capital Corporate Hangar Bay',
'Capital Sensor Cluster',
'Capital Ship Maintenance Bay',
'Capital Propulsion Engine',
'Capital Clone Vat Bay',
'Capital Drone Bay',
'Capital Jump Drive',
'Capital Power Generator',
'Capital Shield Emitter'
]
capital_parts_list = [
'Capital Armor Plates',
'Capital Capacitor Battery',
'Capital Cargo Bay',
'Capital Computer System',
'Capital Construction Parts',
'Capital Corporate Hangar Bay',
'Capital Sensor Cluster',
'Capital Ship Maintenance Bay',
'Capital Propulsion Engine',
'Capital Clone Vat Bay',
'Capital Drone Bay',
'Capital Jump Drive',
'Capital Power Generator',
'Capital Shield Emitter'
]

shipPartCounts = [
(('Orca'), ('partIndex', '1', '2', '3', '4', '5', '6', '7'), ('count', '9', '35', '7', '15', '4', '4', '7')),
(('Obelisk'), ('partIndex', '0', '2', '4', '8'), ('count', '15', '81', '51', '16')),
(('Venture'), ('oreIndex', '2', '4', '5', '1', '0', '6'), ('count', '400', '670', '45', '6700', '22401', '20')),
(('Providence'), ('partIndex', '0', '2', '4', '8'), ('count', '16', '75', '48', '20')),
(('Caracal'), ('oreIndex', '2', '3', '4', '5', '1', '0', '6'), ('count', '9400', '501', '33001', '3000', '110000', '490000', '1260')),
(('Gila'), ('oreIndex', '2', '3', '4', '5', '1', '0', '6'), ('count', '8719', '321', '35917', '2149', '138810', '552921', '1082')),
(('Tristan'), ('oreIndex', '2', '3', '4', '5', '1', '0', '6'), ('count', '300', '2', '2700', '71', '5700', '21000', '20')),
(('Rattlesnake'), ('oreIndex', '2', '3', '4', '5', '1', '0', '6'), ('count', '148876', '5745', '602482', '37478', '2471520', '10150680', '18185')),
(('Rorqual'), ('partIndex', '0', '1', '2', '9', '3', '4', '5', '10', '11', '12', '8', '6', '13', '7'), ('count', '7', '10', '20', '30', '30', '40', '16', '6', '10', '10', '9', '9', '9', '30')),
ship_part_counts = [
(('Orca'), ('part_index', '1', '2', '3', '4', '5', '6', '7'),
('count', '9', '35', '7', '15', '4', '4', '7')),
(('Obelisk'), ('part_index', '0', '2', '4', '8'),
('count', '15', '81', '51', '16')),
(('Venture'), ('oreIndex', '2', '4', '5', '1', '0', '6'),
('count', '400', '670', '45', '6700', '22401', '20')),
(('Providence'), ('part_index', '0', '2', '4', '8'),
('count', '16', '75', '48', '20')),
(('Caracal'), ('oreIndex', '2', '3', '4', '5', '1', '0', '6'),
('count', '9400', '501', '33001', '3000', '110000', '490000', '1260')),
(('Gila'), ('oreIndex', '2', '3', '4', '5', '1', '0', '6'),
('count', '8719', '321', '35917', '2149', '138810', '552921', '1082')),
(('Tristan'), ('oreIndex', '2', '3', '4', '5', '1', '0', '6'),
('count', '300', '2', '2700', '71', '5700', '21000', '20')),
(('Rattlesnake'), ('oreIndex', '2', '3', '4', '5', '1', '0', '6'), ('count',
'148876', '5745', '602482', '37478', '2471520', '10150680', '18185')),
(('Rorqual'), ('part_index', '0', '1', '2', '9', '3', '4', '5', '10', '11', '12', '8', '6', '13',
'7'), ('count', '7', '10', '20', '30', '30', '40', '16', '6', '10', '10', '9', '9', '9', '30')),
]

for ship in shipPartCounts:
shipList.append(ship[shipIndex])
for ship in ship_part_counts:
ship_list.append(ship[ship_index])
Loading