Skip to content

Instantly share code, notes, and snippets.

@CopperyMarrow15
CopperyMarrow15 / __main__.py
Created June 16, 2021 14:05
Astroneer Soil to Resource Calculator
resources = {'compound':4, 'resin':4, 'organic':4, 'clay':3, 'quartz':2, 'graphite':1, 'ammonium':.5, 'laterite':1.5, 'malachite':1.5, 'wolframite':1, 'hematite':1, 'sphalerite':3, 'titanite':.75, 'lithium':.375}
resource = small_canisters = medium_canisters = None
print('This calculator will calculate the amount of a resource one can obtain in Astroneer from a specified amount of soil. The resources that can not be obtained with a Soil Centrifuge can be obtained with a Trade Platform by obtaining Clay with a Soil Centrifige, smelting it, crafting it into a Drill Mod 1, and shredding it for 1.5 Scrap.\nby CopperyMarrow15')
while resource not in resources.keys():
resource = input('(Type a resource that can be traded for.) convert soil to ').lower()
def small_canister_input():
@CopperyMarrow15
CopperyMarrow15 / Python 3 PyPI Uploader.bat
Last active June 18, 2021 23:28
an easy way to upload Python packages to PyPI
@echo off
set ORIGINAL_DIR=%CD%
:pypath
set /p PY_INSTALLATION=Enter Python 3 installation path. (ex: C:\Python38):
cd %PY_INSTALLATION%
if exist python.exe (if exist Scripts\pip.exe (python -m pip install --user --upgrade setuptools wheel twine)) else (goto pypath) else (goto pypath)