goldhand 16.11__tar.gz → 17.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of goldhand might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: goldhand
3
- Version: 16.11
3
+ Version: 17.3
4
4
  Summary: A package working with financial data
5
5
  Home-page: https://github.com/misrori/goldhand
6
6
  Author: Mihaly
@@ -8,14 +8,23 @@ Author-email: ormraat.pte@gmail.com
8
8
  License: MIT
9
9
  Description-Content-Type: text/markdown
10
10
  Requires-Dist: pandas_datareader
11
- Requires-Dist: pandas
11
+ Requires-Dist: pandas==2.2.2
12
12
  Requires-Dist: pandas_ta
13
13
  Requires-Dist: plotly
14
14
  Requires-Dist: scipy
15
+ Requires-Dist: numpy==1.26.4
15
16
  Requires-Dist: numpy
16
17
  Requires-Dist: requests
17
18
  Requires-Dist: cloudscraper
18
19
  Requires-Dist: tqdm
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: description
23
+ Dynamic: description-content-type
24
+ Dynamic: home-page
25
+ Dynamic: license
26
+ Dynamic: requires-dist
27
+ Dynamic: summary
19
28
 
20
29
 
21
30
  # [Goldhand](https://github.com/misrori/goldhand)
@@ -131,21 +131,23 @@ class Tw:
131
131
  - ticker: ticker of the stock
132
132
  Return: Summary of the stock or crypto to be used as plotly title
133
133
  """
134
-
135
- if '-USD' in ticker:
136
- # crypto
137
- coin = self.crypto.loc[self.crypto['ticker']==ticker].iloc[0]
138
- plotly_title = f"{coin['base_currency_desc']} ({coin['base_currency']})<br>💲{self.moneystring(coin['market_cap_calc'])} | {', '.join(coin['crypto_common_categories'])}"
139
-
140
- elif ticker in self.etf['name'].tolist() :
141
- # ETF
142
- t = self.etf.loc[self.etf['name']==ticker].iloc[0]
143
- plotly_title = f"{t['description']} ({t['name']}) | 💲{round(t['close'], 2)} <br>AUM:💲{self.moneystring(t['aum'])} | {t['focus.tr']} | Expense ratio {t['expense_ratio']}"
144
- else:
145
- # stock
146
- t = self.get_one_stock_info(ticker)
147
- plotly_title = f"{t['name']} ({t['ticker']}) | 💲{round(t['price'], 2)} | {t['sector']} | {t['industry']} <br>💲{t['market_cap_text']} | 👨‍💼 {round(t['n_emp']):,} <br>Sector location: {t['sec_loc']} | Industry location: {t['ind_loc']}"
148
- return(plotly_title)
134
+ try:
135
+ if '-USD' in ticker:
136
+ # crypto
137
+ coin = self.crypto.loc[self.crypto['ticker']==ticker].iloc[0]
138
+ plotly_title = f"{coin['base_currency_desc']} ({coin['base_currency']})<br>💲{self.moneystring(coin['market_cap_calc'])} | {', '.join(coin['crypto_common_categories'])}"
139
+
140
+ elif ticker in self.etf['name'].tolist() :
141
+ # ETF
142
+ t = self.etf.loc[self.etf['name']==ticker].iloc[0]
143
+ plotly_title = f"{t['description']} ({t['name']}) | 💲{round(t['close'], 2)} <br>AUM:💲{self.moneystring(t['aum'])} | {t['focus.tr']} | Expense ratio {t['expense_ratio']}"
144
+ else:
145
+ # stock
146
+ t = self.get_one_stock_info(ticker)
147
+ plotly_title = f"{t['name']} ({t['ticker']}) | 💲{round(t['price'], 2)} | {t['sector']} | {t['industry']} <br>💲{t['market_cap_text']} | 👨‍💼 {round(t['n_emp']):,} <br>Sector location: {t['sec_loc']} | Industry location: {t['ind_loc']}"
148
+ return(plotly_title)
149
+ except:
150
+ return(f"{ticker}")
149
151
 
150
152
 
151
153
  def get_sec_plot(self, ticker):
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: goldhand
3
- Version: 16.11
3
+ Version: 17.3
4
4
  Summary: A package working with financial data
5
5
  Home-page: https://github.com/misrori/goldhand
6
6
  Author: Mihaly
@@ -8,14 +8,23 @@ Author-email: ormraat.pte@gmail.com
8
8
  License: MIT
9
9
  Description-Content-Type: text/markdown
10
10
  Requires-Dist: pandas_datareader
11
- Requires-Dist: pandas
11
+ Requires-Dist: pandas==2.2.2
12
12
  Requires-Dist: pandas_ta
13
13
  Requires-Dist: plotly
14
14
  Requires-Dist: scipy
15
+ Requires-Dist: numpy==1.26.4
15
16
  Requires-Dist: numpy
16
17
  Requires-Dist: requests
17
18
  Requires-Dist: cloudscraper
18
19
  Requires-Dist: tqdm
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: description
23
+ Dynamic: description-content-type
24
+ Dynamic: home-page
25
+ Dynamic: license
26
+ Dynamic: requires-dist
27
+ Dynamic: summary
19
28
 
20
29
 
21
30
  # [Goldhand](https://github.com/misrori/goldhand)
@@ -1,8 +1,9 @@
1
1
  pandas_datareader
2
- pandas
2
+ pandas==2.2.2
3
3
  pandas_ta
4
4
  plotly
5
5
  scipy
6
+ numpy==1.26.4
6
7
  numpy
7
8
  requests
8
9
  cloudscraper
@@ -8,13 +8,13 @@ long_description = (this_directory / "README.md").read_text()
8
8
 
9
9
  setup(
10
10
  name="goldhand",
11
- version="16.11",
11
+ version="17.3",
12
12
  author="Mihaly",
13
13
  author_email="ormraat.pte@gmail.com",
14
14
  description="A package working with financial data",
15
15
  url="https://github.com/misrori/goldhand",
16
16
  license="MIT",
17
- install_requires=['pandas_datareader', 'pandas', 'pandas_ta', 'plotly', 'scipy',
17
+ install_requires=['pandas_datareader', 'pandas==2.2.2', 'pandas_ta', 'plotly', 'scipy', 'numpy==1.26.4',
18
18
  'numpy', 'requests', 'cloudscraper', 'tqdm'],
19
19
  packages=find_packages(),
20
20
  # other arguments omitted
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes