diff --git a/.gitmodules b/.gitmodules index c92efcc..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,18 +0,0 @@ -[submodule "PyCryptsy"] - path = PyCryptsy - url = https://github.com/salfter/PyCryptsy -[submodule "python-bittrex"] - path = python-bittrex - url = https://github.com/ericsomdahl/python-bittrex -[submodule "PyCCEX"] - path = PyCCEX - url = https://github.com/salfter/PyCCEX -[submodule "PyCryptopia"] - path = PyCryptopia - url = https://github.com/salfter/PyCryptopia -[submodule "poloniex"] - path = poloniex - url = https://github.com/salfter/poloniex -[submodule "bleuBot"] - path = bleuBot - url = https://github.com/Durendal/bleuBot diff --git a/ProfitLib.py b/ProfitLib.py index a360f8f..503d596 100755 --- a/ProfitLib.py +++ b/ProfitLib.py @@ -27,17 +27,11 @@ import bitcoinrpc import jsonrpc import sys from decimal import * -sys.path.insert(0, './PyCryptsy/') from PyCryptsy import PyCryptsy -sys.path.insert(0, './python-bittrex/bittrex/') -from bittrex import Bittrex -sys.path.insert(0, './PyCCEX/') +from bittrex import bittrex as Bittrex from PyCCEX import PyCCEX -sys.path.insert(0, './PyCryptopia/') from PyCryptopia import PyCryptopia -sys.path.insert(0, "./poloniex/") from poloniex import poloniex -sys.path.insert(0, "./bleuBot/") from bleuBot import bleuBot class ProfitLib: @@ -52,7 +46,7 @@ class ProfitLib: if (exch=="cryptsy"): self.api[exch]=PyCryptsy(str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) elif (exch=="bittrex"): - self.api[exch]=Bittrex(str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) + self.api[exch]=Bittrex.Bittrex(str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) elif (exch=="c-cex"): self.api[exch]=PyCCEX(str(credentials[exch]["key"])) elif (exch=="cryptopia"): diff --git a/PyCCEX b/PyCCEX deleted file mode 160000 index cca2b91..0000000 --- a/PyCCEX +++ /dev/null @@ -1 +0,0 @@ -Subproject commit cca2b918de96eaf83a2daa7fd978d0db5dc5d93a diff --git a/PyCryptopia b/PyCryptopia deleted file mode 160000 index 31c9932..0000000 --- a/PyCryptopia +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 31c99325eee7f5c73d2ad272b90a95b4fd4fb6b0 diff --git a/PyCryptsy b/PyCryptsy deleted file mode 160000 index 384b984..0000000 --- a/PyCryptsy +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 384b9844dd98cd8afea892d4ebfd2efa36c677ba diff --git a/balances.py b/balances.py index d5572a5..de3ce97 100755 --- a/balances.py +++ b/balances.py @@ -37,7 +37,6 @@ pl.GetMarketIDs() balances={} btcbal=Decimal(0) for i, coin in enumerate(daemons): - print coin if (daemons[coin]["active"]==1): url="http://"+daemons[coin]["username"]+":"+daemons[coin]["passwd"]+"@"+daemons[coin]["host"]+":"+str(daemons[coin]["port"]) b=jsonrpc.ServiceProxy(url) diff --git a/bleuBot b/bleuBot deleted file mode 160000 index 5c12827..0000000 --- a/bleuBot +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5c1282777adb6b25b781baf4ee8d58bebe73ae92 diff --git a/poloniex b/poloniex deleted file mode 160000 index 9963182..0000000 --- a/poloniex +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 99631825fe7fdfa4dbf5df1b6880a95b0cc88d52 diff --git a/python-bittrex b/python-bittrex deleted file mode 160000 index b728f33..0000000 --- a/python-bittrex +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b728f33ebb41c945e46c7189ea6ac4573690883b diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..49917cc --- /dev/null +++ b/setup.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python +from setuptools import setup, find_packages +import os + + +def read(fname): + return open(os.path.join(os.path.dirname(__file__), fname)).read() + + +setup( + name='ProfitLib', + version='0.1', + description='altcoin mining profitability calculator', + long_description=read('README.md'), + url='https://github.com/salfter/ProfitLib', + py_modules=['ProfitLib'], + zip_safe=False, + install_requires=["bitcoinrpc","jsonrpc","PyCryptsy","python-bittrex","PyCCEX","PyCryptopia","poloniex","bleuBot"], + classifiers=[ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Software Development :: Libraries', + ], +)