finance-enums 0.1.0__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.
@@ -0,0 +1,3 @@
1
+ prune tests
2
+
3
+ include requirements.txt
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 1.1
2
+ Name: finance_enums
3
+ Version: 0.1.0
4
+ Summary: Standard Finance enums
5
+ Home-page: https://github.com/timkpaine/finance_enums
6
+ Author: Tim Paine
7
+ Author-email: timothy.k.paine@gmail.com
8
+ License: Apache 2.0
9
+ Download-URL: https://github.com/timkpaine/finance_enums/archive/v0.1.0.tar.gz
10
+ Description: # finance_enums
11
+ Standard Financial Enumerations
12
+
13
+ # Sectors
14
+ - US
15
+
16
+ # Industries
17
+ - US
18
+
19
+ Keywords: finance data
20
+ Platform: UNKNOWN
21
+ Classifier: Development Status :: 3 - Alpha
22
+ Classifier: Programming Language :: Python :: 2
23
+ Classifier: Programming Language :: Python :: 2.7
24
+ Classifier: Programming Language :: Python :: 3
25
+ Classifier: Programming Language :: Python :: 3.3
26
+ Classifier: Programming Language :: Python :: 3.4
27
+ Classifier: Programming Language :: Python :: 3.5
28
+ Classifier: Programming Language :: Python :: 3.6
29
+ Classifier: Programming Language :: Python :: 3.7
@@ -0,0 +1,8 @@
1
+ # finance_enums
2
+ Standard Financial Enumerations
3
+
4
+ # Sectors
5
+ - US
6
+
7
+ # Industries
8
+ - US
@@ -0,0 +1 @@
1
+ from .sectors.us import US_SECTORS, US_INDUSTRIES, US_SECTORS_MAP
File without changes
@@ -0,0 +1,87 @@
1
+ import itertools
2
+
3
+
4
+ US_SECTORS_MAP = {
5
+ 'Consumer Discretionary': [
6
+ 'Auto Components',
7
+ 'Automobiles',
8
+ 'Distributors',
9
+ 'Diversified Consumer Services',
10
+ 'Hotels, Restaurants & Leisure',
11
+ 'Household Durables',
12
+ 'Internet & Catalog Retail',
13
+ 'Leisure Products',
14
+ 'Media',
15
+ 'Multiline Retail',
16
+ 'Specialty Retail',
17
+ 'Textiles, Apparel & Luxury Goods'],
18
+ 'Consumer Staples': [
19
+ 'Beverages',
20
+ 'Food & Staples Retailing',
21
+ 'Food Products',
22
+ 'Household Products',
23
+ 'Personal Products',
24
+ 'Tobacco'],
25
+ 'Energy': [
26
+ 'Energy Equipment & Services',
27
+ 'Oil, Gas & Consumable Fuels'],
28
+ 'Financials': [
29
+ 'Banks',
30
+ 'Capital Markets',
31
+ 'Consumer Finance',
32
+ 'Diversified Financial Services',
33
+ 'Insurance',
34
+ 'Mortgage REITs',
35
+ 'Thrifts & Mortgage Finance'],
36
+ 'Health Care': [
37
+ 'Biotechnology',
38
+ 'Health Care Equipment & Supplies',
39
+ 'Health Care Providers & Services',
40
+ 'Health Care Technology',
41
+ 'Life Sciences Tools & Services',
42
+ 'Pharmaceuticals'],
43
+ 'Industrials': [
44
+ 'Aerospace & Defense',
45
+ 'Air Freight & Logistics',
46
+ 'Airlines',
47
+ 'Building Products',
48
+ 'Commercial Services & Supplies',
49
+ 'Construction & Engineering',
50
+ 'Electrical Equipment',
51
+ 'Industrial Conglomerates',
52
+ 'Machinery',
53
+ 'Marine',
54
+ 'Professional Services',
55
+ 'Road & Rail',
56
+ 'Trading Companies & Distributors',
57
+ 'Transportation Infrastructure'],
58
+ 'Information Technology': [
59
+ 'Communications Equipment',
60
+ 'Electronic Equipment, Instruments & Components',
61
+ 'IT Services',
62
+ 'Internet Software & Services',
63
+ 'Semiconductors & Semiconductor Equipment',
64
+ 'Software',
65
+ 'Technology Hardware, Storage & Peripherals'],
66
+ 'Materials': [
67
+ 'Chemicals',
68
+ 'Construction Materials',
69
+ 'Containers & Packaging',
70
+ 'Metals & Mining',
71
+ 'Paper & Forest Products'],
72
+ 'Real Estate': [
73
+ 'Equity Real Estate Investment Trusts',
74
+ 'Real Estate Management & Development'],
75
+ 'Telecommunication Services': [
76
+ 'Diversified Telecommunication Services',
77
+ 'Wireless Telecommunication Services'],
78
+ 'Utilities': [
79
+ 'Electric Utilities',
80
+ 'Gas Utilities',
81
+ 'Independent Power and Renewable Electricity Producers',
82
+ 'Multi-Utilities',
83
+ 'Water Utilities ']
84
+ }
85
+
86
+ US_SECTORS = set(US_SECTORS_MAP.keys())
87
+ US_INDUSTRIES = set(itertools.chain(*US_SECTORS_MAP.values()))
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 1.1
2
+ Name: finance-enums
3
+ Version: 0.1.0
4
+ Summary: Standard Finance enums
5
+ Home-page: https://github.com/timkpaine/finance_enums
6
+ Author: Tim Paine
7
+ Author-email: timothy.k.paine@gmail.com
8
+ License: Apache 2.0
9
+ Download-URL: https://github.com/timkpaine/finance_enums/archive/v0.1.0.tar.gz
10
+ Description: # finance_enums
11
+ Standard Financial Enumerations
12
+
13
+ # Sectors
14
+ - US
15
+
16
+ # Industries
17
+ - US
18
+
19
+ Keywords: finance data
20
+ Platform: UNKNOWN
21
+ Classifier: Development Status :: 3 - Alpha
22
+ Classifier: Programming Language :: Python :: 2
23
+ Classifier: Programming Language :: Python :: 2.7
24
+ Classifier: Programming Language :: Python :: 3
25
+ Classifier: Programming Language :: Python :: 3.3
26
+ Classifier: Programming Language :: Python :: 3.4
27
+ Classifier: Programming Language :: Python :: 3.5
28
+ Classifier: Programming Language :: Python :: 3.6
29
+ Classifier: Programming Language :: Python :: 3.7
@@ -0,0 +1,12 @@
1
+ MANIFEST.in
2
+ README.md
3
+ requirements.txt
4
+ setup.cfg
5
+ setup.py
6
+ finance_enums/__init__.py
7
+ finance_enums.egg-info/PKG-INFO
8
+ finance_enums.egg-info/SOURCES.txt
9
+ finance_enums.egg-info/dependency_links.txt
10
+ finance_enums.egg-info/top_level.txt
11
+ finance_enums/sectors/__init__.py
12
+ finance_enums/sectors/us.py
@@ -0,0 +1 @@
1
+ finance_enums
File without changes
@@ -0,0 +1,10 @@
1
+ [bdist_wheel]
2
+ universal = 1
3
+
4
+ [metadata]
5
+ description_file = README.md
6
+
7
+ [egg_info]
8
+ tag_build =
9
+ tag_date = 0
10
+
@@ -0,0 +1,39 @@
1
+ from setuptools import setup, find_packages
2
+ from codecs import open
3
+ from os import path
4
+
5
+ here = path.abspath(path.dirname(__file__))
6
+
7
+ with open(path.join(here, 'README.md'), encoding='utf-8') as f:
8
+ long_description = f.read()
9
+
10
+ with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
11
+ requires = f.read().split()
12
+
13
+ setup(
14
+ name='finance_enums',
15
+ version='0.1.0',
16
+ description='Standard Finance enums',
17
+ long_description=long_description,
18
+ url='https://github.com/timkpaine/finance_enums',
19
+ download_url='https://github.com/timkpaine/finance_enums/archive/v0.1.0.tar.gz',
20
+ author='Tim Paine',
21
+ author_email='timothy.k.paine@gmail.com',
22
+ license='Apache 2.0',
23
+
24
+ classifiers=[
25
+ 'Development Status :: 3 - Alpha',
26
+ 'Programming Language :: Python :: 2',
27
+ 'Programming Language :: Python :: 2.7',
28
+ 'Programming Language :: Python :: 3',
29
+ 'Programming Language :: Python :: 3.3',
30
+ 'Programming Language :: Python :: 3.4',
31
+ 'Programming Language :: Python :: 3.5',
32
+ 'Programming Language :: Python :: 3.6',
33
+ 'Programming Language :: Python :: 3.7',
34
+ ],
35
+
36
+ keywords='finance data',
37
+ packages=find_packages(exclude=[]),
38
+ install_requires=requires
39
+ )