diff --git a/env.d/opendata b/env.d/opendata index c440d374..436791d1 100644 --- a/env.d/opendata +++ b/env.d/opendata @@ -1,4 +1,4 @@ ENV_FOR_DYNACONF=development -DATA7_DATABASE_URL=postgresql+asyncpg://qualicharge:pass@postgresql:5432/qualicharge-api +DATA7_DATABASE_URL=postgresql+psycopg://qualicharge:pass@postgresql:5432/qualicharge-api DATA7_HOST=0.0.0.0 DATA7_PORT=8000 diff --git a/src/opendata/CHANGELOG.md b/src/opendata/CHANGELOG.md index b810ebeb..67a5ee90 100644 --- a/src/opendata/CHANGELOG.md +++ b/src/opendata/CHANGELOG.md @@ -10,6 +10,6 @@ and this project adheres to ### Added -- Configured Data7 0.5.0 +- Configured Data7 0.6.0 [unreleased]: https://github.com/MTES-MCT/qualicharge/ diff --git a/src/opendata/Pipfile b/src/opendata/Pipfile index 386410d8..8859ddcd 100644 --- a/src/opendata/Pipfile +++ b/src/opendata/Pipfile @@ -4,8 +4,8 @@ verify_ssl = true name = "pypi" [packages] -data7 = "==0.5.0" -databases = {extras = ["asyncpg"], version = "==0.9.0"} +data7 = "==0.6.0" +psycopg = {extras = ["binary", "pool"], version = "==3.2.1"} [dev-packages] honcho = "==1.1.0" diff --git a/src/opendata/Pipfile.lock b/src/opendata/Pipfile.lock index bdacddf5..9716efb4 100644 --- a/src/opendata/Pipfile.lock +++ b/src/opendata/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "5fecaeafb073cee15deaff3b1148e53fe572429583033f9d3842bf37dfcde658" + "sha256": "f2a4ba60c1e04b9bcf26d4a0c3133380bc368f9d334ad283a471de891d7f73c9" }, "pipfile-spec": 6, "requires": { @@ -16,13 +16,6 @@ ] }, "default": { - "aiosqlite": { - "hashes": [ - "sha256:36a1deaca0cac40ebe32aac9977a6e2bbc7f5189f23f4a54d5908986729e5bd6", - "sha256:6d35c8c256637f4672f843c31021464090805bf925385ac39473fb16eaaca3d7" - ], - "version": "==0.20.0" - }, "anyio": { "hashes": [ "sha256:5aadc6a1bbb7cdb0bede386cac5e2940f5e2ff3aa20277e991cf028e0585ce94", @@ -31,52 +24,6 @@ "markers": "python_version >= '3.8'", "version": "==4.4.0" }, - "asyncpg": { - "hashes": [ - "sha256:0009a300cae37b8c525e5b449233d59cd9868fd35431abc470a3e364d2b85cb9", - "sha256:000c996c53c04770798053e1730d34e30cb645ad95a63265aec82da9093d88e7", - "sha256:012d01df61e009015944ac7543d6ee30c2dc1eb2f6b10b62a3f598beb6531548", - "sha256:039a261af4f38f949095e1e780bae84a25ffe3e370175193174eb08d3cecab23", - "sha256:103aad2b92d1506700cbf51cd8bb5441e7e72e87a7b3a2ca4e32c840f051a6a3", - "sha256:1e186427c88225ef730555f5fdda6c1812daa884064bfe6bc462fd3a71c4b675", - "sha256:2245be8ec5047a605e0b454c894e54bf2ec787ac04b1cb7e0d3c67aa1e32f0fe", - "sha256:37a2ec1b9ff88d8773d3eb6d3784dc7e3fee7756a5317b67f923172a4748a175", - "sha256:48e7c58b516057126b363cec8ca02b804644fd012ef8e6c7e23386b7d5e6ce83", - "sha256:52e8f8f9ff6e21f9b39ca9f8e3e33a5fcdceaf5667a8c5c32bee158e313be385", - "sha256:5340dd515d7e52f4c11ada32171d87c05570479dc01dc66d03ee3e150fb695da", - "sha256:54858bc25b49d1114178d65a88e48ad50cb2b6f3e475caa0f0c092d5f527c106", - "sha256:5b52e46f165585fd6af4863f268566668407c76b2c72d366bb8b522fa66f1870", - "sha256:5bbb7f2cafd8d1fa3e65431833de2642f4b2124be61a449fa064e1a08d27e449", - "sha256:5cad1324dbb33f3ca0cd2074d5114354ed3be2b94d48ddfd88af75ebda7c43cc", - "sha256:6011b0dc29886ab424dc042bf9eeb507670a3b40aece3439944006aafe023178", - "sha256:642a36eb41b6313ffa328e8a5c5c2b5bea6ee138546c9c3cf1bffaad8ee36dd9", - "sha256:6feaf2d8f9138d190e5ec4390c1715c3e87b37715cd69b2c3dfca616134efd2b", - "sha256:72fd0ef9f00aeed37179c62282a3d14262dbbafb74ec0ba16e1b1864d8a12169", - "sha256:746e80d83ad5d5464cfbf94315eb6744222ab00aa4e522b704322fb182b83610", - "sha256:76c3ac6530904838a4b650b2880f8e7af938ee049e769ec2fba7cd66469d7772", - "sha256:797ab8123ebaed304a1fad4d7576d5376c3a006a4100380fb9d517f0b59c1ab2", - "sha256:8d36c7f14a22ec9e928f15f92a48207546ffe68bc412f3be718eedccdf10dc5c", - "sha256:97eb024685b1d7e72b1972863de527c11ff87960837919dac6e34754768098eb", - "sha256:a65c1dcd820d5aea7c7d82a3fdcb70e096f8f70d1a8bf93eb458e49bfad036ac", - "sha256:a921372bbd0aa3a5822dd0409da61b4cd50df89ae85150149f8c119f23e8c408", - "sha256:a9e6823a7012be8b68301342ba33b4740e5a166f6bbda0aee32bc01638491a22", - "sha256:b544ffc66b039d5ec5a7454667f855f7fec08e0dfaf5a5490dfafbb7abbd2cfb", - "sha256:bb1292d9fad43112a85e98ecdc2e051602bce97c199920586be83254d9dafc02", - "sha256:bde17a1861cf10d5afce80a36fca736a86769ab3579532c03e45f83ba8a09c59", - "sha256:cce08a178858b426ae1aa8409b5cc171def45d4293626e7aa6510696d46decd8", - "sha256:cfe73ffae35f518cfd6e4e5f5abb2618ceb5ef02a2365ce64f132601000587d3", - "sha256:d1c49e1f44fffafd9a55e1a9b101590859d881d639ea2922516f5d9c512d354e", - "sha256:d4900ee08e85af01adb207519bb4e14b1cae8fd21e0ccf80fac6aa60b6da37b4", - "sha256:d84156d5fb530b06c493f9e7635aa18f518fa1d1395ef240d211cb563c4e2364", - "sha256:dc600ee8ef3dd38b8d67421359779f8ccec30b463e7aec7ed481c8346decf99f", - "sha256:e0bfe9c4d3429706cf70d3249089de14d6a01192d617e9093a8e941fea8ee775", - "sha256:e17b52c6cf83e170d3d865571ba574577ab8e533e7361a2b8ce6157d02c665d3", - "sha256:f100d23f273555f4b19b74a96840aa27b85e99ba4b1f18d4ebff0734e78dc090", - "sha256:f9ea3f24eb4c49a615573724d88a48bd1b7821c890c2effe04f05382ed9e8810", - "sha256:ff8e8109cd6a46ff852a5e6bab8b0a047d7ea42fcb7ca5ae6eaae97d8eacf397" - ], - "version": "==0.29.0" - }, "certifi": { "hashes": [ "sha256:5a1e7645bc0ec61a09e26c36f6106dd4cf40c6db3a1fb6352b0244e7fb057c7b", @@ -95,23 +42,12 @@ }, "data7": { "hashes": [ - "sha256:7fd198e4473c746d371524e4f16f1142c7afdafde86d86d3ecde1a5633d7d11c", - "sha256:f1c3369dffff4aca90310e91ca05f3b0771245f2030f129e12ef45d9abb0b70b" + "sha256:8020b8e88b2c86d863cc742a011fc1a305f663b2984f8b5945f14180872a51c5", + "sha256:d14d7369041abb2ceb5c5e5fce9d8916d0ce99af6266225c48cb424446362788" ], "index": "pypi", "markers": "python_version >= '3.11' and python_version < '4.0'", - "version": "==0.5.0" - }, - "databases": { - "extras": [ - "asyncpg" - ], - "hashes": [ - "sha256:9ee657c9863b34f8d3a06c06eafbe1bda68af2a434b56996312edf1f1c0b6297", - "sha256:d2f259677609bf187737644c95fa41701072e995dfeb8d2882f335795c5b61b0" - ], - "markers": "python_version >= '3.8'", - "version": "==0.9.0" + "version": "==0.6.0" }, "dynaconf": { "hashes": [ @@ -306,9 +242,121 @@ "sha256:fbd6acc766814ea6443628f4e6751d0da6593dae29c08c0b2606164db026970c", "sha256:feff59f27338135776f6d4e2ec7aeeac5d5f7a08a83e80869121ef8164b74af9" ], - "markers": "python_version >= '3.9'", + "markers": "python_version >= '3.12'", "version": "==2.0.0" }, + "pandas": { + "hashes": [ + "sha256:001910ad31abc7bf06f49dcc903755d2f7f3a9186c0c040b827e522e9cef0863", + "sha256:0ca6377b8fca51815f382bd0b697a0814c8bda55115678cbc94c30aacbb6eff2", + "sha256:0cace394b6ea70c01ca1595f839cf193df35d1575986e484ad35c4aeae7266c1", + "sha256:1cb51fe389360f3b5a4d57dbd2848a5f033350336ca3b340d1c53a1fad33bcad", + "sha256:2925720037f06e89af896c70bca73459d7e6a4be96f9de79e2d440bd499fe0db", + "sha256:3e374f59e440d4ab45ca2fffde54b81ac3834cf5ae2cdfa69c90bc03bde04d76", + "sha256:40ae1dffb3967a52203105a077415a86044a2bea011b5f321c6aa64b379a3f51", + "sha256:43498c0bdb43d55cb162cdc8c06fac328ccb5d2eabe3cadeb3529ae6f0517c32", + "sha256:4abfe0be0d7221be4f12552995e58723c7422c80a659da13ca382697de830c08", + "sha256:58b84b91b0b9f4bafac2a0ac55002280c094dfc6402402332c0913a59654ab2b", + "sha256:640cef9aa381b60e296db324337a554aeeb883ead99dc8f6c18e81a93942f5f4", + "sha256:66b479b0bd07204e37583c191535505410daa8df638fd8e75ae1b383851fe921", + "sha256:696039430f7a562b74fa45f540aca068ea85fa34c244d0deee539cb6d70aa288", + "sha256:6d2123dc9ad6a814bcdea0f099885276b31b24f7edf40f6cdbc0912672e22eee", + "sha256:8635c16bf3d99040fdf3ca3db669a7250ddf49c55dc4aa8fe0ae0fa8d6dcc1f0", + "sha256:873d13d177501a28b2756375d59816c365e42ed8417b41665f346289adc68d24", + "sha256:8e5a0b00e1e56a842f922e7fae8ae4077aee4af0acb5ae3622bd4b4c30aedf99", + "sha256:8e90497254aacacbc4ea6ae5e7a8cd75629d6ad2b30025a4a8b09aa4faf55151", + "sha256:9057e6aa78a584bc93a13f0a9bf7e753a5e9770a30b4d758b8d5f2a62a9433cd", + "sha256:90c6fca2acf139569e74e8781709dccb6fe25940488755716d1d354d6bc58bce", + "sha256:92fd6b027924a7e178ac202cfbe25e53368db90d56872d20ffae94b96c7acc57", + "sha256:9dfde2a0ddef507a631dc9dc4af6a9489d5e2e740e226ad426a05cabfbd7c8ef", + "sha256:9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54", + "sha256:a77e9d1c386196879aa5eb712e77461aaee433e54c68cf253053a73b7e49c33a", + "sha256:c7adfc142dac335d8c1e0dcbd37eb8617eac386596eb9e1a1b77791cf2498238", + "sha256:d187d355ecec3629624fccb01d104da7d7f391db0311145817525281e2804d23", + "sha256:ddf818e4e6c7c6f4f7c8a12709696d193976b591cc7dc50588d3d1a6b5dc8772", + "sha256:e9b79011ff7a0f4b1d6da6a61aa1aa604fb312d6647de5bad20013682d1429ce", + "sha256:eee3a87076c0756de40b05c5e9a6069c035ba43e8dd71c379e68cab2c20f16ad" + ], + "markers": "python_version >= '3.9'", + "version": "==2.2.2" + }, + "psycopg": { + "extras": [ + "binary", + "pool" + ], + "hashes": [ + "sha256:dc8da6dc8729dacacda3cc2f17d2c9397a70a66cf0d2b69c91065d60d5f00cb7", + "sha256:ece385fb413a37db332f97c49208b36cf030ff02b199d7635ed2fbd378724175" + ], + "markers": "python_version >= '3.8'", + "version": "==3.2.1" + }, + "psycopg-binary": { + "hashes": [ + "sha256:059cbd4e6da2337e17707178fe49464ed01de867dc86c677b30751755ec1dc51", + "sha256:06a7aae34edfe179ddc04da005e083ff6c6b0020000399a2cbf0a7121a8a22ea", + "sha256:0879b5d76b7d48678d31278242aaf951bc2d69ca4e4d7cef117e4bbf7bfefda9", + "sha256:0ab58213cc976a1666f66bc1cb2e602315cd753b7981a8e17237ac2a185bd4a1", + "sha256:0b018631e5c80ce9bc210b71ea885932f9cca6db131e4df505653d7e3873a938", + "sha256:101472468d59c74bb8565fab603e032803fd533d16be4b2d13da1bab8deb32a3", + "sha256:1d353e028b8f848b9784450fc2abf149d53a738d451eab3ee4c85703438128b9", + "sha256:1d6833f607f3fc7b22226a9e121235d3b84c0eda1d3caab174673ef698f63788", + "sha256:21927f41c4d722ae8eb30d62a6ce732c398eac230509af5ba1749a337f8a63e2", + "sha256:28ada5f610468c57d8a4a055a8ea915d0085a43d794266c4f3b9d02f4288f4db", + "sha256:2e8213bf50af073b1aa8dc3cff123bfeedac86332a16c1b7274910bc88a847c7", + "sha256:302b86f92c0d76e99fe1b5c22c492ae519ce8b98b88d37ef74fda4c9e24c6b46", + "sha256:334046a937bb086c36e2c6889fe327f9f29bfc085d678f70fac0b0618949f674", + "sha256:33e6669091d09f8ba36e10ce678a6d9916e110446236a9b92346464a3565635e", + "sha256:3c838806eeb99af39f934b7999e35f947a8e577997cc892c12b5053a97a9057f", + "sha256:40bb515d042f6a345714ec0403df68ccf13f73b05e567837d80c886c7c9d3805", + "sha256:413977d18412ff83486eeb5875eb00b185a9391c57febac45b8993bf9c0ff489", + "sha256:415c3b72ea32119163255c6504085f374e47ae7345f14bc3f0ef1f6e0976a879", + "sha256:42781ba94e8842ee98bca5a7d0c44cc9d067500fedca2d6a90fa3609b6d16b42", + "sha256:463d55345f73ff391df8177a185ad57b552915ad33f5cc2b31b930500c068b22", + "sha256:4a42b8f9ab39affcd5249b45cac763ac3cf12df962b67e23fd15a2ee2932afe5", + "sha256:4c84fcac8a3a3479ac14673095cc4e1fdba2935499f72c436785ac679bec0d1a", + "sha256:592b27d6c46a40f9eeaaeea7c1fef6f3c60b02c634365eb649b2d880669f149f", + "sha256:62b1b7b07e00ee490afb39c0a47d8282a9c2822c7cfed9553a04b0058adf7e7f", + "sha256:6418712ba63cebb0c88c050b3997185b0ef54173b36568522d5634ac06153040", + "sha256:6f9e13600647087df5928875559f0eb8f496f53e6278b7da9511b4b3d0aff960", + "sha256:7066d3dca196ed0dc6172f9777b2d62e4f138705886be656cccff2d555234d60", + "sha256:73f9c9b984be9c322b5ec1515b12df1ee5896029f5e72d46160eb6517438659c", + "sha256:74d623261655a169bc84a9669890975c229f2fa6e19a7f2d10a77675dcf1a707", + "sha256:788ffc43d7517c13e624c83e0e553b7b8823c9655e18296566d36a829bfb373f", + "sha256:78c2007caf3c90f08685c5378e3ceb142bafd5636be7495f7d86ec8a977eaeef", + "sha256:7a84b5eb194a258116154b2a4ff2962ea60ea52de089508db23a51d3d6b1c7d1", + "sha256:7ce965caf618061817f66c0906f0452aef966c293ae0933d4fa5a16ea6eaf5bb", + "sha256:84837e99353d16c6980603b362d0f03302d4b06c71672a6651f38df8a482923d", + "sha256:8f28ff0cb9f1defdc4a6f8c958bf6787274247e7dfeca811f6e2f56602695fb1", + "sha256:921f0c7f39590763d64a619de84d1b142587acc70fd11cbb5ba8fa39786f3073", + "sha256:950fd666ec9e9fe6a8eeb2b5a8f17301790e518953730ad44d715b59ffdbc67f", + "sha256:9a997efbaadb5e1a294fb5760e2f5643d7b8e4e3fe6cb6f09e6d605fd28e0291", + "sha256:aa3931f308ab4a479d0ee22dc04bea867a6365cac0172e5ddcba359da043854b", + "sha256:af0469c00f24c4bec18c3d2ede124bf62688d88d1b8a5f3c3edc2f61046fe0d7", + "sha256:b0104a72a17aa84b3b7dcab6c84826c595355bf54bb6ea6d284dcb06d99c6801", + "sha256:b09e8a576a2ac69d695032ee76f31e03b30781828b5dd6d18c6a009e5a3d1c35", + "sha256:b140182830c76c74d17eba27df3755a46442ce8d4fb299e7f1cf2f74a87c877b", + "sha256:b1f087bd84bdcac78bf9f024ebdbfacd07fc0a23ec8191448a50679e2ac4a19e", + "sha256:c1d2b6438fb83376f43ebb798bf0ad5e57bc56c03c9c29c85bc15405c8c0ac5a", + "sha256:cad2de17804c4cfee8640ae2b279d616bb9e4734ac3c17c13db5e40982bd710d", + "sha256:cc304a46be1e291031148d9d95c12451ffe783ff0cc72f18e2cc7ec43cdb8c68", + "sha256:dc314a47d44fe1a8069b075a64abffad347a3a1d8652fed1bab5d3baea37acb2", + "sha256:f092114f10f81fb6bae544a0ec027eb720e2d9c74a4fcdaa9dd3899873136935", + "sha256:f34e369891f77d0738e5d25727c307d06d5344948771e5379ea29c76c6d84555", + "sha256:f8a509aeaac364fa965454e80cd110fe6d48ba2c80f56c9b8563423f0b5c3cfd", + "sha256:f8afb07114ea9b924a4a0305ceb15354ccf0ef3c0e14d54b8dbeb03e50182dd7", + "sha256:f99e59f8a5f4dcd9cbdec445f3d8ac950a492fc0e211032384d6992ed3c17eb7" + ], + "version": "==3.2.1" + }, + "psycopg-pool": { + "hashes": [ + "sha256:273081d0fbfaced4f35e69200c89cb8fbddfe277c38cc86c235b90a2ec2c8153", + "sha256:9e22c370045f6d7f2666a5ad1b0caf345f9f1912195b0b25d0d3bcc4f3a7389c" + ], + "version": "==3.2.2" + }, "pyarrow": { "hashes": [ "sha256:06ebccb6f8cb7357de85f60d5da50e83507954af617d7b05f48af1621d331c9a", @@ -359,6 +407,80 @@ "markers": "python_version >= '3.8'", "version": "==2.18.0" }, + "pyinstrument": { + "hashes": [ + "sha256:0002ee517ed8502bbda6eb2bb1ba8f95a55492fcdf03811ba13d4806e50dd7f6", + "sha256:01fc45dedceec3df81668d702bca6d400d956c8b8494abc206638c167c78dfd9", + "sha256:06a8578b2943eb1dbbf281e1e59e44246acfefd79e1b06d4950f01b693de12af", + "sha256:08fdc7f88c989316fa47805234c37a40fafe7b614afd8ae863f0afa9d1707b37", + "sha256:0de2c1714a37a820033b19cf134ead43299a02662f1379140974a9ab733c5f3a", + "sha256:113d2fc534c9ca7b6b5661d6ada05515bf318f6eb34e8d05860fe49eb7cfe17e", + "sha256:1e474c56da636253dfdca7cd1998b240d6b39f7ed34777362db69224fcf053b1", + "sha256:20e15b4e1d29ba0b7fc81aac50351e0dc0d7e911e93771ebc3f408e864a2c93b", + "sha256:23c3e3ca8553b9aac09bd978c73d21b9032c707ac6d803bae6a20ecc048df4a8", + "sha256:28af084aa84bbfd3620ebe71d5f9a0deca4451267f363738ca824f733de55056", + "sha256:2e625fc6ffcd4fd420493edd8276179c3f784df207bef4c2192725c1b310534c", + "sha256:2fd8e547cf3df5f0ec6e4dffbe2e857f6b28eda51b71c3c0b5a2fc0646527835", + "sha256:3098cd72b71a322a72dafeb4ba5c566465e193d2030adad4c09566bd2f89bf4f", + "sha256:32ec8db6896b94af790a530e1e0edad4d0f941a0ab8dd9073e5993e7ea46af7d", + "sha256:34e59e91c88ec9ad5630c0964eca823949005e97736bfa838beb4789e94912a2", + "sha256:3a165e0d2deb212d4cf439383982a831682009e1b08733c568cac88c89784e62", + "sha256:46992e855d630575ec635eeca0068a8ddf423d4fd32ea0875a94e9f8688f0b95", + "sha256:4fba3244e94c117bf4d9b30b8852bbdcd510e7329fdd5c7c8b3799e00a9215a8", + "sha256:5b6e161ef268d43ee6bbfae7fd2cdd0a52c099ddd21001c126ca1805dc906539", + "sha256:5ebeba952c0056dcc9b9355328c78c4b5c2a33b4b4276a9157a3ab589f3d1bac", + "sha256:5f329f5534ca069420246f5ce57270d975229bcb92a3a3fd6b2ca086527d9764", + "sha256:62f6014d2b928b181a52483e7c7b82f2c27e22c577417d1681153e5518f03317", + "sha256:67268bb0d579330cff40fd1c90b8510363ca1a0e7204225840614068658dab77", + "sha256:6ba8e368d0421f15ba6366dfd60ec131c1b46505d021477e0f865d26cf35a605", + "sha256:6c0f0e1d8f8c70faa90ff57f78ac0dda774b52ea0bfb2d9f0f41ce6f3e7c869e", + "sha256:6c761372945e60fc1396b7a49f30592e8474e70a558f1a87346d27c8c4ce50f7", + "sha256:6ed4e8c6c84e0e6429ba7008a66e435ede2d8cb027794c20923c55669d9c5633", + "sha256:73db0c2c99119c65b075feee76e903b4ed82e59440fe8b5724acf5c7cb24721f", + "sha256:7a1b1cd768ea7ea9ab6f5490f7e74431321bcc463e9441dbc2f769617252d9e2", + "sha256:7ba858b3d6f6e5597c641edcc0e7e464f85aba86d71bc3b3592cb89897bf43f6", + "sha256:7bd3da31c46f1c1cb7ae89031725f6a1d1015c2041d9c753fe23980f5f9fd86c", + "sha256:7c671057fad22ee3ded897a6a361204ea2538e44c1233cad0e8e30f6d27f33db", + "sha256:803ac64e526473d64283f504df3b0d5c2c203ea9603cab428641538ffdc753a7", + "sha256:8a386b9d09d167451fb2111eaf86aabf6e094fed42c15f62ec51d6980bce7d96", + "sha256:8a9791bf8916c1cf439c202fded32de93354b0f57328f303d71950b0027c7811", + "sha256:8b3c44cb037ad0d6e9d9a48c14d856254ada641fbd0ae9de40da045fc2226a2a", + "sha256:8d104b7a7899d5fa4c5bf1ceb0c1a070615a72c5dc17bc321b612467ad5c5d88", + "sha256:90350533396071cb2543affe01e40bf534c35cb0d4b8fa9fdb0f052f9ca2cfe3", + "sha256:a59fc4f7db738a094823afe6422509fa5816a7bf74e768ce5a7a2ddd91af40ac", + "sha256:af1a953bce9fd530040895d01ff3de485e25e1576dccb014f76ba9131376fcad", + "sha256:b082df0bbf71251a7f4880a12ed28421dba84ea7110bb376e0533067a4eaff40", + "sha256:b2b66ff0b16c8ecf1ec22de001cfff46872b2c163c62429055105564eef50b2e", + "sha256:b55983a884f083f93f0fc6d12ff8df0acd1e2fb0580d2f4c7bfe6def33a84b58", + "sha256:baf375953b02fe94d00e716f060e60211ede73f49512b96687335f7071adb153", + "sha256:be9901f17ac2f527c352f2fdca3d717c1d7f2ce8a70bad5a490fc8cc5d2a6007", + "sha256:cd0320c39e99e3c0a3129d1ed010ac41e5a7eb96fb79900d270080a97962e995", + "sha256:d02f31fa13a9e8dc702a113878419deba859563a32474c9f68e04619d43d6f01", + "sha256:d4b559322f30509ad8f082561792352d0805b3edfa508e492a36041fdc009259", + "sha256:d4dcdcc7ba224a0c5edfbd00b0f530f5aed2b26da5aaa2f9af5519d4aa8c7e41", + "sha256:d6162615e783c59e36f2d7caf903a7e3ecb6b32d4a4ae8907f2760b2ef395bf6", + "sha256:da58f265326f3cf3975366ccb8b39014f1e69ff8327958a089858d71c633d654", + "sha256:dcb5c8d763c5df55131670ba2a01a8aebd0d490a789904a55eb6a8b8d497f110", + "sha256:dd5c53a0159126b5ce7cbc4994433c9c671e057c85297ff32645166a06ad2c50", + "sha256:dd6007d3c2e318e09e582435dd8d111cccf30d342af66886b783208813caf3d7", + "sha256:e2e554b1bb0df78f5ce8a92df75b664912ca93aa94208386102af454ec31b647", + "sha256:e3813c8ecfab9d7d855c5f0f71f11793cf1507f40401aa33575c7fd613577c23", + "sha256:e63f4916001aa9c625976a50779282e0a5b5e9b17c52a50ef4c651e468ed5b88", + "sha256:edca46f04a573ac2fb11a84b937844e6a109f38f80f4b422222fb5be8ecad8cb", + "sha256:fdc0a53b27e5d8e47147489c7dab596ddd1756b1e053217ef5bc6718567099ff", + "sha256:feebcf860f955401df30d029ec8de7a0c5515d24ea809736430fd1219686fe14" + ], + "markers": "python_version >= '3.7'", + "version": "==4.6.2" + }, + "python-dateutil": { + "hashes": [ + "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", + "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==2.9.0.post0" + }, "python-dotenv": { "hashes": [ "sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca", @@ -366,6 +488,13 @@ ], "version": "==1.0.1" }, + "pytz": { + "hashes": [ + "sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812", + "sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319" + ], + "version": "==2024.1" + }, "pyyaml": { "hashes": [ "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5", @@ -449,6 +578,14 @@ "markers": "python_version >= '3.7'", "version": "==1.5.4" }, + "six": { + "hashes": [ + "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", + "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==1.16.0" + }, "sniffio": { "hashes": [ "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", @@ -536,6 +673,14 @@ "markers": "python_version >= '3.8'", "version": "==4.12.2" }, + "tzdata": { + "hashes": [ + "sha256:2674120f8d891909751c38abcdfd386ac0a5a1127954fbc332af6b5ceae07efd", + "sha256:9068bc196136463f5245e51efda838afa15aaeca9903f49050dfa2679db4d252" + ], + "markers": "python_version >= '2'", + "version": "==2024.1" + }, "urllib3": { "hashes": [ "sha256:a448b2f64d686155468037e1ace9f2d2199776e17f0a46610480d311f73e3472", diff --git a/src/opendata/settings.yaml b/src/opendata/settings.yaml index 33cd4591..bd076ee0 100644 --- a/src/opendata/settings.yaml +++ b/src/opendata/settings.yaml @@ -7,24 +7,38 @@ global: # The base url path for dataset urls datasets_root_url: "/d" - # Parquet - parquet_batch_size: 100 + # Pandas chunks + chunk_size: 5000 + schema_sniffer_size: 1000 + default_dtype_backend: pyarrow + + # Pyinstrument + profiler_interval: 0.001 + profiler_async_mode: enabled # ---- DEFAULT --------------------------------- default: + # Set debug to true for development, never for production! debug: false + # Server + # host: + # port: + # Sentry sentry_dsn: null sentry_traces_sample_rate: 1.0 + # Pyinstrument + profiling: false + # ---- PRODUCTION ------------------------------ production: execution_environment: production + + # Set debug to true for development, never for production! debug: false - # The following variables will be set via environment variables - # # Server # host: data7.example.com # port: 8080 @@ -33,6 +47,12 @@ production: # sentry_dsn: # sentry_traces_sample_rate: 1.0 + # Pyinstrument + profiling: false + +# +# /!\ FEEL FREE TO REMOVE ENVIRONMENTS BELOW /!\ +# # ---- DEVELOPMENT ----------------------------- development: execution_environment: development @@ -41,3 +61,10 @@ development: # Server host: "0.0.0.0" port: 8000 + + # Pyinstrument + profiling: true + +# ---- TESTING --------------------------------- +testing: + execution_environment: testing