rdxz2-utill 0.0.5__py3-none-any.whl → 0.0.6__py3-none-any.whl

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 rdxz2-utill might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdxz2-utill
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Summary: Your daily Python utility
5
5
  Author-email: Richard Dharmawan <richard.dharmawan@gmail.com>
6
6
  License: MIT License
@@ -25,29 +25,29 @@ License: MIT License
25
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
26
  SOFTWARE.
27
27
  Classifier: Programming Language :: Python :: 3
28
- Classifier: Programming Language :: Python :: 3.12
28
+ Classifier: Programming Language :: Python :: 3.10
29
29
  Classifier: Programming Language :: Python :: 3 :: Only
30
30
  Classifier: License :: OSI Approved :: MIT License
31
31
  Classifier: Operating System :: OS Independent
32
- Requires-Python: >=3.12
32
+ Requires-Python: >=3.10
33
33
  Description-Content-Type: text/markdown
34
34
  License-File: LICENSE
35
- Requires-Dist: click==8.1.8
36
- Requires-Dist: duckdb==1.1.3
37
- Requires-Dist: humanize==4.11.0
38
- Requires-Dist: loguru==0.7.3
39
- Requires-Dist: paramiko==3.5.0
40
- Requires-Dist: pydantic-settings==2.7.1
41
- Requires-Dist: pydantic==2.10.6
42
- Requires-Dist: requests==2.32.3
35
+ Requires-Dist: click
36
+ Requires-Dist: duckdb
37
+ Requires-Dist: humanize
38
+ Requires-Dist: loguru
39
+ Requires-Dist: paramiko
40
+ Requires-Dist: pydantic-settings
41
+ Requires-Dist: pydantic
42
+ Requires-Dist: requests
43
43
  Requires-Dist: sshtunnel==0.4.0
44
44
  Provides-Extra: google-cloud
45
- Requires-Dist: google-cloud-bigquery==3.29.0; extra == "google-cloud"
46
- Requires-Dist: google-cloud-storage==3.0.0; extra == "google-cloud"
45
+ Requires-Dist: google-cloud-bigquery; extra == "google-cloud"
46
+ Requires-Dist: google-cloud-storage; extra == "google-cloud"
47
47
  Provides-Extra: postgresql
48
- Requires-Dist: psycopg==3.2.2; extra == "postgresql"
48
+ Requires-Dist: psycopg; extra == "postgresql"
49
49
  Provides-Extra: pdf
50
- Requires-Dist: PyPDF2==3.0.1; extra == "pdf"
50
+ Requires-Dist: PyPDF2; extra == "pdf"
51
51
  Dynamic: license-file
52
52
 
53
53
  # Using this library
@@ -1,4 +1,4 @@
1
- rdxz2_utill-0.0.5.dist-info/licenses/LICENSE,sha256=PF9CUvzP8XFYopEAzrMzSCovF7RdBdscPqJCDC6KjPc,1073
1
+ rdxz2_utill-0.0.6.dist-info/licenses/LICENSE,sha256=PF9CUvzP8XFYopEAzrMzSCovF7RdBdscPqJCDC6KjPc,1073
2
2
  utill/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  utill/my_bq.py,sha256=V2MVVciiAR8n840Cr7hFeTuisCPEQDyhjLMM6CCwQFE,14676
4
4
  utill/my_compare.py,sha256=oGK4fEAQYZqy2FH-jqRSvxANL9SsEoEaq5GOCMGoNXI,918
@@ -13,7 +13,7 @@ utill/my_gcs.py,sha256=u9rZr4e6XLLFK1QC9JknMwBeNX5MWOnVq1W50U5Jt14,4032
13
13
  utill/my_input.py,sha256=OyKLoutXpwISReltuL_Gw2oojv16tYWJqQpqabBOQx4,350
14
14
  utill/my_json.py,sha256=WgW6mavGhfs4h1N5XbhsDnRk2dbh_ttJWdJUj4iWDN4,1473
15
15
  utill/my_mb.py,sha256=3_A5kXHgnkxGbd38vK5t5MfFcj84lohjS7C2OtlSo30,14841
16
- utill/my_pg.py,sha256=_kBNfm2SoUFXv3R3lFMC1RmSG8pWYnojvnfpNGYEAhU,6682
16
+ utill/my_pg.py,sha256=_ENi6qo1fOnidtGndkw8_nDkZzFmtX7sdw8pdKJvmRg,6695
17
17
  utill/my_queue.py,sha256=hINP4_yjmboSjHgo1J3CtPm2X9SE3HfczyED3ip7nfk,1930
18
18
  utill/my_string.py,sha256=pINYFR1ligTyVZYzV8P_FolCsZQwYE1jaFNTuQ3XS_8,833
19
19
  utill/my_style.py,sha256=Wy6j4WL9RgGeX6cS9hhlOrufc9UC4UPTQ5UJa0ZJ3Yo,900
@@ -28,8 +28,8 @@ utill/cmd/_pg.py,sha256=RVxEiSifyIwMDYDM69vt6WSLdVDr1cMzY6r4T2PzNRA,492
28
28
  utill/cmd/utill.py,sha256=TlHfiwOUcK1m58PrRCjX9sARiPYZUsoTk-KOTCOz1vM,3558
29
29
  utill/templates/mb.json,sha256=M46ZHSaSh4rbD_KGUViGr2B2ZV8_PC-O5Evqi35JK5g,59
30
30
  utill/templates/pg.json,sha256=LkJt0VV3zcyt7Tpn6gulsoVQgUc-9uImXOStvzu8cdU,271
31
- rdxz2_utill-0.0.5.dist-info/METADATA,sha256=64FDWzC8IqvqPrKxrmFZ8gKCZGIqpw70L0ns-_DeVnM,4489
32
- rdxz2_utill-0.0.5.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
33
- rdxz2_utill-0.0.5.dist-info/entry_points.txt,sha256=9n5NWz5Wi9jDvYhB_81_4icgT5xABZ-QivHD8ibcafg,47
34
- rdxz2_utill-0.0.5.dist-info/top_level.txt,sha256=tuAYZoCsr02JYbpZj7I6fl1IIo53v3GG0uoj-_fINVk,6
35
- rdxz2_utill-0.0.5.dist-info/RECORD,,
31
+ rdxz2_utill-0.0.6.dist-info/METADATA,sha256=L7Nc_lgDT_ucB8Aqi3kvxSaK4Jw9stJc_jOL9GEmnbo,4401
32
+ rdxz2_utill-0.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
+ rdxz2_utill-0.0.6.dist-info/entry_points.txt,sha256=9n5NWz5Wi9jDvYhB_81_4icgT5xABZ-QivHD8ibcafg,47
34
+ rdxz2_utill-0.0.6.dist-info/top_level.txt,sha256=tuAYZoCsr02JYbpZj7I6fl1IIo53v3GG0uoj-_fINVk,6
35
+ rdxz2_utill-0.0.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
utill/my_pg.py CHANGED
@@ -100,7 +100,7 @@ class PG:
100
100
  f.write(data)
101
101
 
102
102
  def pg_to_pg(self, pg: "PG", src_table_name: str, dst_table_name: str, cols: list[str] = None) -> None:
103
- tmp_filename = generate_random_string() + '.csv'
103
+ tmp_filename = generate_random_string(alphanum=True) + '.csv'
104
104
  cols_str = ','.join([f'"{x}"' for x in cols]) if (cols is not None and cols != []) else '*'
105
105
  try:
106
106
  self.download_csv(f'SELECT {cols_str} FROM {src_table_name}', tmp_filename)