2022-07-27T00:39:37,408 Created temporary directory: /tmp/pip-ephem-wheel-cache-4ync8eo7 2022-07-27T00:39:37,413 Created temporary directory: /tmp/pip-build-tracker-bixegris 2022-07-27T00:39:37,414 Initialized build tracking at /tmp/pip-build-tracker-bixegris 2022-07-27T00:39:37,414 Created build tracker: /tmp/pip-build-tracker-bixegris 2022-07-27T00:39:37,415 Entered build tracker: /tmp/pip-build-tracker-bixegris 2022-07-27T00:39:37,416 Created temporary directory: /tmp/pip-wheel-8c0594vf 2022-07-27T00:39:37,479 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2022-07-27T00:39:37,487 2 location(s) to search for versions of wrds2pg: 2022-07-27T00:39:37,487 * https://pypi.org/simple/wrds2pg/ 2022-07-27T00:39:37,487 * https://www.piwheels.org/simple/wrds2pg/ 2022-07-27T00:39:37,488 Fetching project page and analyzing links: https://pypi.org/simple/wrds2pg/ 2022-07-27T00:39:37,489 Getting page https://pypi.org/simple/wrds2pg/ 2022-07-27T00:39:37,492 Found index url https://pypi.org/simple 2022-07-27T00:39:37,700 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/36/4d/10bef13832bdc17990beac4a20b47a77976768547aa4bd6137cbafd46f83/wrds2pg-0.1.17-py3-none-any.whl#sha256=3471efec23d7b15c86751d79adc43cb425d7ad46016afc247f1e1992b78083b9 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,702 Found link https://files.pythonhosted.org/packages/ae/9c/ee0b12002821c2c8e21625c915081fc315d9f1ceef100cb330e9116f2d0d/wrds2pg-0.1.17.tar.gz#sha256=665c4fb5c4dcc9f3553eb144053f334ea76e1721b65a96b438fc5a3f78719ef1 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.17 2022-07-27T00:39:37,702 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/ac/24/35ec84d1b765955286a326d0f0c98423730b5818f33c5cdc3e2a2d528adf/wrds2pg-0.1.18-py3-none-any.whl#sha256=896ccb2badb2923b55bb6fbe62a8d74604733c8c9c0181b144e2e2f9aabb629c (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,704 Found link https://files.pythonhosted.org/packages/dd/4f/6c631513b90802ad1fae0c3fb3dbf65efc603d3fee00a1cae4af45f6b2c5/wrds2pg-0.1.18.tar.gz#sha256=7dc2949f1891c602c81f795369c5bd3c72fd257370306eca459e7330e0874988 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.18 2022-07-27T00:39:37,704 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/42/1a/cbdac7035e9b7836ed96c6a9e493b556d3f595245c4f0b239c9ba639d53e/wrds2pg-0.1.20-py3-none-any.whl#sha256=bdca9bdaa2e54c59f2120c519804dc52bf271a35e03a80dd8b1f65f961f28ff6 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,706 Found link https://files.pythonhosted.org/packages/14/81/4c94b875ec21dccdefb6a1846bc4f4d4a6a529a0a6921cbbf580e07f8b6b/wrds2pg-0.1.20.tar.gz#sha256=a9b86e50a278a821f4d1faa3f52312e3e557c332ab234b32def5e10f6afc00ae (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.20 2022-07-27T00:39:37,706 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/e7/a1/192e3bf4b1e122d0b12a094f4ee4fd1667276cb87cbe5d0a53412dc1a9bc/wrds2pg-0.1.21-py3-none-any.whl#sha256=f9ab26b51603e3bf82196a52410a990d95685ee6bedc4a88572340686d09affc (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,708 Found link https://files.pythonhosted.org/packages/4d/4c/5fa9cc2e936e16d0be4a56ce2e8cf03b3ba0f59f49afdebd29f1eda99df4/wrds2pg-0.1.21.tar.gz#sha256=9c3f4e0e21d09ab93555e04c410b5292cf2c89ce2407015de3b289cd943f79ff (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.21 2022-07-27T00:39:37,709 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/4a/52/d9134119b39cf9e939e7cc5ab1317627406af4229fcbdf1085df366e01b4/wrds2pg-0.1.22-py3-none-any.whl#sha256=bfa8fbfc09819fe5524153f82e6fc631069dab5096b0013b03aae5600346a2ab (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,710 Found link https://files.pythonhosted.org/packages/5b/db/ebbf903d32ac113cdd0b3637f1e5dc37a4abf9f63f18dd56835f3611a465/wrds2pg-0.1.22.tar.gz#sha256=9925b6c217bf8c9cf1fa17f6fc08a720b3849b4e95507cf2a905b06536c60ea3 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.22 2022-07-27T00:39:37,711 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/c9/47/a040be2f7d67c120396a27beb1f5e3a6eb97fd24e17cd485ec6d332dad6e/wrds2pg-0.1.23-py3-none-any.whl#sha256=24b5f15364dc798de6d21d3f2d117ce1d7c6e6e0768e8268e7b196943d36d1bd (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,712 Found link https://files.pythonhosted.org/packages/4e/aa/b4f4227ff1d464462f243592bddd638d07e886aa39018ef2bb486624e2f5/wrds2pg-0.1.23.tar.gz#sha256=29557ea7e669dfe1d2f0d4ac9966427698e8369922445e8ca03cc29fd4ff3adb (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.23 2022-07-27T00:39:37,713 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/7b/bf/a713b52aff61a20e5e9d851a69d7c4936d14018ed62759dd78629bfe12cf/wrds2pg-0.1.24-py3-none-any.whl#sha256=8bfd551d615500576f778b977f5771b5011d87a962c1d43e8b7aae7c42f6bafb (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,714 Found link https://files.pythonhosted.org/packages/ca/e9/81095cbac75110e7f53e915ebee06a9925bb32b6d8a307c7a709f9b74dd5/wrds2pg-0.1.24.tar.gz#sha256=b5fdbfe9ab1af360a872257987b354d05998a5e0ee0aefaafe7333787ebc1f16 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 0.1.24 2022-07-27T00:39:37,715 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/01/5d/cfd9a9cfe8194d52e16c24ef053b49225e85f0996c471226fc0cf5522e31/wrds2pg-1.0.0-py3-none-any.whl#sha256=89d17b1aae3ffc78c0c02e87a2f663b83648460da7a8406027d62ae7c9ceb164 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,716 Found link https://files.pythonhosted.org/packages/af/8f/069eed28514231a859da3b110112a0b2078f2c879e3cc5489909982ef2af/wrds2pg-1.0.0.tar.gz#sha256=138924033c17e35fc37dcff72df18398b1152fde1c803f34aa641adc72cb3f66 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.0 2022-07-27T00:39:37,717 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/90/3d/1fc327c68c63a7540a964879a5a124e9104c5a80cd058a5f0659d2945dd5/wrds2pg-1.0.2-py3-none-any.whl#sha256=73be788eb7aee9fce430717615f683c7f912a817238a33697f41f26b85726147 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,718 Found link https://files.pythonhosted.org/packages/fa/b0/49292467a2256c3ecdd7e7fdbd1c4729386bddc06f3a986483a311539f2b/wrds2pg-1.0.2.tar.gz#sha256=13c64ea0b23fd000ccc6f712a448a4c1e49879f9d3d645c58d56cbba9cdc99f8 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.2 2022-07-27T00:39:37,719 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/41/99/2866d67e2fcd10684ccc913eaa896ebcc00c60982133a5adfaa8a39b7aa1/wrds2pg-1.0.3-py3-none-any.whl#sha256=12de805441cbd63af3d66e6a2c651f8f7d15e77dc5c3714035cd450ea1708785 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,720 Found link https://files.pythonhosted.org/packages/0f/bf/b1032fff1645c597e292ac8d588c33bad73ca567c01e52fb149f4aa503d1/wrds2pg-1.0.3.tar.gz#sha256=ebef3b91951fd78a9e3dd51c212c119c8639c03f70aa7c4a273733240fd628fc (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.3 2022-07-27T00:39:37,721 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/0b/6c/bc13811b3a339ec1455a10a03b077d0a7fc7e43b3311201abbfc67d77fde/wrds2pg-1.0.4-py3-none-any.whl#sha256=8197d920152df0686f6cd8ca31af2f46820802334c63a0991ca0ddd1c215c909 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,722 Found link https://files.pythonhosted.org/packages/dc/f4/166d8822216116c22615377ab6493a7c44bd205b8853ae2b0ad51792d9e6/wrds2pg-1.0.4.tar.gz#sha256=e5f9ea4cf47eff9e5062815816f8ae257a9fc0370968f7a6802a0614a8d7a025 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.4 2022-07-27T00:39:37,723 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/78/a7/afce414cb2df44692f2dd5af0e28578c349e337110fb7c73b893cef3c048/wrds2pg-1.0.5-py3-none-any.whl#sha256=21abfd3fabf17eba315d7110979b9ed42f54051f205d859da68568b4699e291b (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,724 Found link https://files.pythonhosted.org/packages/64/a7/18d7edab1e04462bf1aafd2fe6ffc9132f0aa11be6daaf14927c532b73d3/wrds2pg-1.0.5.tar.gz#sha256=bfbd1a931b790209f96b1bd1c45d268ca714b051a65d4d06f51a2bca414674dd (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.5 2022-07-27T00:39:37,725 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/2b/8f/02f345286a6b878468948ab7bc6a56026077f0cbfb25d11440284519ba7a/wrds2pg-1.0.6-py3-none-any.whl#sha256=ba63b46b31e7f735db37bebf8ad301e976085a10628fcb01be40dbc9325267f9 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,726 Found link https://files.pythonhosted.org/packages/8c/06/abb4c39f3e3f730fffe349e03e1172e31c95fbb9edf4c9257bfb0b6e2c62/wrds2pg-1.0.6.tar.gz#sha256=33efcef845f9d47adb892052a2865ecb6dafb9541ead49a97840a0659d76ca91 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.6 2022-07-27T00:39:37,727 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/3f/b5/99b90fee6aaf0b150803cfbd6d86e0052d292257dd101e803df4d945ad7b/wrds2pg-1.0.8-py3-none-any.whl#sha256=4bca52110d40065aada2ca48ed090ab85a34add55c09c804f9586fd454ae3205 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,728 Found link https://files.pythonhosted.org/packages/eb/9f/a506b309ee9299d4d9cd3f5c1407e05da30c09cbbe8acf67e60de11a1b4e/wrds2pg-1.0.8.tar.gz#sha256=d5b5e5e738d01c7509660b839c8a949ff5210a81eedd2b514f8bdfa044752e96 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.8 2022-07-27T00:39:37,729 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/80/6d/34291718af062c4c329fbaeaaa582e011da15ce1193364f668581c3bd983/wrds2pg-1.0.9-py3-none-any.whl#sha256=31c6a2598fe8d8b97d73bcad19025da0249d8c835873e8ae12504bb585268cd0 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,730 Found link https://files.pythonhosted.org/packages/27/20/2b9788aef9e54ea3d590a456caa294d1c177fd05029e8f70b99022369f68/wrds2pg-1.0.9.tar.gz#sha256=abb716e343d49a455f949c7c87c1a08a0748f1233917d4b9282df55245bdca6c (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.9 2022-07-27T00:39:37,731 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/99/ac/4d765cf6d5048798219506138f491e7218d56226bd1d4a1ab994e5efcf33/wrds2pg-1.0.10-py3-none-any.whl#sha256=4cbc316d1697609c4af2a88bd009097590ac1d233739addce04b45ce6d365d3f (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,732 Found link https://files.pythonhosted.org/packages/f4/6a/630cd948c36f331db42c9bac9e414e721e779efbb692210419563d9f4ec1/wrds2pg-1.0.10.tar.gz#sha256=7e277d2c16c0547559c61e58764e40265bb10673f7c0a5e0e1feb543c2b46f75 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.10 2022-07-27T00:39:37,733 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/4b/8f/7a43a074a7f9fb3b14acbe6a7fdfe50e99d8489334adcc941ed6b4ca328b/wrds2pg-1.0.11-py3-none-any.whl#sha256=c42398fe36363172c42dc4cc17f92a29234b3837ec576a62f122ec5d10ef7dc9 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,734 Found link https://files.pythonhosted.org/packages/e8/2b/f8c9e8ea4d651a9e15946e91b9f1708582a8631b6a76ddb16ad9275bb7a5/wrds2pg-1.0.11.tar.gz#sha256=7371b4a232b33a07a33e39d1a92bf8ace7f1af3ce104af102ed5ddfbde1d3959 (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.11 2022-07-27T00:39:37,735 Skipping link: No binaries permitted for wrds2pg: https://files.pythonhosted.org/packages/20/62/e4cff4d188653aa99e511ec9db794706d3e0eca3a072847c47b59fb281ba/wrds2pg-1.0.12-py3-none-any.whl#sha256=33a2f3d0156a87919e55a66512709ebd5342ba3922a963883f45f0293485f68c (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3) 2022-07-27T00:39:37,736 Found link https://files.pythonhosted.org/packages/14/9c/6db066ea90188c63fbacdfb53d2efd52e3ffb2f86ac229616b5ded27dabb/wrds2pg-1.0.12.tar.gz#sha256=ebd666351f2854fbcea52abff74b39ca505b3da2e872156932a0fa466444b80f (from https://pypi.org/simple/wrds2pg/) (requires-python:>=3), version: 1.0.12 2022-07-27T00:39:37,737 Fetching project page and analyzing links: https://www.piwheels.org/simple/wrds2pg/ 2022-07-27T00:39:37,738 Getting page https://www.piwheels.org/simple/wrds2pg/ 2022-07-27T00:39:37,740 Found index url https://www.piwheels.org/simple 2022-07-27T00:39:37,957 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) 2022-07-27T00:39:37,957 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) 2022-07-27T00:39:37,958 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) 2022-07-27T00:39:37,959 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) 2022-07-27T00:39:37,959 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) 2022-07-27T00:39:37,960 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) 2022-07-27T00:39:37,960 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) 2022-07-27T00:39:37,961 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) 2022-07-27T00:39:37,961 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) 2022-07-27T00:39:37,962 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) 2022-07-27T00:39:37,962 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) 2022-07-27T00:39:37,963 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) 2022-07-27T00:39:37,964 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) 2022-07-27T00:39:37,964 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) 2022-07-27T00:39:37,965 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) 2022-07-27T00:39:37,965 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) 2022-07-27T00:39:37,966 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) 2022-07-27T00:39:37,966 Skipping link: not a file: https://www.piwheels.org/simple/wrds2pg/ 2022-07-27T00:39:37,967 Skipping link: not a file: https://pypi.org/simple/wrds2pg/ 2022-07-27T00:39:38,007 Given no hashes to check 1 links for project 'wrds2pg': discarding no candidates 2022-07-27T00:39:38,038 Collecting wrds2pg==1.0.12 2022-07-27T00:39:38,043 Created temporary directory: /tmp/pip-unpack-m_ngqvg3 2022-07-27T00:39:38,278 Downloading wrds2pg-1.0.12.tar.gz (11 kB) 2022-07-27T00:39:38,357 Added wrds2pg==1.0.12 from https://files.pythonhosted.org/packages/14/9c/6db066ea90188c63fbacdfb53d2efd52e3ffb2f86ac229616b5ded27dabb/wrds2pg-1.0.12.tar.gz#sha256=ebd666351f2854fbcea52abff74b39ca505b3da2e872156932a0fa466444b80f to build tracker '/tmp/pip-build-tracker-bixegris' 2022-07-27T00:39:38,366 Created temporary directory: /tmp/pip-build-env-t2c6b8af 2022-07-27T00:39:38,380 Created temporary directory: /tmp/pip-standalone-pip-oon4mp7n 2022-07-27T00:39:41,134 Installing build dependencies: started 2022-07-27T00:39:41,137 Running command pip subprocess to install build dependencies 2022-07-27T00:39:51,058 Using pip 22.1.2 from /tmp/pip-standalone-pip-oon4mp7n/__env_pip__.zip/pip (python 3.7) 2022-07-27T00:39:52,890 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2022-07-27T00:39:57,064 Collecting setuptools>=42 2022-07-27T00:39:57,354 Using cached https://www.piwheels.org/simple/setuptools/setuptools-63.2.0-py3-none-any.whl (1.2 MB) 2022-07-27T00:39:58,043 Collecting wheel 2022-07-27T00:39:58,083 Using cached https://www.piwheels.org/simple/wheel/wheel-0.37.1-py2.py3-none-any.whl (35 kB) 2022-07-27T00:40:08,756 Installing collected packages: wheel, setuptools 2022-07-27T00:40:09,029 Creating /tmp/pip-build-env-t2c6b8af/overlay/bin 2022-07-27T00:40:09,034 changing mode of /tmp/pip-build-env-t2c6b8af/overlay/bin/wheel to 755 2022-07-27T00:40:14,147 Successfully installed setuptools-63.2.0 wheel-0.37.1 2022-07-27T00:40:14,842 Installing build dependencies: finished with status 'done' 2022-07-27T00:40:14,870 Getting requirements to build wheel: started 2022-07-27T00:40:14,872 Running command Getting requirements to build wheel 2022-07-27T00:40:21,329 # WRDS (or SAS) to PostgreSQL 2022-07-27T00:40:21,331 This software has two functions: 2022-07-27T00:40:21,331 - Download tables from [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) and feed them to a PostgreSQL database. (Requires access to WRDS and to the data in question.) 2022-07-27T00:40:21,331 - Import a SAS file (`*.sas7dbat`) into a PostgreSQL database. 2022-07-27T00:40:21,332 ## Requirements 2022-07-27T00:40:21,333 ### 1. Python 2022-07-27T00:40:21,333 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. 2022-07-27T00:40:21,334 These dependencies are installed when you use Pip (see instructions below). 2022-07-27T00:40:21,334 ### 2. A WRDS ID 2022-07-27T00:40:21,335 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. 2022-07-27T00:40:21,335 Copy that key to the WRDS server from the terminal on your computer. 2022-07-27T00:40:21,335 (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.) 2022-07-27T00:40:21,336 Here's code (for me) to create the key and send it to WRDS: 2022-07-27T00:40:21,336 ``` 2022-07-27T00:40:21,336 ssh-keygen -t rsa 2022-07-27T00:40:21,337 cat ~/.ssh/id_rsa.pub | ssh iangow@wrds-cloud.wharton.upenn.edu "cat >> ~/.ssh/authorized_keys" 2022-07-27T00:40:21,337 ``` 2022-07-27T00:40:21,337 Use an empty passphrase in setting up the key so that the scripts can run without user intervention. 2022-07-27T00:40:21,338 ### 3. PostgreSQL 2022-07-27T00:40:21,338 You should have a PostgreSQL database to store the data. 2022-07-27T00:40:21,339 ### 4. Environment variables 2022-07-27T00:40:21,339 Environment variables that the code can use include: 2022-07-27T00:40:21,340 - `PGDATABASE`: The name of the PostgreSQL database you use. 2022-07-27T00:40:21,340 - `PGUSER`: Your username on the PostgreSQL database. 2022-07-27T00:40:21,341 - `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) 2022-07-27T00:40:21,341 - `WRDS_ID`: Your [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) ID. 2022-07-27T00:40:21,342 I set these environment variables in `~/.profile`: 2022-07-27T00:40:21,342 ``` 2022-07-27T00:40:21,342 export PGHOST="localhost" 2022-07-27T00:40:21,343 export PGDATABASE="crsp" 2022-07-27T00:40:21,343 export WRDS_ID="iangow" 2022-07-27T00:40:21,343 export PGUSER="igow" 2022-07-27T00:40:21,344 ``` 2022-07-27T00:40:21,344 ## Using the function `wrds_update`. 2022-07-27T00:40:21,345 Two arguments `table_name` and `schema` are required. 2022-07-27T00:40:21,345 ### 1. WRDS Settings 2022-07-27T00:40:21,346 Set `WRDS_ID` using either `wrds_id=your_wrds_id` in the function call or the environment variable `WRDS_ID`. 2022-07-27T00:40:21,346 ### 2. Environment variables 2022-07-27T00:40:21,347 The software 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`. 2022-07-27T00:40:21,347 ### 3. Table settings 2022-07-27T00:40:21,348 To tailor your request, specify the following arguments: 2022-07-27T00:40:21,348 - `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`. 2022-07-27T00:40:21,349 - `fix_cr`: set to `True` to fix characters. Default value is `False`. 2022-07-27T00:40:21,349 - `drop`: add column names to be dropped (e.g., `drop="id name"` will drop columns `id` and `name`). 2022-07-27T00:40:21,349 - `obs`: add maxium number of observations (e.g., `obs=10` will import the first 10 rows from the table on WRDS). 2022-07-27T00:40:21,350 - `rename`: rename columns (e.g., `rename="fee=mngt_fee"` renames `fee` to `mngt_fee`). 2022-07-27T00:40:21,350 - `force`: set to `True` to force update. Default value is `False`. 2022-07-27T00:40:21,351 ## Importing SAS data into PostgreSQL 2022-07-27T00:40:21,351 The software can also upload SAS file directly to PostgreSQL. 2022-07-27T00:40:21,351 You need to have local SAS in order to use this function. 2022-07-27T00:40:21,352 Use `fpath` to specify the path to the file to be imported 2022-07-27T00:40:21,352 ### Examples 2022-07-27T00:40:21,352 Here are some examples. 2022-07-27T00:40:21,353 If you are at the home directory of this git repo, you can import and use the software as shown below. 2022-07-27T00:40:21,354 To install it from Github: 2022-07-27T00:40:21,354 ``` 2022-07-27T00:40:21,355 sudo -H pip3 install git+https://github.com/iangow/wrds2pg --upgrade 2022-07-27T00:40:21,355 ``` 2022-07-27T00:40:21,356 This software is also available from PyPI. To install it from [PyPI](https://pypi.org/project/wrds2pg/): 2022-07-27T00:40:21,356 ``` 2022-07-27T00:40:21,356 pip3 install wrds2pg 2022-07-27T00:40:21,356 ``` 2022-07-27T00:40:21,357 Example usage: 2022-07-27T00:40:21,357 ```py 2022-07-27T00:40:21,357 from wrds2pg import wrds_update 2022-07-27T00:40:21,358 # 1. Download crsp.mcti from wrds and upload to pg as crps.mcti 2022-07-27T00:40:21,358 # Simplest version 2022-07-27T00:40:21,359 wrds_update(table_name="mcti", schema="crsp") 2022-07-27T00:40:21,359 # Tailored arguments 2022-07-27T00:40:21,360 wrds_update(table_name="mcti", schema="crsp", host=your_pghost, 2022-07-27T00:40:21,360 dbname=your_pg_database, 2022-07-27T00:40:21,360 fix_missing=True, fix_cr=True, drop="b30ret b30ind", obs=10, 2022-07-27T00:40:21,361 rename="caldt=calendar_date", force=True) 2022-07-27T00:40:21,361 # 2. Upload test.sas7dbat to pg as crsp.mcti 2022-07-27T00:40:21,362 wrds_update(table_name="mcti", schema="crsp", fpath="your_path/test.sas7dbat") 2022-07-27T00:40:21,362 ``` 2022-07-27T00:40:21,362 ### Report bugs 2022-07-27T00:40:21,363 Author: Ian Gow, 2022-07-27T00:40:21,363 Contributor: Jingyu Zhang, 2022-07-27T00:40:21,364 running egg_info 2022-07-27T00:40:21,957 writing wrds2pg.egg-info/PKG-INFO 2022-07-27T00:40:22,548 writing dependency_links to wrds2pg.egg-info/dependency_links.txt 2022-07-27T00:40:25,485 writing requirements to wrds2pg.egg-info/requires.txt 2022-07-27T00:40:26,077 writing top-level names to wrds2pg.egg-info/top_level.txt 2022-07-27T00:40:27,027 reading manifest file 'wrds2pg.egg-info/SOURCES.txt' 2022-07-27T00:40:27,035 adding license file 'LICENCE' 2022-07-27T00:40:27,041 writing manifest file 'wrds2pg.egg-info/SOURCES.txt' 2022-07-27T00:40:27,262 Getting requirements to build wheel: finished with status 'done' 2022-07-27T00:40:27,283 Created temporary directory: /tmp/pip-modern-metadata-k5hckd77 2022-07-27T00:40:27,289 Preparing metadata (pyproject.toml): started 2022-07-27T00:40:27,291 Running command Preparing metadata (pyproject.toml) 2022-07-27T00:40:33,476 # WRDS (or SAS) to PostgreSQL 2022-07-27T00:40:33,478 This software has two functions: 2022-07-27T00:40:33,478 - Download tables from [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) and feed them to a PostgreSQL database. (Requires access to WRDS and to the data in question.) 2022-07-27T00:40:33,478 - Import a SAS file (`*.sas7dbat`) into a PostgreSQL database. 2022-07-27T00:40:33,479 ## Requirements 2022-07-27T00:40:33,480 ### 1. Python 2022-07-27T00:40:33,480 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. 2022-07-27T00:40:33,481 These dependencies are installed when you use Pip (see instructions below). 2022-07-27T00:40:33,481 ### 2. A WRDS ID 2022-07-27T00:40:33,481 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. 2022-07-27T00:40:33,482 Copy that key to the WRDS server from the terminal on your computer. 2022-07-27T00:40:33,482 (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.) 2022-07-27T00:40:33,483 Here's code (for me) to create the key and send it to WRDS: 2022-07-27T00:40:33,483 ``` 2022-07-27T00:40:33,483 ssh-keygen -t rsa 2022-07-27T00:40:33,484 cat ~/.ssh/id_rsa.pub | ssh iangow@wrds-cloud.wharton.upenn.edu "cat >> ~/.ssh/authorized_keys" 2022-07-27T00:40:33,484 ``` 2022-07-27T00:40:33,484 Use an empty passphrase in setting up the key so that the scripts can run without user intervention. 2022-07-27T00:40:33,485 ### 3. PostgreSQL 2022-07-27T00:40:33,485 You should have a PostgreSQL database to store the data. 2022-07-27T00:40:33,486 ### 4. Environment variables 2022-07-27T00:40:33,486 Environment variables that the code can use include: 2022-07-27T00:40:33,487 - `PGDATABASE`: The name of the PostgreSQL database you use. 2022-07-27T00:40:33,487 - `PGUSER`: Your username on the PostgreSQL database. 2022-07-27T00:40:33,487 - `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) 2022-07-27T00:40:33,488 - `WRDS_ID`: Your [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) ID. 2022-07-27T00:40:33,488 I set these environment variables in `~/.profile`: 2022-07-27T00:40:33,489 ``` 2022-07-27T00:40:33,489 export PGHOST="localhost" 2022-07-27T00:40:33,490 export PGDATABASE="crsp" 2022-07-27T00:40:33,490 export WRDS_ID="iangow" 2022-07-27T00:40:33,490 export PGUSER="igow" 2022-07-27T00:40:33,491 ``` 2022-07-27T00:40:33,491 ## Using the function `wrds_update`. 2022-07-27T00:40:33,492 Two arguments `table_name` and `schema` are required. 2022-07-27T00:40:33,492 ### 1. WRDS Settings 2022-07-27T00:40:33,493 Set `WRDS_ID` using either `wrds_id=your_wrds_id` in the function call or the environment variable `WRDS_ID`. 2022-07-27T00:40:33,493 ### 2. Environment variables 2022-07-27T00:40:33,494 The software 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`. 2022-07-27T00:40:33,494 ### 3. Table settings 2022-07-27T00:40:33,495 To tailor your request, specify the following arguments: 2022-07-27T00:40:33,495 - `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`. 2022-07-27T00:40:33,496 - `fix_cr`: set to `True` to fix characters. Default value is `False`. 2022-07-27T00:40:33,496 - `drop`: add column names to be dropped (e.g., `drop="id name"` will drop columns `id` and `name`). 2022-07-27T00:40:33,496 - `obs`: add maxium number of observations (e.g., `obs=10` will import the first 10 rows from the table on WRDS). 2022-07-27T00:40:33,496 - `rename`: rename columns (e.g., `rename="fee=mngt_fee"` renames `fee` to `mngt_fee`). 2022-07-27T00:40:33,497 - `force`: set to `True` to force update. Default value is `False`. 2022-07-27T00:40:33,497 ## Importing SAS data into PostgreSQL 2022-07-27T00:40:33,498 The software can also upload SAS file directly to PostgreSQL. 2022-07-27T00:40:33,498 You need to have local SAS in order to use this function. 2022-07-27T00:40:33,498 Use `fpath` to specify the path to the file to be imported 2022-07-27T00:40:33,499 ### Examples 2022-07-27T00:40:33,499 Here are some examples. 2022-07-27T00:40:33,500 If you are at the home directory of this git repo, you can import and use the software as shown below. 2022-07-27T00:40:33,501 To install it from Github: 2022-07-27T00:40:33,501 ``` 2022-07-27T00:40:33,502 sudo -H pip3 install git+https://github.com/iangow/wrds2pg --upgrade 2022-07-27T00:40:33,502 ``` 2022-07-27T00:40:33,503 This software is also available from PyPI. To install it from [PyPI](https://pypi.org/project/wrds2pg/): 2022-07-27T00:40:33,503 ``` 2022-07-27T00:40:33,503 pip3 install wrds2pg 2022-07-27T00:40:33,503 ``` 2022-07-27T00:40:33,504 Example usage: 2022-07-27T00:40:33,504 ```py 2022-07-27T00:40:33,504 from wrds2pg import wrds_update 2022-07-27T00:40:33,505 # 1. Download crsp.mcti from wrds and upload to pg as crps.mcti 2022-07-27T00:40:33,505 # Simplest version 2022-07-27T00:40:33,506 wrds_update(table_name="mcti", schema="crsp") 2022-07-27T00:40:33,506 # Tailored arguments 2022-07-27T00:40:33,506 wrds_update(table_name="mcti", schema="crsp", host=your_pghost, 2022-07-27T00:40:33,507 dbname=your_pg_database, 2022-07-27T00:40:33,507 fix_missing=True, fix_cr=True, drop="b30ret b30ind", obs=10, 2022-07-27T00:40:33,507 rename="caldt=calendar_date", force=True) 2022-07-27T00:40:33,508 # 2. Upload test.sas7dbat to pg as crsp.mcti 2022-07-27T00:40:33,508 wrds_update(table_name="mcti", schema="crsp", fpath="your_path/test.sas7dbat") 2022-07-27T00:40:33,509 ``` 2022-07-27T00:40:33,509 ### Report bugs 2022-07-27T00:40:33,510 Author: Ian Gow, 2022-07-27T00:40:33,510 Contributor: Jingyu Zhang, 2022-07-27T00:40:33,510 running dist_info 2022-07-27T00:40:34,132 creating /tmp/pip-modern-metadata-k5hckd77/wrds2pg.egg-info 2022-07-27T00:40:34,756 writing /tmp/pip-modern-metadata-k5hckd77/wrds2pg.egg-info/PKG-INFO 2022-07-27T00:40:35,347 writing dependency_links to /tmp/pip-modern-metadata-k5hckd77/wrds2pg.egg-info/dependency_links.txt 2022-07-27T00:40:38,295 writing requirements to /tmp/pip-modern-metadata-k5hckd77/wrds2pg.egg-info/requires.txt 2022-07-27T00:40:38,888 writing top-level names to /tmp/pip-modern-metadata-k5hckd77/wrds2pg.egg-info/top_level.txt 2022-07-27T00:40:38,890 writing manifest file '/tmp/pip-modern-metadata-k5hckd77/wrds2pg.egg-info/SOURCES.txt' 2022-07-27T00:40:39,600 reading manifest file '/tmp/pip-modern-metadata-k5hckd77/wrds2pg.egg-info/SOURCES.txt' 2022-07-27T00:40:39,604 adding license file 'LICENCE' 2022-07-27T00:40:39,609 writing manifest file '/tmp/pip-modern-metadata-k5hckd77/wrds2pg.egg-info/SOURCES.txt' 2022-07-27T00:40:39,611 creating '/tmp/pip-modern-metadata-k5hckd77/wrds2pg-1.0.12.dist-info' 2022-07-27T00:40:39,825 adding license file "LICENCE" (matched pattern "LICEN[CS]E*") 2022-07-27T00:40:40,062 Preparing metadata (pyproject.toml): finished with status 'done' 2022-07-27T00:40:40,077 Source in /tmp/pip-wheel-8c0594vf/wrds2pg_bc280cddc18041dabc526f2c82fa40a4 has version 1.0.12, which satisfies requirement wrds2pg==1.0.12 from https://files.pythonhosted.org/packages/14/9c/6db066ea90188c63fbacdfb53d2efd52e3ffb2f86ac229616b5ded27dabb/wrds2pg-1.0.12.tar.gz#sha256=ebd666351f2854fbcea52abff74b39ca505b3da2e872156932a0fa466444b80f 2022-07-27T00:40:40,079 Removed wrds2pg==1.0.12 from https://files.pythonhosted.org/packages/14/9c/6db066ea90188c63fbacdfb53d2efd52e3ffb2f86ac229616b5ded27dabb/wrds2pg-1.0.12.tar.gz#sha256=ebd666351f2854fbcea52abff74b39ca505b3da2e872156932a0fa466444b80f from build tracker '/tmp/pip-build-tracker-bixegris' 2022-07-27T00:40:40,093 Created temporary directory: /tmp/pip-unpack-hrhaob3e 2022-07-27T00:40:40,094 Building wheels for collected packages: wrds2pg 2022-07-27T00:40:40,103 Created temporary directory: /tmp/pip-wheel-g1vfal_v 2022-07-27T00:40:40,104 Destination directory: /tmp/pip-wheel-g1vfal_v 2022-07-27T00:40:40,108 Building wheel for wrds2pg (pyproject.toml): started 2022-07-27T00:40:40,110 Running command Building wheel for wrds2pg (pyproject.toml) 2022-07-27T00:40:45,786 # WRDS (or SAS) to PostgreSQL 2022-07-27T00:40:45,787 This software has two functions: 2022-07-27T00:40:45,788 - Download tables from [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) and feed them to a PostgreSQL database. (Requires access to WRDS and to the data in question.) 2022-07-27T00:40:45,788 - Import a SAS file (`*.sas7dbat`) into a PostgreSQL database. 2022-07-27T00:40:45,789 ## Requirements 2022-07-27T00:40:45,789 ### 1. Python 2022-07-27T00:40:45,790 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. 2022-07-27T00:40:45,790 These dependencies are installed when you use Pip (see instructions below). 2022-07-27T00:40:45,791 ### 2. A WRDS ID 2022-07-27T00:40:45,791 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. 2022-07-27T00:40:45,791 Copy that key to the WRDS server from the terminal on your computer. 2022-07-27T00:40:45,792 (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.) 2022-07-27T00:40:45,792 Here's code (for me) to create the key and send it to WRDS: 2022-07-27T00:40:45,792 ``` 2022-07-27T00:40:45,793 ssh-keygen -t rsa 2022-07-27T00:40:45,793 cat ~/.ssh/id_rsa.pub | ssh iangow@wrds-cloud.wharton.upenn.edu "cat >> ~/.ssh/authorized_keys" 2022-07-27T00:40:45,793 ``` 2022-07-27T00:40:45,794 Use an empty passphrase in setting up the key so that the scripts can run without user intervention. 2022-07-27T00:40:45,794 ### 3. PostgreSQL 2022-07-27T00:40:45,795 You should have a PostgreSQL database to store the data. 2022-07-27T00:40:45,795 ### 4. Environment variables 2022-07-27T00:40:45,796 Environment variables that the code can use include: 2022-07-27T00:40:45,796 - `PGDATABASE`: The name of the PostgreSQL database you use. 2022-07-27T00:40:45,797 - `PGUSER`: Your username on the PostgreSQL database. 2022-07-27T00:40:45,797 - `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) 2022-07-27T00:40:45,797 - `WRDS_ID`: Your [WRDS](https://wrds-web.wharton.upenn.edu/wrds/) ID. 2022-07-27T00:40:45,798 I set these environment variables in `~/.profile`: 2022-07-27T00:40:45,799 ``` 2022-07-27T00:40:45,799 export PGHOST="localhost" 2022-07-27T00:40:45,799 export PGDATABASE="crsp" 2022-07-27T00:40:45,800 export WRDS_ID="iangow" 2022-07-27T00:40:45,800 export PGUSER="igow" 2022-07-27T00:40:45,800 ``` 2022-07-27T00:40:45,801 ## Using the function `wrds_update`. 2022-07-27T00:40:45,802 Two arguments `table_name` and `schema` are required. 2022-07-27T00:40:45,802 ### 1. WRDS Settings 2022-07-27T00:40:45,803 Set `WRDS_ID` using either `wrds_id=your_wrds_id` in the function call or the environment variable `WRDS_ID`. 2022-07-27T00:40:45,803 ### 2. Environment variables 2022-07-27T00:40:45,804 The software 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`. 2022-07-27T00:40:45,804 ### 3. Table settings 2022-07-27T00:40:45,804 To tailor your request, specify the following arguments: 2022-07-27T00:40:45,805 - `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`. 2022-07-27T00:40:45,805 - `fix_cr`: set to `True` to fix characters. Default value is `False`. 2022-07-27T00:40:45,806 - `drop`: add column names to be dropped (e.g., `drop="id name"` will drop columns `id` and `name`). 2022-07-27T00:40:45,806 - `obs`: add maxium number of observations (e.g., `obs=10` will import the first 10 rows from the table on WRDS). 2022-07-27T00:40:45,806 - `rename`: rename columns (e.g., `rename="fee=mngt_fee"` renames `fee` to `mngt_fee`). 2022-07-27T00:40:45,807 - `force`: set to `True` to force update. Default value is `False`. 2022-07-27T00:40:45,807 ## Importing SAS data into PostgreSQL 2022-07-27T00:40:45,808 The software can also upload SAS file directly to PostgreSQL. 2022-07-27T00:40:45,808 You need to have local SAS in order to use this function. 2022-07-27T00:40:45,808 Use `fpath` to specify the path to the file to be imported 2022-07-27T00:40:45,809 ### Examples 2022-07-27T00:40:45,809 Here are some examples. 2022-07-27T00:40:45,810 If you are at the home directory of this git repo, you can import and use the software as shown below. 2022-07-27T00:40:45,811 To install it from Github: 2022-07-27T00:40:45,811 ``` 2022-07-27T00:40:45,811 sudo -H pip3 install git+https://github.com/iangow/wrds2pg --upgrade 2022-07-27T00:40:45,812 ``` 2022-07-27T00:40:45,812 This software is also available from PyPI. To install it from [PyPI](https://pypi.org/project/wrds2pg/): 2022-07-27T00:40:45,813 ``` 2022-07-27T00:40:45,813 pip3 install wrds2pg 2022-07-27T00:40:45,813 ``` 2022-07-27T00:40:45,814 Example usage: 2022-07-27T00:40:45,814 ```py 2022-07-27T00:40:45,814 from wrds2pg import wrds_update 2022-07-27T00:40:45,815 # 1. Download crsp.mcti from wrds and upload to pg as crps.mcti 2022-07-27T00:40:45,815 # Simplest version 2022-07-27T00:40:45,815 wrds_update(table_name="mcti", schema="crsp") 2022-07-27T00:40:45,816 # Tailored arguments 2022-07-27T00:40:45,816 wrds_update(table_name="mcti", schema="crsp", host=your_pghost, 2022-07-27T00:40:45,817 dbname=your_pg_database, 2022-07-27T00:40:45,817 fix_missing=True, fix_cr=True, drop="b30ret b30ind", obs=10, 2022-07-27T00:40:45,817 rename="caldt=calendar_date", force=True) 2022-07-27T00:40:45,818 # 2. Upload test.sas7dbat to pg as crsp.mcti 2022-07-27T00:40:45,818 wrds_update(table_name="mcti", schema="crsp", fpath="your_path/test.sas7dbat") 2022-07-27T00:40:45,819 ``` 2022-07-27T00:40:45,819 ### Report bugs 2022-07-27T00:40:45,820 Author: Ian Gow, 2022-07-27T00:40:45,820 Contributor: Jingyu Zhang, 2022-07-27T00:40:45,820 running bdist_wheel 2022-07-27T00:40:47,010 running build 2022-07-27T00:40:47,011 running build_py 2022-07-27T00:40:47,638 creating build 2022-07-27T00:40:47,639 creating build/lib 2022-07-27T00:40:47,640 creating build/lib/wrds2pg 2022-07-27T00:40:47,642 copying wrds2pg/__init__.py -> build/lib/wrds2pg 2022-07-27T00:40:47,646 copying wrds2pg/wrds2pg.py -> build/lib/wrds2pg 2022-07-27T00:40:48,904 installing to build/bdist.linux-armv7l/wheel 2022-07-27T00:40:48,904 running install 2022-07-27T00:40:48,966 running install_lib 2022-07-27T00:40:49,639 creating build/bdist.linux-armv7l 2022-07-27T00:40:49,640 creating build/bdist.linux-armv7l/wheel 2022-07-27T00:40:49,643 creating build/bdist.linux-armv7l/wheel/wrds2pg 2022-07-27T00:40:49,645 copying build/lib/wrds2pg/__init__.py -> build/bdist.linux-armv7l/wheel/wrds2pg 2022-07-27T00:40:49,648 copying build/lib/wrds2pg/wrds2pg.py -> build/bdist.linux-armv7l/wheel/wrds2pg 2022-07-27T00:40:49,653 running install_egg_info 2022-07-27T00:40:50,936 running egg_info 2022-07-27T00:40:51,560 writing wrds2pg.egg-info/PKG-INFO 2022-07-27T00:40:52,149 writing dependency_links to wrds2pg.egg-info/dependency_links.txt 2022-07-27T00:40:55,299 writing requirements to wrds2pg.egg-info/requires.txt 2022-07-27T00:40:55,888 writing top-level names to wrds2pg.egg-info/top_level.txt 2022-07-27T00:40:55,932 reading manifest file 'wrds2pg.egg-info/SOURCES.txt' 2022-07-27T00:40:55,936 adding license file 'LICENCE' 2022-07-27T00:40:55,940 writing manifest file 'wrds2pg.egg-info/SOURCES.txt' 2022-07-27T00:40:55,943 Copying wrds2pg.egg-info to build/bdist.linux-armv7l/wheel/wrds2pg-1.0.12-py3.7.egg-info 2022-07-27T00:40:55,964 running install_scripts 2022-07-27T00:40:56,118 adding license file "LICENCE" (matched pattern "LICEN[CS]E*") 2022-07-27T00:40:56,125 creating build/bdist.linux-armv7l/wheel/wrds2pg-1.0.12.dist-info/WHEEL 2022-07-27T00:40:56,129 creating '/tmp/pip-wheel-g1vfal_v/tmpu2e9f0io/wrds2pg-1.0.12-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it 2022-07-27T00:40:56,133 adding 'wrds2pg/__init__.py' 2022-07-27T00:40:56,140 adding 'wrds2pg/wrds2pg.py' 2022-07-27T00:40:56,144 adding 'wrds2pg-1.0.12.dist-info/LICENCE' 2022-07-27T00:40:56,147 adding 'wrds2pg-1.0.12.dist-info/METADATA' 2022-07-27T00:40:56,149 adding 'wrds2pg-1.0.12.dist-info/WHEEL' 2022-07-27T00:40:56,150 adding 'wrds2pg-1.0.12.dist-info/top_level.txt' 2022-07-27T00:40:56,152 adding 'wrds2pg-1.0.12.dist-info/RECORD' 2022-07-27T00:40:56,154 removing build/bdist.linux-armv7l/wheel 2022-07-27T00:40:56,421 Building wheel for wrds2pg (pyproject.toml): finished with status 'done' 2022-07-27T00:40:56,433 Created wheel for wrds2pg: filename=wrds2pg-1.0.12-py3-none-any.whl size=9578 sha256=a49ec8094e122aa39eaf87b3eaf04951ba358b7de814db7232d3d23db0ee7321 2022-07-27T00:40:56,436 Stored in directory: /tmp/pip-ephem-wheel-cache-4ync8eo7/wheels/af/2e/58/911006d73c7280a90fe2dbfe5370fe24ba703a674ead664814 2022-07-27T00:40:56,458 Successfully built wrds2pg 2022-07-27T00:40:56,466 Removed build tracker: '/tmp/pip-build-tracker-bixegris'