2023-12-14T16:09:36,379 Created temporary directory: /tmp/pip-build-tracker-fo9o0t8f 2023-12-14T16:09:36,381 Initialized build tracking at /tmp/pip-build-tracker-fo9o0t8f 2023-12-14T16:09:36,381 Created build tracker: /tmp/pip-build-tracker-fo9o0t8f 2023-12-14T16:09:36,382 Entered build tracker: /tmp/pip-build-tracker-fo9o0t8f 2023-12-14T16:09:36,382 Created temporary directory: /tmp/pip-wheel-pf62gp2q 2023-12-14T16:09:36,386 Created temporary directory: /tmp/pip-ephem-wheel-cache-7_iekqbt 2023-12-14T16:09:36,408 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2023-12-14T16:09:36,411 2 location(s) to search for versions of wrds2pg: 2023-12-14T16:09:36,411 * https://pypi.org/simple/wrds2pg/ 2023-12-14T16:09:36,411 * https://www.piwheels.org/simple/wrds2pg/ 2023-12-14T16:09:36,412 Fetching project page and analyzing links: https://pypi.org/simple/wrds2pg/ 2023-12-14T16:09:36,412 Getting page https://pypi.org/simple/wrds2pg/ 2023-12-14T16:09:36,414 Found index url https://pypi.org/simple/ 2023-12-14T16:09:36,628 Fetched page https://pypi.org/simple/wrds2pg/ as application/vnd.pypi.simple.v1+json 2023-12-14T16:09:36,640 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/36/4d/10bef13832bdc17990beac4a20b47a77976768547aa4bd6137cbafd46f83/wrds2pg-0.1.17-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,641 Found link https://files.pythonhosted.org/packages/ae/9c/ee0b12002821c2c8e21625c915081fc315d9f1ceef100cb330e9116f2d0d/wrds2pg-0.1.17.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.17 2023-12-14T16:09:36,641 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/ac/24/35ec84d1b765955286a326d0f0c98423730b5818f33c5cdc3e2a2d528adf/wrds2pg-0.1.18-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,642 Found link https://files.pythonhosted.org/packages/dd/4f/6c631513b90802ad1fae0c3fb3dbf65efc603d3fee00a1cae4af45f6b2c5/wrds2pg-0.1.18.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.18 2023-12-14T16:09:36,643 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/42/1a/cbdac7035e9b7836ed96c6a9e493b556d3f595245c4f0b239c9ba639d53e/wrds2pg-0.1.20-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,644 Found link https://files.pythonhosted.org/packages/14/81/4c94b875ec21dccdefb6a1846bc4f4d4a6a529a0a6921cbbf580e07f8b6b/wrds2pg-0.1.20.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.20 2023-12-14T16:09:36,645 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/e7/a1/192e3bf4b1e122d0b12a094f4ee4fd1667276cb87cbe5d0a53412dc1a9bc/wrds2pg-0.1.21-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,646 Found link https://files.pythonhosted.org/packages/4d/4c/5fa9cc2e936e16d0be4a56ce2e8cf03b3ba0f59f49afdebd29f1eda99df4/wrds2pg-0.1.21.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.21 2023-12-14T16:09:36,646 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/4a/52/d9134119b39cf9e939e7cc5ab1317627406af4229fcbdf1085df366e01b4/wrds2pg-0.1.22-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,647 Found link https://files.pythonhosted.org/packages/5b/db/ebbf903d32ac113cdd0b3637f1e5dc37a4abf9f63f18dd56835f3611a465/wrds2pg-0.1.22.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.22 2023-12-14T16:09:36,648 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/c9/47/a040be2f7d67c120396a27beb1f5e3a6eb97fd24e17cd485ec6d332dad6e/wrds2pg-0.1.23-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,649 Found link https://files.pythonhosted.org/packages/4e/aa/b4f4227ff1d464462f243592bddd638d07e886aa39018ef2bb486624e2f5/wrds2pg-0.1.23.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.23 2023-12-14T16:09:36,650 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/7b/bf/a713b52aff61a20e5e9d851a69d7c4936d14018ed62759dd78629bfe12cf/wrds2pg-0.1.24-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,651 Found link https://files.pythonhosted.org/packages/ca/e9/81095cbac75110e7f53e915ebee06a9925bb32b6d8a307c7a709f9b74dd5/wrds2pg-0.1.24.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.24 2023-12-14T16:09:36,651 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/01/5d/cfd9a9cfe8194d52e16c24ef053b49225e85f0996c471226fc0cf5522e31/wrds2pg-1.0.0-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,652 Found link https://files.pythonhosted.org/packages/af/8f/069eed28514231a859da3b110112a0b2078f2c879e3cc5489909982ef2af/wrds2pg-1.0.0.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.0 2023-12-14T16:09:36,653 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/90/3d/1fc327c68c63a7540a964879a5a124e9104c5a80cd058a5f0659d2945dd5/wrds2pg-1.0.2-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,654 Found link https://files.pythonhosted.org/packages/fa/b0/49292467a2256c3ecdd7e7fdbd1c4729386bddc06f3a986483a311539f2b/wrds2pg-1.0.2.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.2 2023-12-14T16:09:36,654 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/41/99/2866d67e2fcd10684ccc913eaa896ebcc00c60982133a5adfaa8a39b7aa1/wrds2pg-1.0.3-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,655 Found link https://files.pythonhosted.org/packages/0f/bf/b1032fff1645c597e292ac8d588c33bad73ca567c01e52fb149f4aa503d1/wrds2pg-1.0.3.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.3 2023-12-14T16:09:36,656 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/0b/6c/bc13811b3a339ec1455a10a03b077d0a7fc7e43b3311201abbfc67d77fde/wrds2pg-1.0.4-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,657 Found link https://files.pythonhosted.org/packages/dc/f4/166d8822216116c22615377ab6493a7c44bd205b8853ae2b0ad51792d9e6/wrds2pg-1.0.4.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.4 2023-12-14T16:09:36,657 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/78/a7/afce414cb2df44692f2dd5af0e28578c349e337110fb7c73b893cef3c048/wrds2pg-1.0.5-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,658 Found link https://files.pythonhosted.org/packages/64/a7/18d7edab1e04462bf1aafd2fe6ffc9132f0aa11be6daaf14927c532b73d3/wrds2pg-1.0.5.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.5 2023-12-14T16:09:36,659 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/2b/8f/02f345286a6b878468948ab7bc6a56026077f0cbfb25d11440284519ba7a/wrds2pg-1.0.6-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,660 Found link https://files.pythonhosted.org/packages/8c/06/abb4c39f3e3f730fffe349e03e1172e31c95fbb9edf4c9257bfb0b6e2c62/wrds2pg-1.0.6.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.6 2023-12-14T16:09:36,661 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/3f/b5/99b90fee6aaf0b150803cfbd6d86e0052d292257dd101e803df4d945ad7b/wrds2pg-1.0.8-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,661 Found link https://files.pythonhosted.org/packages/eb/9f/a506b309ee9299d4d9cd3f5c1407e05da30c09cbbe8acf67e60de11a1b4e/wrds2pg-1.0.8.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.8 2023-12-14T16:09:36,662 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/80/6d/34291718af062c4c329fbaeaaa582e011da15ce1193364f668581c3bd983/wrds2pg-1.0.9-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,663 Found link https://files.pythonhosted.org/packages/27/20/2b9788aef9e54ea3d590a456caa294d1c177fd05029e8f70b99022369f68/wrds2pg-1.0.9.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.9 2023-12-14T16:09:36,664 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/99/ac/4d765cf6d5048798219506138f491e7218d56226bd1d4a1ab994e5efcf33/wrds2pg-1.0.10-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,665 Found link https://files.pythonhosted.org/packages/f4/6a/630cd948c36f331db42c9bac9e414e721e779efbb692210419563d9f4ec1/wrds2pg-1.0.10.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.10 2023-12-14T16:09:36,666 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/4b/8f/7a43a074a7f9fb3b14acbe6a7fdfe50e99d8489334adcc941ed6b4ca328b/wrds2pg-1.0.11-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,666 Found link https://files.pythonhosted.org/packages/e8/2b/f8c9e8ea4d651a9e15946e91b9f1708582a8631b6a76ddb16ad9275bb7a5/wrds2pg-1.0.11.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.11 2023-12-14T16:09:36,667 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/20/62/e4cff4d188653aa99e511ec9db794706d3e0eca3a072847c47b59fb281ba/wrds2pg-1.0.12-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,668 Found link https://files.pythonhosted.org/packages/14/9c/6db066ea90188c63fbacdfb53d2efd52e3ffb2f86ac229616b5ded27dabb/wrds2pg-1.0.12.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.12 2023-12-14T16:09:36,668 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/00/0d/9122175d258c706db78ca1df2f46092a8f7caf9b85bb55fbb05bf8149b43/wrds2pg-1.0.13-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,669 Found link https://files.pythonhosted.org/packages/21/32/ed7df674875559e6afaacdfe2a846a78e88355b187349fb0890a00a9c87b/wrds2pg-1.0.13.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.13 2023-12-14T16:09:36,670 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/98/27/a36bbe15df3fdbcf27a96e7a5b5f48c13d379465e4daf4889b5fd556eea0/wrds2pg-1.0.14-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,671 Found link https://files.pythonhosted.org/packages/30/5c/79161fc26f5a5c96b45c5d9f96c49164b7e32ff106d04ba0e6bf2e321b05/wrds2pg-1.0.14.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.14 2023-12-14T16:09:36,672 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/6f/56/b5f28563dbd278bc973e9b09d08b701083b92dc9facf367208f412bae2b1/wrds2pg-1.0.15-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,672 Found link https://files.pythonhosted.org/packages/7f/ae/a9479ffa558cb219a91c2233d27c8cb0a1151361563f417f9a49414f9a9a/wrds2pg-1.0.15.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.15 2023-12-14T16:09:36,673 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/bd/a2/1d66cc227f78fb727160e17d625347dd9ce5a4934e9dc670946b36cb4a92/wrds2pg-1.0.16-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,674 Found link https://files.pythonhosted.org/packages/ec/17/b23b515c3360befddb0e907abe4226ddfdd0573d7924902fc835f9619fce/wrds2pg-1.0.16.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.16 2023-12-14T16:09:36,675 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/49/e4/64ec56d95ae7ca0c1fe4b799b5754885b5b8c9d8142d6467a146b098ca35/wrds2pg-1.0.17-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,676 Found link https://files.pythonhosted.org/packages/75/70/98e83341d542d3326bce285d748f86da9228a911370d23255e177dbe3789/wrds2pg-1.0.17.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.17 2023-12-14T16:09:36,676 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/88/8d/834a67d927ed1035f5b44fdf0756a52bf6c7e5e6dd00bbc84a0c3fbc31bd/wrds2pg-1.0.18-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,677 Found link https://files.pythonhosted.org/packages/89/ee/528ff63a2445d7054239dd15a2dcf61a8e38dfdddf15ea922fb2d5f4fb3b/wrds2pg-1.0.18.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.18 2023-12-14T16:09:36,678 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/7e/02/034253d7a78408fc49066aa8b18b8c3551ed8048c86be057f59273d88b98/wrds2pg-1.0.19-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,678 Found link https://files.pythonhosted.org/packages/62/f5/b9ecfd4c1bd880f989962d37c49eec1d2772088a2185aa089ac972cb56ca/wrds2pg-1.0.19.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.19 2023-12-14T16:09:36,679 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/1e/c9/7e25410937513695c83098cdd4ae2444f75d17ec0136f8d3e7b11cbb4774/wrds2pg-1.0.20-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,680 Found link https://files.pythonhosted.org/packages/46/0b/8302005418956f8f63cb59c0af8484a1af4bfee961f142d653047184dc95/wrds2pg-1.0.20.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.20 2023-12-14T16:09:36,680 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/c0/c1/c85866829efe728ce4b7efe13acfe2853ba0e9a4b9db031870c11a5c05e7/wrds2pg-1.0.21-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,681 Found link https://files.pythonhosted.org/packages/7a/f6/ed1edc24bed4c3637625a06ede755f8b8cea5fcff8e5e571b83d577b6249/wrds2pg-1.0.21.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.21 2023-12-14T16:09:36,682 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/0e/e6/8a32b9a2d443a03ae9568a7bb49610fea1b01e834ee29fe7edaf2be7c928/wrds2pg-1.0.22-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,683 Found link https://files.pythonhosted.org/packages/b2/74/4fb8f203d6e29830f73b747d1fbc0137b1051b1f227e99adc8e7c1ff304e/wrds2pg-1.0.22.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.22 2023-12-14T16:09:36,683 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/0d/fe/17ec0fbf04f828dfb33ee28087c99f8a2cb3b88c106c8f4b1dccf170edd5/wrds2pg-1.0.23-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,684 Found link https://files.pythonhosted.org/packages/25/5d/38b9f9e952975898c2c79b1c76afbe5f7b2d78f9b28db3a65cda30e49bc5/wrds2pg-1.0.23.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.23 2023-12-14T16:09:36,685 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/3d/56/52a54ccca6cb47522854c34d05cb333588fa3fd01854575995ff5b249139/wrds2pg-1.0.24-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,686 Found link https://files.pythonhosted.org/packages/46/8f/65d741e63fa2bf4cb8de88769e55d9f07e45266ae95f5b3db7ae1cd77403/wrds2pg-1.0.24.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.24 2023-12-14T16:09:36,687 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/9f/02/d7768f1a97f8917022645706118e976fc63dc6bf9150434d2f49891b14e9/wrds2pg-1.0.25-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,687 Found link https://files.pythonhosted.org/packages/f2/e7/3e5775d0c26ea942095df0c1a880d4dd0c897ffa61e774824acf20e9d1d6/wrds2pg-1.0.25.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.25 2023-12-14T16:09:36,688 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/d2/6b/745d21e21f68fb715dc1ad1b046ea8031189fea06bb7d42d48ffa55e3a8a/wrds2pg-1.0.26-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,689 Found link https://files.pythonhosted.org/packages/3a/a5/5181ce6c86c2059025738941c88f37c22bfcd528f2932281c9d779f422b4/wrds2pg-1.0.26.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.26 2023-12-14T16:09:36,689 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/d6/32/3bb968da3f4cbe924ee22fedc5ffb1b6111ecb910f68c9905a201770b15d/wrds2pg-1.0.27-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,690 Found link https://files.pythonhosted.org/packages/74/0a/7d02353b0ab90e16e9e25c24b22479b5e970eb71bd0112e3551b82b8a83d/wrds2pg-1.0.27.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.27 2023-12-14T16:09:36,691 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/ff/9f/82752980530af457c4e98ddb4bf9e93cd0ba17aa518a2a58beacc82ac394/wrds2pg-1.0.29-py3-none-any.whl (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,691 Found link https://files.pythonhosted.org/packages/87/0a/a1af8143105d2af6548cd97485028be675040e1c2b261df5ecb553be2323/wrds2pg-1.0.29.tar.gz (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.29 2023-12-14T16:09:36,692 Fetching project page and analyzing links: https://www.piwheels.org/simple/wrds2pg/ 2023-12-14T16:09:36,693 Getting page https://www.piwheels.org/simple/wrds2pg/ 2023-12-14T16:09:36,694 Found index url https://www.piwheels.org/simple/ 2023-12-14T16:09:36,851 Fetched page https://www.piwheels.org/simple/wrds2pg/ as text/html 2023-12-14T16:09:36,861 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.27-py3-none-any.whl#sha256=9223e74c2cf7a6963dbc89981ef07efd322784dbd6bb2cc34f41285784657ddf (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,862 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.26-py3-none-any.whl#sha256=bf4c9aee7ec6db12956e51469680fba7f955e161359dcf50983608d19fb50d2b (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,862 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.25-py3-none-any.whl#sha256=ef9a415cb88f8ca6c0fb4a27abdec4f3db793e804c37d98f75b66abab20cb88b (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,863 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.24-py3-none-any.whl#sha256=7384c63ede6fffe6aa9764b8f4688ec660d35d97879587a4f6ef223ccca565bc (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,863 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.23-py3-none-any.whl#sha256=c3d00616b05071c6d571976d1aac35b5bd12e89663a8e6c3cd8ce7d6bbb2be5b (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,864 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.22-py3-none-any.whl#sha256=f65676481292ee2d04c0a56929cbb35c1827cabd9bd3bd9fcb13c0ef4c3148a0 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,865 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.21-py3-none-any.whl#sha256=6c23f3276d89be161c84e241077eef4e7c11506e74646c5c118aa2002f6ab2f0 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,865 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.20-py3-none-any.whl#sha256=ed305eccfd7f2b37f24ac42a6ed548a20b2bbe7eaed050bb37ebb2f672dea1e0 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,865 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.19-py3-none-any.whl#sha256=6979a3bb64e7c881ec3403e97c60d351155ef3d5f083149e785180b8f9929daa (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,866 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.18-py3-none-any.whl#sha256=0970135447d68b94dc197fa962f947d92967207bac9a08776eb9b1690918d523 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,866 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.17-py3-none-any.whl#sha256=381f568a66ebb1a992cc9ca11b938ef34d98788ce84e7367b53b53fe2564326d (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,867 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.16-py3-none-any.whl#sha256=b42a003e724ff3690da66991638a7180c1b39d37529ed63df71168693a20f532 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,867 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.15-py3-none-any.whl#sha256=d8d869592634a4a6230d73cb1fd31a0b954cd53251250d096d8c28a269527d0c (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,868 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.14-py3-none-any.whl#sha256=53fe3952f56473e22acc56e2dfd684dcf50d6e10ae4df2b9564d783a0323f3cc (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,868 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.13-py3-none-any.whl#sha256=dbb6b8140842cdf6dd074f31a847e5a7d6901706af211e0aff676dfb0a2dc5d5 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,869 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.12-py3-none-any.whl#sha256=a49ec8094e122aa39eaf87b3eaf04951ba358b7de814db7232d3d23db0ee7321 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,869 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.11-py3-none-any.whl#sha256=10c887b1d51113a546d42a5ff5c773acceb67e44b4dbc7f2c8e185e146bdbe3b (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,870 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.10-py3-none-any.whl#sha256=d7a91f736c8b935d21aaef6d5b729044c3b27fa3fe740e21bf54aeece56e3f13 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,871 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.9-py3-none-any.whl#sha256=544627010f3f3125f38a8b442475cb841a1e7b63e9644d7ed1c98245e5e8ffeb (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,871 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.8-py3-none-any.whl#sha256=4bca52110d40065aada2ca48ed090ab85a34add55c09c804f9586fd454ae3205 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,872 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.6-py3-none-any.whl#sha256=ba63b46b31e7f735db37bebf8ad301e976085a10628fcb01be40dbc9325267f9 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,872 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.5-py3-none-any.whl#sha256=21abfd3fabf17eba315d7110979b9ed42f54051f205d859da68568b4699e291b (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,873 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.4-py3-none-any.whl#sha256=8197d920152df0686f6cd8ca31af2f46820802334c63a0991ca0ddd1c215c909 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,873 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.3-py3-none-any.whl#sha256=12de805441cbd63af3d66e6a2c651f8f7d15e77dc5c3714035cd450ea1708785 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,874 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.2-py3-none-any.whl#sha256=73be788eb7aee9fce430717615f683c7f912a817238a33697f41f26b85726147 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,874 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-1.0.0-py3-none-any.whl#sha256=89d17b1aae3ffc78c0c02e87a2f663b83648460da7a8406027d62ae7c9ceb164 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,875 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-0.1.24-py3-none-any.whl#sha256=8bfd551d615500576f778b977f5771b5011d87a962c1d43e8b7aae7c42f6bafb (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,875 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-0.1.23-py3-none-any.whl#sha256=24b5f15364dc798de6d21d3f2d117ce1d7c6e6e0768e8268e7b196943d36d1bd (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,876 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-0.1.22-py3-none-any.whl#sha256=bfa8fbfc09819fe5524153f82e6fc631069dab5096b0013b03aae5600346a2ab (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,876 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-0.1.21-py3-none-any.whl#sha256=f9ab26b51603e3bf82196a52410a990d95685ee6bedc4a88572340686d09affc (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,877 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-0.1.20-py3-none-any.whl#sha256=bdca9bdaa2e54c59f2120c519804dc52bf271a35e03a80dd8b1f65f961f28ff6 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,877 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-0.1.18-py3-none-any.whl#sha256=896ccb2badb2923b55bb6fbe62a8d74604733c8c9c0181b144e2e2f9aabb629c (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,878 Skipping link: No binaries permitted for wrds2pg: https://www.piwheels.org/simple/wrds2pg/wrds2pg-0.1.17-py3-none-any.whl#sha256=3471efec23d7b15c86751d79adc43cb425d7ad46016afc247f1e1992b78083b9 (from https://www.piwheels.org/simple/wrds2pg/) (requires-python:>=3) 2023-12-14T16:09:36,878 Skipping link: not a file: https://www.piwheels.org/simple/wrds2pg/ 2023-12-14T16:09:36,879 Skipping link: not a file: https://pypi.org/simple/wrds2pg/ 2023-12-14T16:09:36,901 Given no hashes to check 1 links for project 'wrds2pg': discarding no candidates 2023-12-14T16:09:36,919 Collecting wrds2pg==1.0.29 2023-12-14T16:09:36,922 Created temporary directory: /tmp/pip-unpack-4xt53d8f 2023-12-14T16:09:37,139 Downloading wrds2pg-1.0.29.tar.gz (15 kB) 2023-12-14T16:09:37,173 Added wrds2pg==1.0.29 from https://files.pythonhosted.org/packages/87/0a/a1af8143105d2af6548cd97485028be675040e1c2b261df5ecb553be2323/wrds2pg-1.0.29.tar.gz to build tracker '/tmp/pip-build-tracker-fo9o0t8f' 2023-12-14T16:09:37,177 Created temporary directory: /tmp/pip-build-env-9es3op_h 2023-12-14T16:09:37,181 Installing build dependencies: started 2023-12-14T16:09:37,182 Running command pip subprocess to install build dependencies 2023-12-14T16:09:38,323 Using pip 23.3.1 from /usr/local/lib/python3.11/dist-packages/pip (python 3.11) 2023-12-14T16:09:38,828 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2023-12-14T16:09:40,267 Collecting setuptools>=42 2023-12-14T16:09:40,282 Using cached https://www.piwheels.org/simple/setuptools/setuptools-69.0.2-py3-none-any.whl (819 kB) 2023-12-14T16:09:40,505 Collecting wheel 2023-12-14T16:09:40,519 Using cached https://www.piwheels.org/simple/wheel/wheel-0.42.0-py3-none-any.whl (65 kB) 2023-12-14T16:09:43,095 Installing collected packages: wheel, setuptools 2023-12-14T16:09:43,318 Creating /tmp/pip-build-env-9es3op_h/overlay/local/bin 2023-12-14T16:09:43,320 changing mode of /tmp/pip-build-env-9es3op_h/overlay/local/bin/wheel to 755 2023-12-14T16:09:45,539 Successfully installed setuptools-69.0.2 wheel-0.42.0 2023-12-14T16:09:46,055 Installing build dependencies: finished with status 'done' 2023-12-14T16:09:46,058 Getting requirements to build wheel: started 2023-12-14T16:09:46,059 Running command Getting requirements to build wheel 2023-12-14T16:09:46,599 # Library to convert WRDS SAS data 2023-12-14T16:09:46,600 This package was created to convert [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) SAS data to modern data formats. 2023-12-14T16:09:46,600 This package has three major functions, one for each of three popular data formats. 2023-12-14T16:09:46,601 - `wrds_update()`: Imports WRDS SAS data into a PostgreSQL database. 2023-12-14T16:09:46,602 - `wrds_update_pq()`: Converts WRDS SAS data to parquet files. 2023-12-14T16:09:46,602 - `wrds_update_csv()`: Converts WRDS SAS data to gzipped CSV files. 2023-12-14T16:09:46,603 This package was primarily designed to handle WRDS data, but some support is provided for importing a local SAS file (`*.sas7dbat`) into a PostgreSQL database. 2023-12-14T16:09:46,604 ## Requirements 2023-12-14T16:09:46,605 ### 1. Python 2023-12-14T16:09:46,606 The software uses Python 3 and depends on Pandas, SQLAlchemy and Paramiko. In addition, the Python scripts generally interact with PostgreSQL using SQLAlchemy and the [Psycopg](http://initd.org/psycopg/) library. 2023-12-14T16:09:46,606 These dependencies are installed when you use Pip (see instructions below). 2023-12-14T16:09:46,607 ### 2. A WRDS ID 2023-12-14T16:09:46,608 To use public-key authentication to access WRDS, follow hints taken from [here](https://debian-administration.org/article/152/Password-less_logins_with_OpenSSH) to set up a public key. 2023-12-14T16:09:46,608 Copy that key to the WRDS server from the terminal on your computer. 2023-12-14T16:09:46,609 (Note that this code assumes you have a directory `.ssh` in your home directory. If not, log into WRDS via SSH, then type `mkdir ~/.ssh` to create this.) 2023-12-14T16:09:46,609 Here's code (for me) to create the key and send it to WRDS: 2023-12-14T16:09:46,610 ``` 2023-12-14T16:09:46,610 ssh-keygen -t rsa 2023-12-14T16:09:46,611 cat ~/.ssh/id_rsa.pub | ssh iangow@wrds-cloud.wharton.upenn.edu "cat >> ~/.ssh/authorized_keys" 2023-12-14T16:09:46,611 ``` 2023-12-14T16:09:46,612 Use an empty passphrase in setting up the key so that the scripts can run without user intervention. 2023-12-14T16:09:46,613 ### 3. PostgreSQL 2023-12-14T16:09:46,613 For the `wrds_update()` function, you should have write access to a PostgreSQL database to store the data. 2023-12-14T16:09:46,614 ### 4. Environment variables 2023-12-14T16:09:46,615 Environment variables that the code can use include: 2023-12-14T16:09:46,616 - `PGDATABASE`: The name of the PostgreSQL database you use. 2023-12-14T16:09:46,616 - `PGUSER`: Your username on the PostgreSQL database. 2023-12-14T16:09:46,616 - `PGHOST`: Where the PostgreSQL database is to be found (this will be `localhost` if its on the same machine as you're running the code on) 2023-12-14T16:09:46,617 - `WRDS_ID`: Your [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) ID. 2023-12-14T16:09:46,617 - `DATA_DIR`: The local repository for parquet files. 2023-12-14T16:09:46,618 - `CSV_DIR`: The local repository for compressed CSV files. 2023-12-14T16:09:46,619 Once can set these environment variables in (say) `~/.zprofile`: 2023-12-14T16:09:46,620 ``` 2023-12-14T16:09:46,620 export PGHOST="localhost" 2023-12-14T16:09:46,621 export PGDATABASE="crsp" 2023-12-14T16:09:46,621 export WRDS_ID="iangow" 2023-12-14T16:09:46,622 export PGUSER="igow" 2023-12-14T16:09:46,622 ``` 2023-12-14T16:09:46,623 ## Using the function `wrds_update`. 2023-12-14T16:09:46,624 Two arguments `table_name` and `schema` are required. 2023-12-14T16:09:46,625 ### 1. WRDS Settings 2023-12-14T16:09:46,626 Set `WRDS_ID` using either `wrds_id=your_wrds_id` in the function call or the environment variable `WRDS_ID`. 2023-12-14T16:09:46,627 ### 2. Environment variables 2023-12-14T16:09:46,627 The `wrds_udpate()` function will use the environment variables `PGHOST`, `PGDATABASE`, and `PGUSER` if you If you have set them. Otherwise, you need to provide values as arguments to `wrds_udpate()`. Default `PGPORT` is`5432`. 2023-12-14T16:09:46,628 ### 3. Table settings 2023-12-14T16:09:46,629 To tailor your request, specify the following arguments: 2023-12-14T16:09:46,630 - `fix_missing`: set to `True` to fix missing values. This addresses special missign values, which SAS's `PROC EXPORT` dumps as strings. Default value is `False`. 2023-12-14T16:09:46,630 - `fix_cr`: set to `True` to fix characters. Default value is `False`. 2023-12-14T16:09:46,631 - `drop`: add column names to be dropped (e.g., `drop="id name"` will drop columns `id` and `name`). 2023-12-14T16:09:46,631 - `obs`: add maxium number of observations (e.g., `obs=10` will import the first 10 rows from the table on WRDS). 2023-12-14T16:09:46,632 - `rename`: rename columns (e.g., `rename="fee=mngt_fee"` renames `fee` to `mngt_fee`). 2023-12-14T16:09:46,632 - `force`: set to `True` to force update. Default value is `False`. 2023-12-14T16:09:46,633 ## Importing SAS data into PostgreSQL 2023-12-14T16:09:46,634 The software can also upload SAS file directly to PostgreSQL. 2023-12-14T16:09:46,634 You need to have local SAS in order to use this function. 2023-12-14T16:09:46,635 Use `fpath` to specify the path to the file to be imported 2023-12-14T16:09:46,636 ### Examples 2023-12-14T16:09:46,636 Here are some examples. 2023-12-14T16:09:46,637 If you are at the home directory of this git repo, you can import and use the software as shown below. 2023-12-14T16:09:46,638 To install it from Github: 2023-12-14T16:09:46,639 ``` 2023-12-14T16:09:46,640 sudo -H pip3 install git+https://github.com/iangow/wrds2pg --upgrade 2023-12-14T16:09:46,640 ``` 2023-12-14T16:09:46,641 This software is also available from PyPI. To install it from [PyPI](https://pypi.org/project/wrds2pg/): 2023-12-14T16:09:46,643 ``` 2023-12-14T16:09:46,644 pip3 install wrds2pg 2023-12-14T16:09:46,645 ``` 2023-12-14T16:09:46,646 Example usage: 2023-12-14T16:09:46,646 ```py 2023-12-14T16:09:46,647 from wrds2pg import wrds_update 2023-12-14T16:09:46,649 # 1. Download crsp.mcti from wrds and upload to pg as crps.mcti 2023-12-14T16:09:46,649 # Simplest version 2023-12-14T16:09:46,650 wrds_update(table_name="mcti", schema="crsp") 2023-12-14T16:09:46,651 # Tailored arguments 2023-12-14T16:09:46,652 wrds_update(table_name="mcti", schema="crsp", host=your_pghost, 2023-12-14T16:09:46,653 dbname=your_pg_database, 2023-12-14T16:09:46,653 fix_missing=True, fix_cr=True, drop="b30ret b30ind", obs=10, 2023-12-14T16:09:46,654 rename="caldt=calendar_date", force=True) 2023-12-14T16:09:46,655 # 2. Upload test.sas7dbat to pg as crsp.mcti 2023-12-14T16:09:46,656 wrds_update(table_name="mcti", schema="crsp", fpath="your_path/test.sas7dbat") 2023-12-14T16:09:46,656 ``` 2023-12-14T16:09:46,658 ### Report bugs 2023-12-14T16:09:46,658 Author: Ian Gow, 2023-12-14T16:09:46,659 Contributors: Jingyu Zhang, , Evan Jo. 2023-12-14T16:09:46,661 running egg_info 2023-12-14T16:09:46,662 writing wrds2pg.egg-info/PKG-INFO 2023-12-14T16:09:46,662 writing dependency_links to wrds2pg.egg-info/dependency_links.txt 2023-12-14T16:09:46,663 writing requirements to wrds2pg.egg-info/requires.txt 2023-12-14T16:09:46,664 writing top-level names to wrds2pg.egg-info/top_level.txt 2023-12-14T16:09:46,664 reading manifest file 'wrds2pg.egg-info/SOURCES.txt' 2023-12-14T16:09:46,665 adding license file 'LICENCE' 2023-12-14T16:09:46,666 writing manifest file 'wrds2pg.egg-info/SOURCES.txt' 2023-12-14T16:09:46,720 Getting requirements to build wheel: finished with status 'done' 2023-12-14T16:09:46,731 Created temporary directory: /tmp/pip-modern-metadata-u7n5tnwh 2023-12-14T16:09:46,733 Preparing metadata (pyproject.toml): started 2023-12-14T16:09:46,734 Running command Preparing metadata (pyproject.toml) 2023-12-14T16:09:47,204 # Library to convert WRDS SAS data 2023-12-14T16:09:47,205 This package was created to convert [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) SAS data to modern data formats. 2023-12-14T16:09:47,206 This package has three major functions, one for each of three popular data formats. 2023-12-14T16:09:47,207 - `wrds_update()`: Imports WRDS SAS data into a PostgreSQL database. 2023-12-14T16:09:47,207 - `wrds_update_pq()`: Converts WRDS SAS data to parquet files. 2023-12-14T16:09:47,208 - `wrds_update_csv()`: Converts WRDS SAS data to gzipped CSV files. 2023-12-14T16:09:47,209 This package was primarily designed to handle WRDS data, but some support is provided for importing a local SAS file (`*.sas7dbat`) into a PostgreSQL database. 2023-12-14T16:09:47,210 ## Requirements 2023-12-14T16:09:47,211 ### 1. Python 2023-12-14T16:09:47,212 The software uses Python 3 and depends on Pandas, SQLAlchemy and Paramiko. In addition, the Python scripts generally interact with PostgreSQL using SQLAlchemy and the [Psycopg](http://initd.org/psycopg/) library. 2023-12-14T16:09:47,212 These dependencies are installed when you use Pip (see instructions below). 2023-12-14T16:09:47,213 ### 2. A WRDS ID 2023-12-14T16:09:47,214 To use public-key authentication to access WRDS, follow hints taken from [here](https://debian-administration.org/article/152/Password-less_logins_with_OpenSSH) to set up a public key. 2023-12-14T16:09:47,215 Copy that key to the WRDS server from the terminal on your computer. 2023-12-14T16:09:47,215 (Note that this code assumes you have a directory `.ssh` in your home directory. If not, log into WRDS via SSH, then type `mkdir ~/.ssh` to create this.) 2023-12-14T16:09:47,216 Here's code (for me) to create the key and send it to WRDS: 2023-12-14T16:09:47,216 ``` 2023-12-14T16:09:47,217 ssh-keygen -t rsa 2023-12-14T16:09:47,217 cat ~/.ssh/id_rsa.pub | ssh iangow@wrds-cloud.wharton.upenn.edu "cat >> ~/.ssh/authorized_keys" 2023-12-14T16:09:47,218 ``` 2023-12-14T16:09:47,218 Use an empty passphrase in setting up the key so that the scripts can run without user intervention. 2023-12-14T16:09:47,220 ### 3. PostgreSQL 2023-12-14T16:09:47,220 For the `wrds_update()` function, you should have write access to a PostgreSQL database to store the data. 2023-12-14T16:09:47,221 ### 4. Environment variables 2023-12-14T16:09:47,222 Environment variables that the code can use include: 2023-12-14T16:09:47,223 - `PGDATABASE`: The name of the PostgreSQL database you use. 2023-12-14T16:09:47,223 - `PGUSER`: Your username on the PostgreSQL database. 2023-12-14T16:09:47,224 - `PGHOST`: Where the PostgreSQL database is to be found (this will be `localhost` if its on the same machine as you're running the code on) 2023-12-14T16:09:47,224 - `WRDS_ID`: Your [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) ID. 2023-12-14T16:09:47,224 - `DATA_DIR`: The local repository for parquet files. 2023-12-14T16:09:47,225 - `CSV_DIR`: The local repository for compressed CSV files. 2023-12-14T16:09:47,226 Once can set these environment variables in (say) `~/.zprofile`: 2023-12-14T16:09:47,227 ``` 2023-12-14T16:09:47,227 export PGHOST="localhost" 2023-12-14T16:09:47,228 export PGDATABASE="crsp" 2023-12-14T16:09:47,228 export WRDS_ID="iangow" 2023-12-14T16:09:47,229 export PGUSER="igow" 2023-12-14T16:09:47,229 ``` 2023-12-14T16:09:47,230 ## Using the function `wrds_update`. 2023-12-14T16:09:47,231 Two arguments `table_name` and `schema` are required. 2023-12-14T16:09:47,232 ### 1. WRDS Settings 2023-12-14T16:09:47,232 Set `WRDS_ID` using either `wrds_id=your_wrds_id` in the function call or the environment variable `WRDS_ID`. 2023-12-14T16:09:47,233 ### 2. Environment variables 2023-12-14T16:09:47,233 The `wrds_udpate()` function will use the environment variables `PGHOST`, `PGDATABASE`, and `PGUSER` if you If you have set them. Otherwise, you need to provide values as arguments to `wrds_udpate()`. Default `PGPORT` is`5432`. 2023-12-14T16:09:47,234 ### 3. Table settings 2023-12-14T16:09:47,235 To tailor your request, specify the following arguments: 2023-12-14T16:09:47,236 - `fix_missing`: set to `True` to fix missing values. This addresses special missign values, which SAS's `PROC EXPORT` dumps as strings. Default value is `False`. 2023-12-14T16:09:47,236 - `fix_cr`: set to `True` to fix characters. Default value is `False`. 2023-12-14T16:09:47,237 - `drop`: add column names to be dropped (e.g., `drop="id name"` will drop columns `id` and `name`). 2023-12-14T16:09:47,237 - `obs`: add maxium number of observations (e.g., `obs=10` will import the first 10 rows from the table on WRDS). 2023-12-14T16:09:47,238 - `rename`: rename columns (e.g., `rename="fee=mngt_fee"` renames `fee` to `mngt_fee`). 2023-12-14T16:09:47,238 - `force`: set to `True` to force update. Default value is `False`. 2023-12-14T16:09:47,239 ## Importing SAS data into PostgreSQL 2023-12-14T16:09:47,240 The software can also upload SAS file directly to PostgreSQL. 2023-12-14T16:09:47,240 You need to have local SAS in order to use this function. 2023-12-14T16:09:47,241 Use `fpath` to specify the path to the file to be imported 2023-12-14T16:09:47,242 ### Examples 2023-12-14T16:09:47,242 Here are some examples. 2023-12-14T16:09:47,243 If you are at the home directory of this git repo, you can import and use the software as shown below. 2023-12-14T16:09:47,244 To install it from Github: 2023-12-14T16:09:47,245 ``` 2023-12-14T16:09:47,246 sudo -H pip3 install git+https://github.com/iangow/wrds2pg --upgrade 2023-12-14T16:09:47,246 ``` 2023-12-14T16:09:47,247 This software is also available from PyPI. To install it from [PyPI](https://pypi.org/project/wrds2pg/): 2023-12-14T16:09:47,248 ``` 2023-12-14T16:09:47,249 pip3 install wrds2pg 2023-12-14T16:09:47,249 ``` 2023-12-14T16:09:47,250 Example usage: 2023-12-14T16:09:47,250 ```py 2023-12-14T16:09:47,251 from wrds2pg import wrds_update 2023-12-14T16:09:47,252 # 1. Download crsp.mcti from wrds and upload to pg as crps.mcti 2023-12-14T16:09:47,253 # Simplest version 2023-12-14T16:09:47,253 wrds_update(table_name="mcti", schema="crsp") 2023-12-14T16:09:47,254 # Tailored arguments 2023-12-14T16:09:47,255 wrds_update(table_name="mcti", schema="crsp", host=your_pghost, 2023-12-14T16:09:47,255 dbname=your_pg_database, 2023-12-14T16:09:47,256 fix_missing=True, fix_cr=True, drop="b30ret b30ind", obs=10, 2023-12-14T16:09:47,256 rename="caldt=calendar_date", force=True) 2023-12-14T16:09:47,257 # 2. Upload test.sas7dbat to pg as crsp.mcti 2023-12-14T16:09:47,257 wrds_update(table_name="mcti", schema="crsp", fpath="your_path/test.sas7dbat") 2023-12-14T16:09:47,258 ``` 2023-12-14T16:09:47,259 ### Report bugs 2023-12-14T16:09:47,259 Author: Ian Gow, 2023-12-14T16:09:47,259 Contributors: Jingyu Zhang, , Evan Jo. 2023-12-14T16:09:47,260 running dist_info 2023-12-14T16:09:47,261 creating /tmp/pip-modern-metadata-u7n5tnwh/wrds2pg.egg-info 2023-12-14T16:09:47,261 writing /tmp/pip-modern-metadata-u7n5tnwh/wrds2pg.egg-info/PKG-INFO 2023-12-14T16:09:47,262 writing dependency_links to /tmp/pip-modern-metadata-u7n5tnwh/wrds2pg.egg-info/dependency_links.txt 2023-12-14T16:09:47,262 writing requirements to /tmp/pip-modern-metadata-u7n5tnwh/wrds2pg.egg-info/requires.txt 2023-12-14T16:09:47,263 writing top-level names to /tmp/pip-modern-metadata-u7n5tnwh/wrds2pg.egg-info/top_level.txt 2023-12-14T16:09:47,263 writing manifest file '/tmp/pip-modern-metadata-u7n5tnwh/wrds2pg.egg-info/SOURCES.txt' 2023-12-14T16:09:47,264 reading manifest file '/tmp/pip-modern-metadata-u7n5tnwh/wrds2pg.egg-info/SOURCES.txt' 2023-12-14T16:09:47,264 adding license file 'LICENCE' 2023-12-14T16:09:47,264 writing manifest file '/tmp/pip-modern-metadata-u7n5tnwh/wrds2pg.egg-info/SOURCES.txt' 2023-12-14T16:09:47,265 creating '/tmp/pip-modern-metadata-u7n5tnwh/wrds2pg-1.0.29.dist-info' 2023-12-14T16:09:47,442 Preparing metadata (pyproject.toml): finished with status 'done' 2023-12-14T16:09:47,446 Source in /tmp/pip-wheel-pf62gp2q/wrds2pg_eec9db97ffe24f86a5df67d19f882b3a has version 1.0.29, which satisfies requirement wrds2pg==1.0.29 from https://files.pythonhosted.org/packages/87/0a/a1af8143105d2af6548cd97485028be675040e1c2b261df5ecb553be2323/wrds2pg-1.0.29.tar.gz 2023-12-14T16:09:47,447 Removed wrds2pg==1.0.29 from https://files.pythonhosted.org/packages/87/0a/a1af8143105d2af6548cd97485028be675040e1c2b261df5ecb553be2323/wrds2pg-1.0.29.tar.gz from build tracker '/tmp/pip-build-tracker-fo9o0t8f' 2023-12-14T16:09:47,453 Created temporary directory: /tmp/pip-unpack-4xv328mp 2023-12-14T16:09:47,454 Created temporary directory: /tmp/pip-unpack-6unw74ed 2023-12-14T16:09:47,462 Building wheels for collected packages: wrds2pg 2023-12-14T16:09:47,466 Created temporary directory: /tmp/pip-wheel-3o93hq28 2023-12-14T16:09:47,466 Destination directory: /tmp/pip-wheel-3o93hq28 2023-12-14T16:09:47,468 Building wheel for wrds2pg (pyproject.toml): started 2023-12-14T16:09:47,469 Running command Building wheel for wrds2pg (pyproject.toml) 2023-12-14T16:09:47,988 # Library to convert WRDS SAS data 2023-12-14T16:09:47,989 This package was created to convert [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) SAS data to modern data formats. 2023-12-14T16:09:47,990 This package has three major functions, one for each of three popular data formats. 2023-12-14T16:09:47,991 - `wrds_update()`: Imports WRDS SAS data into a PostgreSQL database. 2023-12-14T16:09:47,991 - `wrds_update_pq()`: Converts WRDS SAS data to parquet files. 2023-12-14T16:09:47,992 - `wrds_update_csv()`: Converts WRDS SAS data to gzipped CSV files. 2023-12-14T16:09:47,993 This package was primarily designed to handle WRDS data, but some support is provided for importing a local SAS file (`*.sas7dbat`) into a PostgreSQL database. 2023-12-14T16:09:47,994 ## Requirements 2023-12-14T16:09:47,995 ### 1. Python 2023-12-14T16:09:47,996 The software uses Python 3 and depends on Pandas, SQLAlchemy and Paramiko. In addition, the Python scripts generally interact with PostgreSQL using SQLAlchemy and the [Psycopg](http://initd.org/psycopg/) library. 2023-12-14T16:09:47,996 These dependencies are installed when you use Pip (see instructions below). 2023-12-14T16:09:47,998 ### 2. A WRDS ID 2023-12-14T16:09:47,998 To use public-key authentication to access WRDS, follow hints taken from [here](https://debian-administration.org/article/152/Password-less_logins_with_OpenSSH) to set up a public key. 2023-12-14T16:09:47,998 Copy that key to the WRDS server from the terminal on your computer. 2023-12-14T16:09:47,999 (Note that this code assumes you have a directory `.ssh` in your home directory. If not, log into WRDS via SSH, then type `mkdir ~/.ssh` to create this.) 2023-12-14T16:09:47,999 Here's code (for me) to create the key and send it to WRDS: 2023-12-14T16:09:48,000 ``` 2023-12-14T16:09:48,000 ssh-keygen -t rsa 2023-12-14T16:09:48,001 cat ~/.ssh/id_rsa.pub | ssh iangow@wrds-cloud.wharton.upenn.edu "cat >> ~/.ssh/authorized_keys" 2023-12-14T16:09:48,001 ``` 2023-12-14T16:09:48,002 Use an empty passphrase in setting up the key so that the scripts can run without user intervention. 2023-12-14T16:09:48,002 ### 3. PostgreSQL 2023-12-14T16:09:48,003 For the `wrds_update()` function, you should have write access to a PostgreSQL database to store the data. 2023-12-14T16:09:48,004 ### 4. Environment variables 2023-12-14T16:09:48,005 Environment variables that the code can use include: 2023-12-14T16:09:48,006 - `PGDATABASE`: The name of the PostgreSQL database you use. 2023-12-14T16:09:48,006 - `PGUSER`: Your username on the PostgreSQL database. 2023-12-14T16:09:48,007 - `PGHOST`: Where the PostgreSQL database is to be found (this will be `localhost` if its on the same machine as you're running the code on) 2023-12-14T16:09:48,007 - `WRDS_ID`: Your [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) ID. 2023-12-14T16:09:48,008 - `DATA_DIR`: The local repository for parquet files. 2023-12-14T16:09:48,008 - `CSV_DIR`: The local repository for compressed CSV files. 2023-12-14T16:09:48,010 Once can set these environment variables in (say) `~/.zprofile`: 2023-12-14T16:09:48,011 ``` 2023-12-14T16:09:48,011 export PGHOST="localhost" 2023-12-14T16:09:48,012 export PGDATABASE="crsp" 2023-12-14T16:09:48,013 export WRDS_ID="iangow" 2023-12-14T16:09:48,013 export PGUSER="igow" 2023-12-14T16:09:48,014 ``` 2023-12-14T16:09:48,015 ## Using the function `wrds_update`. 2023-12-14T16:09:48,016 Two arguments `table_name` and `schema` are required. 2023-12-14T16:09:48,017 ### 1. WRDS Settings 2023-12-14T16:09:48,017 Set `WRDS_ID` using either `wrds_id=your_wrds_id` in the function call or the environment variable `WRDS_ID`. 2023-12-14T16:09:48,019 ### 2. Environment variables 2023-12-14T16:09:48,019 The `wrds_udpate()` function will use the environment variables `PGHOST`, `PGDATABASE`, and `PGUSER` if you If you have set them. Otherwise, you need to provide values as arguments to `wrds_udpate()`. Default `PGPORT` is`5432`. 2023-12-14T16:09:48,021 ### 3. Table settings 2023-12-14T16:09:48,021 To tailor your request, specify the following arguments: 2023-12-14T16:09:48,023 - `fix_missing`: set to `True` to fix missing values. This addresses special missign values, which SAS's `PROC EXPORT` dumps as strings. Default value is `False`. 2023-12-14T16:09:48,023 - `fix_cr`: set to `True` to fix characters. Default value is `False`. 2023-12-14T16:09:48,024 - `drop`: add column names to be dropped (e.g., `drop="id name"` will drop columns `id` and `name`). 2023-12-14T16:09:48,024 - `obs`: add maxium number of observations (e.g., `obs=10` will import the first 10 rows from the table on WRDS). 2023-12-14T16:09:48,025 - `rename`: rename columns (e.g., `rename="fee=mngt_fee"` renames `fee` to `mngt_fee`). 2023-12-14T16:09:48,025 - `force`: set to `True` to force update. Default value is `False`. 2023-12-14T16:09:48,027 ## Importing SAS data into PostgreSQL 2023-12-14T16:09:48,027 The software can also upload SAS file directly to PostgreSQL. 2023-12-14T16:09:48,028 You need to have local SAS in order to use this function. 2023-12-14T16:09:48,028 Use `fpath` to specify the path to the file to be imported 2023-12-14T16:09:48,029 ### Examples 2023-12-14T16:09:48,030 Here are some examples. 2023-12-14T16:09:48,031 If you are at the home directory of this git repo, you can import and use the software as shown below. 2023-12-14T16:09:48,032 To install it from Github: 2023-12-14T16:09:48,033 ``` 2023-12-14T16:09:48,033 sudo -H pip3 install git+https://github.com/iangow/wrds2pg --upgrade 2023-12-14T16:09:48,034 ``` 2023-12-14T16:09:48,034 This software is also available from PyPI. To install it from [PyPI](https://pypi.org/project/wrds2pg/): 2023-12-14T16:09:48,035 ``` 2023-12-14T16:09:48,036 pip3 install wrds2pg 2023-12-14T16:09:48,036 ``` 2023-12-14T16:09:48,037 Example usage: 2023-12-14T16:09:48,037 ```py 2023-12-14T16:09:48,038 from wrds2pg import wrds_update 2023-12-14T16:09:48,039 # 1. Download crsp.mcti from wrds and upload to pg as crps.mcti 2023-12-14T16:09:48,039 # Simplest version 2023-12-14T16:09:48,040 wrds_update(table_name="mcti", schema="crsp") 2023-12-14T16:09:48,041 # Tailored arguments 2023-12-14T16:09:48,041 wrds_update(table_name="mcti", schema="crsp", host=your_pghost, 2023-12-14T16:09:48,042 dbname=your_pg_database, 2023-12-14T16:09:48,042 fix_missing=True, fix_cr=True, drop="b30ret b30ind", obs=10, 2023-12-14T16:09:48,043 rename="caldt=calendar_date", force=True) 2023-12-14T16:09:48,043 # 2. Upload test.sas7dbat to pg as crsp.mcti 2023-12-14T16:09:48,044 wrds_update(table_name="mcti", schema="crsp", fpath="your_path/test.sas7dbat") 2023-12-14T16:09:48,044 ``` 2023-12-14T16:09:48,045 ### Report bugs 2023-12-14T16:09:48,046 Author: Ian Gow, 2023-12-14T16:09:48,047 Contributors: Jingyu Zhang, , Evan Jo. 2023-12-14T16:09:48,048 running bdist_wheel 2023-12-14T16:09:48,049 running build 2023-12-14T16:09:48,049 running build_py 2023-12-14T16:09:48,050 creating build 2023-12-14T16:09:48,050 creating build/lib 2023-12-14T16:09:48,051 creating build/lib/wrds2pg 2023-12-14T16:09:48,051 copying wrds2pg/__init__.py -> build/lib/wrds2pg 2023-12-14T16:09:48,052 copying wrds2pg/wrds2pg.py -> build/lib/wrds2pg 2023-12-14T16:09:48,059 installing to build/bdist.linux-armv7l/wheel 2023-12-14T16:09:48,060 running install 2023-12-14T16:09:48,083 running install_lib 2023-12-14T16:09:48,089 creating build/bdist.linux-armv7l 2023-12-14T16:09:48,090 creating build/bdist.linux-armv7l/wheel 2023-12-14T16:09:48,091 creating build/bdist.linux-armv7l/wheel/wrds2pg 2023-12-14T16:09:48,092 copying build/lib/wrds2pg/__init__.py -> build/bdist.linux-armv7l/wheel/wrds2pg 2023-12-14T16:09:48,094 copying build/lib/wrds2pg/wrds2pg.py -> build/bdist.linux-armv7l/wheel/wrds2pg 2023-12-14T16:09:48,097 running install_egg_info 2023-12-14T16:09:48,106 running egg_info 2023-12-14T16:09:48,110 writing wrds2pg.egg-info/PKG-INFO 2023-12-14T16:09:48,113 writing dependency_links to wrds2pg.egg-info/dependency_links.txt 2023-12-14T16:09:48,114 writing requirements to wrds2pg.egg-info/requires.txt 2023-12-14T16:09:48,115 writing top-level names to wrds2pg.egg-info/top_level.txt 2023-12-14T16:09:48,121 reading manifest file 'wrds2pg.egg-info/SOURCES.txt' 2023-12-14T16:09:48,123 adding license file 'LICENCE' 2023-12-14T16:09:48,124 writing manifest file 'wrds2pg.egg-info/SOURCES.txt' 2023-12-14T16:09:48,126 Copying wrds2pg.egg-info to build/bdist.linux-armv7l/wheel/wrds2pg-1.0.29-py3.11.egg-info 2023-12-14T16:09:48,135 running install_scripts 2023-12-14T16:09:48,149 creating build/bdist.linux-armv7l/wheel/wrds2pg-1.0.29.dist-info/WHEEL 2023-12-14T16:09:48,151 creating '/tmp/pip-wheel-3o93hq28/.tmp-wz_5v0w5/wrds2pg-1.0.29-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it 2023-12-14T16:09:48,153 adding 'wrds2pg/__init__.py' 2023-12-14T16:09:48,158 adding 'wrds2pg/wrds2pg.py' 2023-12-14T16:09:48,160 adding 'wrds2pg-1.0.29.dist-info/LICENCE' 2023-12-14T16:09:48,161 adding 'wrds2pg-1.0.29.dist-info/METADATA' 2023-12-14T16:09:48,163 adding 'wrds2pg-1.0.29.dist-info/WHEEL' 2023-12-14T16:09:48,163 adding 'wrds2pg-1.0.29.dist-info/top_level.txt' 2023-12-14T16:09:48,164 adding 'wrds2pg-1.0.29.dist-info/RECORD' 2023-12-14T16:09:48,166 removing build/bdist.linux-armv7l/wheel 2023-12-14T16:09:48,257 Building wheel for wrds2pg (pyproject.toml): finished with status 'done' 2023-12-14T16:09:48,262 Created wheel for wrds2pg: filename=wrds2pg-1.0.29-py3-none-any.whl size=13212 sha256=9f2187c5860343b907a4512b1d3b18e812e7808483c1590824f23ec9906d3264 2023-12-14T16:09:48,263 Stored in directory: /tmp/pip-ephem-wheel-cache-7_iekqbt/wheels/3d/68/3c/fd78f5d9cf0fcbcd8ed2d5a45aaef9d59dbd68fe71df8d4a0e 2023-12-14T16:09:48,273 Successfully built wrds2pg 2023-12-14T16:09:48,276 Removed build tracker: '/tmp/pip-build-tracker-fo9o0t8f'