diff --git a/Pipfile b/Pipfile index 17a250e..8e15828 100644 --- a/Pipfile +++ b/Pipfile @@ -20,7 +20,7 @@ coverage = "*" [packages] click = ">=8,<9" -starlette = ">=0.23,<0.24" +starlette = ">=0.31,<0.32" uvicorn = ">=0.13,<1" orjson = ">=3.8.5,<4" pyjwt = ">=2.6.0,<2.7.0" diff --git a/Pipfile.lock b/Pipfile.lock index c08689f..bd42851 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "2989d46cda8b91ba09edb3c17ec2be47a2f668431c802a26eebfc8d885e4f5cf" + "sha256": "70be7e150d4e71a5882501aa1b9f1a8a143ec79562cbb2f9bd15455220d7f841" }, "pipfile-spec": 6, "requires": {}, @@ -56,55 +56,65 @@ }, "orjson": { "hashes": [ - "sha256:00c983896c2e01c94c0ef72fd7373b2aa06d0c0eed0342c4884559f812a6835b", - "sha256:02ef014f9a605e84b675060785e37ec9c0d2347a04f1307a9d6840ab8ecd6f55", - "sha256:0325fe2d69512187761f7368c8cda1959bcb75fc56b8e7a884e9569112320e57", - "sha256:03fb36f187a0c19ff38f6289418863df8b9b7880cdbe279e920bef3a09d8dab1", - "sha256:0b9a26f1d1427a9101a1e8910f2e2df1f44d3d18ad5480ba031b15d5c1cb282e", - "sha256:1272688ea1865f711b01ba479dea2d53e037ea00892fd04196b5875f7021d9d3", - "sha256:16fdf5a82df80c544c3c91516ab3882cd1ac4f1f84eefeafa642e05cef5f6699", - "sha256:1882a70bb69595b9ec5aac0040a819e94d2833fe54901e2b32f5e734bc259a8b", - "sha256:1a6cdfcf9c7dd4026b2b01fdff56986251dc0cc1e980c690c79eec3ae07b36e7", - "sha256:1aaa46d7d4ae55335f635eadc9be0bd9bcf742e6757209fc6dc697e390010adc", - "sha256:205925b179550a4ee39b8418dd4c94ad6b777d165d7d22614771c771d44f57bd", - "sha256:20925d07a97c49c6305bff1635318d9fc1804aa4ccacb5fb0deb8a910e57d97a", - "sha256:24257c8f641979bf25ecd3e27251b5cc194cdd3a6e96004aac8446f5e63d9664", - "sha256:275b5a18fd9ed60b2720543d3ddac170051c43d680e47d04ff5203d2c6d8ebf1", - "sha256:2e52c67ed6bb368083aa2078ea3ccbd9721920b93d4b06c43eb4e20c4c860046", - "sha256:2ee743e8890b16c87a2f89733f983370672272b61ee77429c0a5899b2c98c1a7", - "sha256:3164fc20a585ec30a9aff33ad5de3b20ce85702b2b2a456852c413e3f0d7ab09", - "sha256:3245d230370f571c945f69aab823c279a868dc877352817e22e551de155cb06c", - "sha256:368e9cc91ecb7ac21f2aa475e1901204110cf3e714e98649c2502227d248f947", - "sha256:4a39c2529d75373b7167bf84c814ef9b8f3737a339c225ed6c0df40736df8748", - "sha256:58e9e70f0dcd6a802c35887f306b555ff7a214840aad7de24901fc8bd9cf5dde", - "sha256:5a60a1cfcfe310547a1946506dd4f1ed0a7d5bd5b02c8697d9d5dcd8d2e9245e", - "sha256:6320b28e7bdb58c3a3a5efffe04b9edad3318d82409e84670a9b24e8035a249d", - "sha256:6a5ca55b0d8f25f18b471e34abaee4b175924b6cd62f59992945b25963443141", - "sha256:7323e4ca8322b1ecb87562f1ec2491831c086d9faa9a6c6503f489dadbed37d7", - "sha256:7a6ccadf788531595ed4728aa746bc271955448d2460ff0ef8e21eb3f2a281ba", - "sha256:7d74ae0e101d17c22ef67b741ba356ab896fc0fa64b301c2bf2bb0a4d874b190", - "sha256:806704cd58708acc66a064a9a58e3be25cf1c3f9f159e8757bd3f515bfabdfa1", - "sha256:8170157288714678ffd64f5de33039e1164a73fd8b6be40a8a273f80093f5c4f", - "sha256:84ebd6fdf138eb0eb4280045442331ee71c0aab5e16397ba6645f32f911bfb37", - "sha256:869b961df5fcedf6c79f4096119b35679b63272362e9b745e668f0391a892d39", - "sha256:877872db2c0f41fbe21f852ff642ca842a43bc34895b70f71c9d575df31fffb4", - "sha256:8cd4385c59bbc1433cad4a80aca65d2d9039646a9c57f8084897549b55913b17", - "sha256:93864dec3e3dd058a2dbe488d11ac0345214a6a12697f53a63e34de7d28d4257", - "sha256:992af54265ada1c1579500d6594ed73fe333e726de70d64919cf37f93defdd06", - "sha256:a40958f7af7c6d992ee67b2da4098dca8b770fc3b4b3834d540477788bfa76d3", - "sha256:a74036aab1a80c361039290cdbc51aa7adc7ea13f56e5ef94e9be536abd227bd", - "sha256:b7b065942d362aad4818ff599d2f104c35a565c2cbcbab8c09ec49edba91da75", - "sha256:b9aea6dcb99fcbc9f6d1dd84fca92322fda261da7fb014514bb4689c7c2097a8", - "sha256:c290c4f81e8fd0c1683638802c11610b2f722b540f8e5e858b6914b495cf90c8", - "sha256:d7de3dbbe74109ae598692113cec327fd30c5a30ebca819b21dfa4052f7b08ef", - "sha256:e3e2f087161947dafe8319ea2cfcb9cea4bb9d2172ecc60ac3c9738f72ef2909", - "sha256:e46e9c5b404bb9e41d5555762fd410d5466b7eb1ec170ad1b1609cbebe71df21", - "sha256:eebfed53bec5674e981ebe8ed2cf00b3f7bcda62d634733ff779c264307ea505", - "sha256:f8bc2c40d9bb26efefb10949d261a47ca196772c308babc538dd9f4b73e8d386", - "sha256:fc05e060d452145ab3c0b5420769e7356050ea311fc03cb9d79c481982917cca" + "sha256:004f0d307473af210717260dab2ddceab26750ef5d2c6b1f7454c33f7bb69f0c", + "sha256:04cd7f4a4f4cd2fe43d104eb70e7435c6fcbdde7aa0cde4230e444fbc66924d3", + "sha256:0725260a12d7102b6e66f9925a027f55567255d8455f8288b02d5eedc8925c3e", + "sha256:0a31c2cab0ba86998205c2eba550c178a8b4ee7905cadeb402eed45392edb178", + "sha256:0b400cf89c15958cd829c8a4ade8f5dd73588e63d2fb71a00483e7a74e9f92da", + "sha256:0e7c3b7e29572ef2d845a59853475f40fdabec53b8b7d6effda4bb26119c07f5", + "sha256:144a3b8c7cbdd301e1b8cd7dd33e3cbfe7b011df2bebd45b84bacc8cb490302d", + "sha256:149d1b7630771222f73ecb024ab5dd8e7f41502402b02015494d429bacc4d5c1", + "sha256:161cc72dd3ff569fd67da4af3a23c0c837029085300f0cebc287586ae3b559e0", + "sha256:1e4b20164809b21966b63e063f894927bc85391e60d0a96fa0bb552090f1319c", + "sha256:1fb36efdf2a35286fb87cfaa195fc34621389da1c7b28a8eb51a4d212d60e56d", + "sha256:220ca4125416636a3d6b53a77d50434987a83da243f9080ee4cce7ac6a34bb4a", + "sha256:224ad19dcdc21bb220d893807f2563e219319a8891ead3c54243b51a4882d767", + "sha256:23d3b6f2706cb324661899901e6b1fcaee4f5aac7d7588306df3f43e68173840", + "sha256:264637cad35a1755ab90a8ea290076d444deda20753e55a0eb75496a4645f7bc", + "sha256:2e83ec1ee66d83b558a6d273d8a01b86563daa60bea9bc040e2c1cb8008de61f", + "sha256:2f57ccb50e9e123709e9f2d7b1a9e09e694e49d1fa5c5585e34b8e3f01929dc3", + "sha256:32a9e0f140c7d0d52f79553cabd1a471f6a4f187c59742239939f1139258a053", + "sha256:336ec8471102851f0699198031924617b7a77baadea889df3ffda6000bd59f4c", + "sha256:3932b06abf49135c93816c74139c7937fa54079fce3f44db2d598859894c344a", + "sha256:3b9f8bf43a5367d5522f80e7d533c98d880868cd0b640b9088c9237306eca6e8", + "sha256:3d947366127abef192419257eb7db7fcee0841ced2b49ccceba43b65e9ce5e3f", + "sha256:4974cc2ebb53196081fef96743c02c8b073242b20a40b65d2aa2365ba8c949df", + "sha256:4fdb59cfa00e10c82e09d1c32a9ce08a38bd29496ba20a73cd7f498e3a0a5024", + "sha256:53b417cc9465dbb42ec9cd7be744a921a0ce583556315d172a246d6e71aa043b", + "sha256:562cf24f9f11df8099e0e78859ba6729e7caa25c2f3947cb228d9152946c854b", + "sha256:5e876ef36801b3d4d3a4b0613b6144b0b47f13f3043fd1fcdfafd783c174b538", + "sha256:644728d803200d7774164d252a247e2fcb0d19e4ef7a4a19a1a139ae472c551b", + "sha256:6bae10f4e7a9145b120e37b6456f1d3853a953e5131fe4740a764e46420289f5", + "sha256:73d9507a547202f0dd0672e529ce3ca45582d152369c684a9ce75677ce5ae089", + "sha256:915da36bc93ef0c659fa50fe7939d4f208804ad252fc4fc8d55adbbb82293c48", + "sha256:94d15ee45c2aaed334688e511aa73b4681f7c08a0810884c6b3ae5824dea1222", + "sha256:9ab3720fba68cc1c0bad00803d2c5e2c70177da5af12c45e18cc4d14426d56d8", + "sha256:9c32dea3b27a97ac88783c1eb61ccb531865bf478a37df3707cbc96ca8f34a04", + "sha256:a4c9254d21fc44526a3850355b89afd0d00ed73bdf902a5ab416df14a61eac6b", + "sha256:a4f12e9ec62679c3f2717d9ec41b497a2c2af0b1361229db0dc86ef078a4c034", + "sha256:a533e664a0e3904307d662c5d45775544dc2b38df6e39e213ff6a86ceaa3d53c", + "sha256:a7d029fc34a516f7eae29b778b30371fcb621134b2acfe4c51c785102aefc6cf", + "sha256:b39747f8e57728b9d8c26bd1d28e9a31c028717617a5938a179244b9436c0b31", + "sha256:b5b5038187b74e2d33e5caee8a7e83ddeb6a21da86837fa2aac95c69aeb366e6", + "sha256:b749d06a3d84ac27311cb85fb5e8f965efd1c5f27556ad8fcfd1853c323b4d54", + "sha256:b75f0fc7a64a95027c6f0c70f17969299bdf2b6a85e342b29fc23be2788bad6f", + "sha256:ba21fe581a83555024f3cfc9182a2390a61bc50430364855022c518b8ba285a4", + "sha256:bcda6179eb863c295eb5ea832676d33ef12c04d227b4c98267876c8322e5a96e", + "sha256:c2fb7963c17ab347428412a0689f5c89ea480f5d5f7ba3e46c6c2f14f3159ee4", + "sha256:c416c50f63bfcf453b6e28d1df956938486191fd1a15aeb95107e810e6e219c8", + "sha256:c4fcd1ac0b7850f85398fd9fdbc7150ac4e82d2ae6754cc6acaf49ca7c30d79a", + "sha256:c65df12f92e771361dca45765fcac3d97491799ee8ab3c6c5ecf0155a397a313", + "sha256:d73c0fd54a52a1a1abfad69d4f1dfb7048cd0b3ef1828ddb4920ef2d3739d8fb", + "sha256:daeed2502ddf1f2b29ec8da2fe2ea82807a5c4acf869608ce6c476db8171d070", + "sha256:e12492ce65cb10f385e70a88badc6046bc720fa7d468db27b7429d85d41beaeb", + "sha256:edcbccfe852d1d3d56cc8bfc5fa3688c866619328a73cb2394e79b29b4ab24d2", + "sha256:ef7119ebc9b76d5e37c330596616c697d1957779c916aec30cefd28df808f796", + "sha256:f009c1a02773bdecdd1157036918fef1da47f7193d4ad599c9edb1e1960a0491", + "sha256:f0a4cf31bfa94cd235aa50030bef3df529e4eb2893ea6a7771c0fb087e4e53b2", + "sha256:fb429c56ea645e084e34976c2ea0efca7661ee961f61e51405f28bc5a9d1fb24" ], "index": "pypi", - "version": "==3.9.2" + "version": "==3.9.4" }, "packaging": { "hashes": [ @@ -202,11 +212,11 @@ }, "starlette": { "hashes": [ - "sha256:8510e5b3d670326326c5c1d4cb657cc66832193fe5d5b7015a51c7b1e1b1bf42", - "sha256:ec69736c90be8dbfc6ec6800ba6feb79c8c44f9b1706c0b2bb27f936bcf362cc" + "sha256:1aab7e04bcbafbb1867c1ce62f6b21c60a6e3cecb5a08dcee8abac7457fbcfbf", + "sha256:7df0a3d8fa2c027d641506204ef69239d19bf9406ad2e77b319926e476ac3042" ], "index": "pypi", - "version": "==0.23.1" + "version": "==0.31.0" }, "timing-asgi": { "hashes": [ @@ -632,11 +642,11 @@ }, "jsonschema": { "hashes": [ - "sha256:971be834317c22daaa9132340a51c01b50910724082c2c1a2ac87eeec153a3fe", - "sha256:fb3642735399fa958c0d2aad7057901554596c63349f4f6b283c493cf692a25d" + "sha256:043dc26a3845ff09d20e4420d6012a9c91c9aa8999fa184e7efcfeccb41e32cb", + "sha256:6e1e7569ac13be8139b2dd2c21a55d350066ee3f80df06c608b398cdc6f30e8f" ], "markers": "python_version >= '3.8'", - "version": "==4.18.4" + "version": "==4.19.0" }, "jsonschema-spec": { "hashes": [ @@ -730,11 +740,11 @@ }, "more-itertools": { "hashes": [ - "sha256:928d514ffd22b5b0a8fce326d57f423a55d2ff783b093bab217eda71e732330f", - "sha256:cd65437d7c4b615ab81c0640c0480bc29a550ea032891977681efd28344d51e1" + "sha256:626c369fa0eb37bac0291bce8259b332fd59ac792fa5497b59837309cd5b114a", + "sha256:64e0735fcfdc6f3464ea133afe8ea4483b1c5fe3a3d69852e6503b43a0b222e6" ], "markers": "python_version >= '3.8'", - "version": "==10.0.0" + "version": "==10.1.0" }, "openapi-schema-validator": { "hashes": [ @@ -809,11 +819,11 @@ }, "pygments": { "hashes": [ - "sha256:8ace4d3c1dd481894b2005f560ead0f9f19ee64fe983366be1a21e171d12775c", - "sha256:db2db3deb4b4179f399a09054b023b6a586b76499d36965813c71aa8ed7b5fd1" + "sha256:13fc09fa63bc8d8671a6d247e1eb303c4b343eaee81d861f3404db2935653692", + "sha256:1daff0494820c69bc8941e407aa20f577374ee88364ee10a98fdbe0aece96e29" ], "markers": "python_version >= '3.7'", - "version": "==2.15.1" + "version": "==2.16.1" }, "pylint": { "hashes": [ diff --git a/halfapi/lib/query.py b/halfapi/lib/query.py index 0e3ebad..8205c94 100644 --- a/halfapi/lib/query.py +++ b/halfapi/lib/query.py @@ -56,10 +56,8 @@ def parse_query(q_string: str = ""): >>> parse_query('limit:10') .select at 0x...> - >>> parse_query('limit=10') - Traceback (most recent call last): - ... - starlette.exceptions.HTTPException: 400 + # >>> parse_query('limit=10') + # starlette.exceptions.HTTPException: 400 """ diff --git a/pytest.ini b/pytest.ini index 07ee477..c9576d1 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,5 @@ [pytest] testpaths = tests halfapi addopts = --doctest-modules -doctest_optionflags = ELLIPSIS +doctest_optionflags = ELLIPSIS IGNORE_EXCEPTION_DETAIL pythonpath = ./tests diff --git a/setup.py b/setup.py index ab40feb..f5a28df 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ setup( python_requires=">=3.8", install_requires=[ "PyJWT>=2.6.0,<2.7.0", - "starlette>=0.23,<0.24", + "starlette>=0.31,<0.32", "click>=8,<9", "uvicorn>=0.13,<1", "orjson>=3.8.5,<4",