Skip to content

Commit

Permalink
Release v2022.08.0 (#137)
Browse files Browse the repository at this point in the history
# Updates
1. #136
2. #135
1. #134 
2. #133
  • Loading branch information
vlad-isayko authored Aug 2, 2022
1 parent f6ec947 commit ff4a9b3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osci/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2022.06.0'
__version__ = '2022.08.0'
4 changes: 4 additions & 0 deletions osci/config/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,7 @@ def github_token(self) -> str:
@property
def default_company(self) -> str:
return self.__cfg.get('company', dict()).get('default', '')

@property
def spark_conf(self) -> Dict[str, str]:
return self.__cfg.get('spark', dict())
2 changes: 2 additions & 0 deletions osci/config/files/default.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
meta:
config_source: 'yaml'
spark:
spark.driver.memory: 6g
file_system:
type: 'local'
base_path: '/data'
Expand Down
2 changes: 2 additions & 0 deletions osci/jobs/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def __init__(self, spark_session=None):

def build_session(self):
builder = SparkSession.builder
for param, value in Config().spark_conf.items():
builder = builder.config(param, value)
self._ssc = builder.getOrCreate()

@property
Expand Down
5 changes: 5 additions & 0 deletions osci/preprocess/match_company/company_domain_match_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
- agaric.com
industry: Technology
regex:
- company: Aiven
domains:
- aiven.io
industry: Technology
regex:
- company: Alfresco
domains:
- alfresco.com
Expand Down
2 changes: 1 addition & 1 deletion osci/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ six==1.13.0
XlsxWriter==1.2.3
Jinja2==2.11.3
deepmerge==0.1.1
numpy==1.19.5
numpy==1.22.0
python-dateutil==2.8.1

0 comments on commit ff4a9b3

Please sign in to comment.