guardrails-api

View on PyPIReverse Dependencies (1)

0.0.5 guardrails_api-0.0.5-py3-none-any.whl

Wheel Details

Project: guardrails-api
Version: 0.0.5
Filename: guardrails_api-0.0.5-py3-none-any.whl
Download: [link]
Size: 46789
MD5: f98eff0452f10928b52194338ccbe3ed
SHA256: 42f9f97396d6e7472315f53eb6365d6ce11134a62510c051f10717b0bc551c75
Uploaded: 2024-11-12 19:57:16 +0000

dist-info

METADATA

Metadata-Version: 2.1
Name: guardrails-api
Version: 0.0.5
Summary: Guardrails API
Author-Email: Guardrails AI <contact[at]guardrailsai.com>
License: ## THE FOLLOWING LICENSE HAS BEEN ADOPTED FROM THE ELSSTIC LICENSE ## Acceptance By using the software, you agree to all of the terms and conditions below. Copyright License The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below. Limitations You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key. You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law. Patents The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company. Notices You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms. If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software. No Other Rights These terms do not imply any licenses other than those expressly granted in these terms. Termination If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently. No Liability As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. Definitions The licensor is the entity offering these terms, and the software is the software the licensor makes available under these terms, including any portion of it. you refers to the individual or entity agreeing to these terms. your company is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. control means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. your licenses are all the licenses granted to you for the software under these terms. use means anything you do with the software requiring one of your licenses. trademark means trademarks, service marks, and similar rights.
Keywords: Guardrails,Guardrails AI,Guardrails API,Guardrails API
Requires-Python: >=3.8, <4
Requires-Dist: guardrails-ai (<0.6.0,>=0.5.6)
Requires-Dist: flask (<4,>=3.0.3)
Requires-Dist: Flask-SQLAlchemy (<4,>=3.1.1)
Requires-Dist: Flask-Caching (<3,>=2.3.0)
Requires-Dist: Werkzeug (<4,>=3.0.3)
Requires-Dist: jsonschema (<5,>=4.22.0)
Requires-Dist: referencing (<1,>=0.35.1)
Requires-Dist: Flask-Cors (<6,>=4.0.1)
Requires-Dist: boto3 (<2,>=1.34.115)
Requires-Dist: psycopg2-binary (<3,>=2.9.9)
Requires-Dist: litellm (<2,>=1.39.3)
Requires-Dist: typer (<1,>=0.9.4)
Requires-Dist: opentelemetry-api (<2,>=1.0.0)
Requires-Dist: opentelemetry-sdk (<2,>=1.0.0)
Requires-Dist: opentelemetry-exporter-otlp-proto-grpc (<2,>=1.0.0)
Requires-Dist: opentelemetry-exporter-otlp-proto-http (<2,>=1.0.0)
Requires-Dist: opentelemetry-instrumentation-flask (<1,>=0.12b0)
Requires-Dist: requests (>=2.32.3)
Requires-Dist: ruff; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: coverage; extra == "dev"
Requires-Dist: pytest-mock; extra == "dev"
Requires-Dist: gunicorn (<23,>=22.0.0); extra == "dev"
Provides-Extra: dev
Description-Content-Type: text/markdown
License-File: LICENSE
[Description omitted; length: 1916 characters]

WHEEL

Wheel-Version: 1.0
Generator: setuptools (75.4.0)
Root-Is-Purelib: true
Tag: py3-none-any

RECORD

Path Digest Size
guardrails_api/__init__.py sha256=S7u1lbuWmM3A3ajykBialmPoJUK6Jg-WmNqM-9OZFdk 22
guardrails_api/app.py sha256=bEqpW7Qm9Jpb78wxbb-YGIempdXznVv4S2hSisXt324 4756
guardrails_api/config.py sha256=TfxHnB2XeEa4EkM2YSRjNlcGXBrmBKlLGiqO8gb11NY 327
guardrails_api/default.env sha256=pfWfj8i934nobdtg8TqpjIsBjsENUCNGWsku-693hVc 184
guardrails_api/open-api-spec.json sha256=qcX4we7Uf1OVKJMtCOrgQdrSTQ9i6ub8y9ykxyOggfA 49563
guardrails_api/open_api_spec.py sha256=MLUmNuQ4I4PKyEkWcZOtQ_SpLoIsHlB0H5Ta9OgsMIE 396
guardrails_api/py.typed sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
guardrails_api/start-dev.sh sha256=_asII5x2r0oy3TW4C_nfLDQfTwUhrWF1TWj17njconw 141
guardrails_api/start.sh sha256=AZt2dleXOsoca6MyjJQ4GZg5ylACXnplyDkEIwGb8WI 88
guardrails_api/blueprints/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
guardrails_api/blueprints/guards.py sha256=ILZezuExhK0sucgz0RZIVonq0PP7Xr0eaJz8DgaXhRc 20478
guardrails_api/blueprints/root.py sha256=daVZFVtpWAjAF-uIqQYwgpgwzHYaBgKy7L9QVBU1F0U 2243
guardrails_api/classes/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
guardrails_api/classes/health_check.py sha256=Ym-3fK5yDazOUZUdmGZwEbuqcq4lwid1XslNt0yA-Vc 218
guardrails_api/classes/http_error.py sha256=uKnFEI4AAiROGVUVlN-vceo_9w--ncbu0Ml_9XRovxk 703
guardrails_api/cli/__init__.py sha256=QI5S-Oi1A7ttQeFvHyxOXHDiNlVb_P0vXSju6quwoRM 495
guardrails_api/cli/cli.py sha256=ywm_Jv2axxQAVtoT64IEjAJn3Fbf5sqXKPu8J2sT9RI 35
guardrails_api/cli/start.py sha256=SmnS_rtM5Fm1I-YQhVtGldqZu479eCCHNmPa6sSXMo8 823
guardrails_api/clients/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
guardrails_api/clients/cache_client.py sha256=Sat-W7ZlxUOpKx08P2dvaa-F8z-3-At-QGri4OjPo6k 896
guardrails_api/clients/guard_client.py sha256=9tFcAjniVANnxhj1Oh5fzToa9gKinWPb2j5As2u_KBU 996
guardrails_api/clients/memory_guard_client.py sha256=d5gGgeTb-Vuz2jQ2rAtktFxR2X87onnT5aHQILtnTfk 1732
guardrails_api/clients/pg_guard_client.py sha256=9krg-no0gtObOPN3Y56PZYLJ1fw_vejpNwWSNPfE_KQ 4189
guardrails_api/clients/postgres_client.py sha256=ocl3ZrpygZlQ6eP7Ent5Hu-tPBQnCXBmlaSDZqvikxY 2889
guardrails_api/models/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
guardrails_api/models/base.py sha256=LE-U73PKco_vCtk_ThsAoU6XyufzRH_ZivrFgxFqeT8 171
guardrails_api/models/guard_item.py sha256=T89e1mEmdKUOk5bRls1XGZp8mmghPmul8kq9asRwTHM 814
guardrails_api/models/guard_item_audit.py sha256=au-nUFI2icPGFJ1kKmRCupO75A_crsrsEhue1eUpTwE 1854
guardrails_api/otel/__init__.py sha256=WxY2ZnjZJFtYwgPUDxX7IccIBCaorcn0x2UhZWLTWLc 737
guardrails_api/otel/constants.py sha256=SgU45j0XI18-ImQLXJFXMZNJAPCIULv4XG6KbhaARW4 14
guardrails_api/otel/logs.py sha256=sZxXhqFddwyueMkciQy1P9j0OnVHs0dcEcpvvGXFzGk 198
guardrails_api/otel/metrics.py sha256=773MbZK-04ldopWSyYsTQLD7ql3IauWQY9_qu8H1CIk 1943
guardrails_api/otel/traces.py sha256=tiNoHwpodk8XZ3vzHLT2MNdUqUgHMo6IOS0xvEqAJa8 2255
guardrails_api/utils/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
guardrails_api/utils/configuration.py sha256=niusuM-iA-TbkVFAEso0faSwFiZABmUmDOyoqBwh1H8 1038
guardrails_api/utils/escape_curlys.py sha256=NTuWoRGxZgSNA7EvU2JSNqNhnMdeLD9H3narvQe0pUc 505
guardrails_api/utils/file.py sha256=iOZrmt5YgQN0uPbmpLb539Fau5VRkq-arKYZ56tdiJs 149
guardrails_api/utils/gather_request_metrics.py sha256=DLq4pq9MfII01dVcoGBhWxFkTL_NmLedN0rX9FN7d0A 1166
guardrails_api/utils/get_llm_callable.py sha256=yPgJOPzmTw9OasJMrCxEf5suXPy2uv8wsxXDS35xLFQ 1187
guardrails_api/utils/handle_error.py sha256=g6ZmLOo7HDcP7q_7AMAxipYIEMarkOOT-gGgvoQsetg 1882
guardrails_api/utils/has_internet_connection.py sha256=93AXdLT-EGJxKbZUhKzPZsiAFDpIT0YTGVfY7EtICFY 235
guardrails_api/utils/logger.py sha256=g96r5TKMBSIP8rn7rN2W7IVEypC0m1R2Q7eve2DFyYQ 275
guardrails_api/utils/openai.py sha256=DkQU_q0xdXfITaeHCdnfkg4EdO9QZ2onGUU4UuK33ec 1987
guardrails_api/utils/payload_validator.py sha256=C6w_FhPxle87s6VeGi6ShtgsHHFTfllYvUWzKWBn44c 1150
guardrails_api/utils/pluck.py sha256=3K0NtQF_DQYASmWvmT5J7_UBEmrfIXA0KFB1zLXnfo0 111
guardrails_api/utils/remove_nones.py sha256=6YKSeMeSU_3y_-uGZpAfIKndi-li3G81RQkUtiabJNQ 702
guardrails_api/utils/trace_server_start_if_enabled.py sha256=9S_bpsybXNmZIRRf952H25y00xE2ZSwrPolClPmBBnI 949
guardrails_api/utils/try_json_loads.py sha256=68LVT5orCg_xIWb0BSBWSHxWpRBpCqIsLwA_t8R-llI 148
tests/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
tests/blueprints/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
tests/blueprints/test_guards.py sha256=naYqR3H9qRPq49oLUYC51u-4uWYDiAeMtDU5BULpzDg 23470
tests/blueprints/test_root.py sha256=aeL09tzE450s1OI3C8EZDHtDjflUiDCQizjWyf6SzcU 1459
tests/clients/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
tests/clients/test_mem_guard_client.py sha256=8Ev6sY70lVwAk3HouZbGzcV9XJlFGvWf4EIKFzgfFmE 1545
tests/clients/test_pg_guard_client.py sha256=_xEzpkIUTQvGY3J2QJZE2IoE7X1SyKzV22SHhlNmS14 16932
guardrails_api-0.0.5.dist-info/LICENSE sha256=VSuYvIQjXXWhD0hs4bBxd33W0OLOEkV7x64vgvCn8js 3784
guardrails_api-0.0.5.dist-info/METADATA sha256=2Yq9YYmx5xrBoRX14rPtMedO84gaxY7a1ZE-Lj7-mS4 7347
guardrails_api-0.0.5.dist-info/WHEEL sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo 91
guardrails_api-0.0.5.dist-info/entry_points.txt sha256=hY0eQ4LWFP6_HjpWVpo4s_lnXx7w8xKS22Kl4Z1US-w 58
guardrails_api-0.0.5.dist-info/top_level.txt sha256=4EG2F_57raDrzkzpynQQxN8-QQ72LNeUF_NxZMGBu5A 21
guardrails_api-0.0.5.dist-info/RECORD

top_level.txt

guardrails_api
tests

entry_points.txt

guardrails-api = guardrails_api.cli:cli