-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
106 lines (74 loc) · 2.73 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
from setuptools import setup
from pycoinmon.metadata import Metadata
metadata = Metadata()
def requirements():
"""Build the requirements list for this project"""
requirements_list = []
with open('requirements.txt') as requirements:
for install in requirements:
requirements_list.append(install.strip())
return requirements_list
long_description = """"
🐍 Python Port 🐍 Based on `COINMON`_
💰 Cryptocurrency price ticker CLI.
Check cryptocurrencies’ prices, changes on your console. Best CLI tool
for those who are both **Crypto investors** and **Engineers**.
All data comes from `coinmarketcap.com`_ APIs.
Installation
------------
You can install or upgrade pycoinmon with:
``$ pip install pycoinmon --upgrade``
Or you can install from source with:
::
$ git clone https://github.com/RDCH106/pycoinmon.git --recursive
$ cd pycoinmon
$ pip install .
Usage
-----
To check the top 10 cryptocurrencies ranked by their market cap, simply
execute
::
$ pycoinmon
Options
~~~~~~~
You can use the ``-c`` (or ``--convert``) with the fiat currency symbol
to find in terms of another currency. The default currency is USD and it
supports AUD, BRL, CAD, CHF, CLP, CNY, CZK, DKK, EUR, GBP, HKD, HUF,
IDR, ILS, INR, JPY, KRW, MXN, MYR, NOK, NZD, PHP, PKR, PLN, RUB, SEK,
SGD, THB, TRY, TWD, ZAR.
::
$ pycoinmon -c eur // convert prices to Euro
$ pycoinmon -c jpy // convert prices to Yen
You can use the ``-t`` (or ``--top``) with the index to find the top n
cryptocurrencies ranked by their market cap.
::
$ pycoinmon -t 50 // find top 50
$ pycoinmon -t 1000 // find top 1000
You can use the ``-h`` (or ``--help``) to find all valid options of
pycoinmon
::
$ pycoinmon -h
.. _COINMON: https://github.com/bichenkk/coinmon
.. _coinmarketcap.com: https://coinmarketcap.com/
"""
setup(
name = 'pycoinmon',
packages = ['pycoinmon'],
install_requires = requirements(),
version = metadata.get_version(),
license = 'MIT',
description = 'Python Port Based on COINMON',
long_description= long_description,
url = 'https://github.com/RDCH106/pycoinmon',
entry_points={
'console_scripts': ['pycoinmon=pycoinmon.main:main'],
},
keywords = ['bitcoin', 'criptocurrency', 'crypto', 'ticker', 'python', 'cli', 'price-tracker', 'command-line'],
classifiers = ['Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'],
)