vos-data-utils 1.0.3__tar.gz → 1.0.4__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 vos-data-utils might be problematic. Click here for more details.

Files changed (51) hide show
  1. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/PKG-INFO +19 -1
  2. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/README.md +14 -0
  3. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/__init__.py +2 -2
  4. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/bjd.py +14 -13
  5. vos_data_utils-1.0.4/vdutils/data/bjd/20240801/bjd.txt +49871 -0
  6. vos_data_utils-1.0.4/vdutils/data/bjd/20240801/bjd_changed.txt +8604 -0
  7. vos_data_utils-1.0.4/vdutils/data/bjd/20240801/bjd_current.txt +20562 -0
  8. vos_data_utils-1.0.4/vdutils/data/bjd/20240801/bjd_frequency_dictionary.txt +11291 -0
  9. vos_data_utils-1.0.4/vdutils/data/bjd/20240801/bjd_smallest.txt +9787 -0
  10. vos_data_utils-1.0.4/vdutils/data/bjd/20240801/multiple_word_sgg_list.txt +65 -0
  11. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/tests/test_convaddr.py +32 -0
  12. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vos_data_utils.egg-info/PKG-INFO +19 -1
  13. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vos_data_utils.egg-info/SOURCES.txt +6 -0
  14. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/setup.cfg +0 -0
  15. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/setup.py +0 -0
  16. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/bjdconnector.py +0 -0
  17. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/convaddr.py +0 -0
  18. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/cordate.py +0 -0
  19. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/__init__.py +0 -0
  20. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20230701/bjd.txt +0 -0
  21. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20230701/bjd_changed.txt +0 -0
  22. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20230701/bjd_current.txt +0 -0
  23. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20230701/bjd_frequency_dictionary.txt +0 -0
  24. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20230701/bjd_smallest.txt +0 -0
  25. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20230701/multiple_word_sgg_list.txt +0 -0
  26. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240118/bjd.txt +0 -0
  27. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240118/bjd_changed.txt +0 -0
  28. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240118/bjd_current.txt +0 -0
  29. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240118/bjd_frequency_dictionary.txt +0 -0
  30. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240118/bjd_smallest.txt +0 -0
  31. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240118/multiple_word_sgg_list.txt +0 -0
  32. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240201/bjd.txt +0 -0
  33. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240201/bjd_changed.txt +0 -0
  34. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240201/bjd_current.txt +0 -0
  35. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240201/bjd_frequency_dictionary.txt +0 -0
  36. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240201/bjd_smallest.txt +0 -0
  37. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/bjd/20240201/multiple_word_sgg_list.txt +0 -0
  38. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/data/date/date_dictionary.txt +0 -0
  39. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/genpnu.py +0 -0
  40. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/library/__init__.py +0 -0
  41. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/library/data.py +0 -0
  42. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/tests/__init__.py +0 -0
  43. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/tests/test_cordate.py +0 -0
  44. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/tests/test_genpnu.py +0 -0
  45. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/tests/test_vid.py +0 -0
  46. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/tests/tests.py +0 -0
  47. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vdutils/vid.py +0 -0
  48. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vos_data_utils.egg-info/dependency_links.txt +0 -0
  49. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vos_data_utils.egg-info/entry_points.txt +0 -0
  50. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vos_data_utils.egg-info/requires.txt +0 -0
  51. {vos-data-utils-1.0.3 → vos_data_utils-1.0.4}/vos_data_utils.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vos-data-utils
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: description
5
5
  Author: ValueOfSpace
6
6
  Author-email: dev@valueofspace.com
@@ -14,6 +14,10 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Requires-Python: >=3.7
16
16
  Description-Content-Type: text/markdown
17
+ Requires-Dist: symspellpy
18
+ Requires-Dist: pandas
19
+ Requires-Dist: requests
20
+ Requires-Dist: python-dotenv
17
21
 
18
22
  vos-data-utils <br>
19
23
  [![PyPI version](https://badge.fury.io/py/vos-data-utils.svg)](https://pypi.org/project/vos-data-utils/)
@@ -84,6 +88,20 @@ vos-data-utils is a shared utility library essential for 'Value of Space' data w
84
88
  - 업데이트
85
89
  - 날짜 빈도 dictionary 업데이트
86
90
 
91
+ </details>
92
+ <details>
93
+ <summary><strong>Version 1.0.4 - 2024.08</strong></summary>
94
+
95
+ <div style="color: gray;">
96
+
97
+ - 업데이트
98
+ - 법정동 데이터 업데이트(행정구역 변경사항 반영)
99
+ - 2024년 8월 1일: '경상북도 성주군 금수강산면' 관련 행정구역 변경
100
+ - 날짜 빈도 학습 모델 업데이트
101
+ - 날짜 빈도 학습 모델 생성시 이상데이터 필터링 강화, 이상치 탐지 z-score 조정
102
+ - 날짜 빈도 dictionary 업데이트
103
+ - 유닛 테스트 코드(`test_convaddr`) 업데이트
104
+
87
105
  </details>
88
106
  </br>
89
107
 
@@ -67,6 +67,20 @@ vos-data-utils is a shared utility library essential for 'Value of Space' data w
67
67
  - 업데이트
68
68
  - 날짜 빈도 dictionary 업데이트
69
69
 
70
+ </details>
71
+ <details>
72
+ <summary><strong>Version 1.0.4 - 2024.08</strong></summary>
73
+
74
+ <div style="color: gray;">
75
+
76
+ - 업데이트
77
+ - 법정동 데이터 업데이트(행정구역 변경사항 반영)
78
+ - 2024년 8월 1일: '경상북도 성주군 금수강산면' 관련 행정구역 변경
79
+ - 날짜 빈도 학습 모델 업데이트
80
+ - 날짜 빈도 학습 모델 생성시 이상데이터 필터링 강화, 이상치 탐지 z-score 조정
81
+ - 날짜 빈도 dictionary 업데이트
82
+ - 유닛 테스트 코드(`test_convaddr`) 업데이트
83
+
70
84
  </details>
71
85
  </br>
72
86
 
@@ -10,11 +10,11 @@ Correction function to align with the current legal district by reflecting chang
10
10
  Conversion function to transform address strings into Parcel Number (PNU)
11
11
  Generation function for unique transaction case IDs in ValueofSpace
12
12
  """
13
- version = "1.0.3"
13
+ version = "1.0.4"
14
14
  author = "ValueOfSpace"
15
15
  description = "description"
16
16
  license = "MIT License"
17
- python_version = "3.7, 3.8, 3.9, 3.10, 3.11"
17
+ python_version = "3.8, 3.9, 3.10, 3.11"
18
18
 
19
19
  def __version__():
20
20
  return version
@@ -35,10 +35,10 @@ class Bjd():
35
35
  load_dotenv()
36
36
  try: self.api_key: str = os.environ['BJD_API_KEY']
37
37
  except: self.api_key = None
38
- try: self.api_key: str = os.environ['BJD_API_BASE_URL'] # https://www.data.go.kr/iim/api/selectAPIAcountView.do
39
- except: self.api_key = None
40
- try: self.api_key: str = os.environ['BJD_API_SUB_URL'] # https://www.data.go.kr/data/15063424/fileData.do#layer-api-guide API 목록 중 국토교통부_전국 법정동_20230710 GET
41
- except: self.api_key = None
38
+ try: self.api_base_url: str = os.environ['BJD_API_BASE_URL'] # https://www.data.go.kr/iim/api/selectAPIAcountView.do
39
+ except: self.api_base_url = None
40
+ try: self.api_get_url: str = os.environ['BJD_API_SUB_URL'] # https://www.data.go.kr/data/15063424/fileData.do#layer-api-guide API 목록 중 국토교통부_전국 법정동_20230710 GET
41
+ except: self.api_get_url = None
42
42
 
43
43
  self.sep = __sep__
44
44
  self.index = __index__
@@ -92,6 +92,7 @@ class Bjd():
92
92
  api_page = self.api_page
93
93
  while True:
94
94
  api_url = f"{self.api_base_url}{self.api_get_url}?page={api_page}&perPage={self.api_per_page}&serviceKey={self.api_key}"
95
+ print(api_url)
95
96
  response = self._request_api(api_url)
96
97
  json_datas = self._convert_json(response)
97
98
  if json_datas['data']:
@@ -281,9 +282,9 @@ class Bjd():
281
282
  self._create_bjd()
282
283
  self.bjd_api_df.to_csv(
283
284
  self.file_name_bjd,
284
- encoding=self.output_encoding,
285
- sep=self.output_sep,
286
- index=self.output_index
285
+ encoding=self.encoding,
286
+ sep=self.sep,
287
+ index=self.index
287
288
  )
288
289
  self.logger.info("Success Saved Bjd Dataframe To Text File")
289
290
  if self.multiple_word_sgg_list is not None:
@@ -357,9 +358,9 @@ class CurrentBjd(Bjd):
357
358
  self._create_current_bjd()
358
359
  self.current_bjd_df.to_csv(
359
360
  self.file_name_bjd_current,
360
- encoding=self.output_encoding,
361
- sep=self.output_sep,
362
- index=self.output_index
361
+ encoding=self.encoding,
362
+ sep=self.sep,
363
+ index=self.index
363
364
  )
364
365
  self.logger.info("Success Saved Current Bjd Dataframe To Text File")
365
366
 
@@ -481,9 +482,9 @@ class ChangedBjd(Bjd):
481
482
  self._create_changed_bjd()
482
483
  self.changed_bjd_df.to_csv(
483
484
  self.file_name_bjd_changed,
484
- encoding=self.output_encoding,
485
- sep=self.output_sep,
486
- index=self.output_index
485
+ encoding=self.encoding,
486
+ sep=self.sep,
487
+ index=self.index
487
488
  )
488
489
  self.logger.info("Success Saved Changed Bjd Dataframe To Text File")
489
490